Peter Hjalmarsson
e779547b72
Make root_trim work with crypt_root_key
...
Keep options already set for cryptsetup when using crypt_root_key*
13 years ago
Sebastian Pipping
d843544c70
Communicate inavailability of keymap #38 better
13 years ago
Sebastian Pipping
c5c9ca49f6
Further improve wording in software.sh
13 years ago
Peter Hjalmarsson
ec6b2536d8
Make defaults/software.sh not override variables already present
13 years ago
Sebastian Pipping
6d35693a8b
Move software version defaults for defaults/software.sh to ease the etc-update game
13 years ago
Sebastian Pipping
ed09edb1c0
Resolve cryptic awk-based code docuplication
13 years ago
Robin H. Johnson
1486a0402c
Flip awk return values.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
13 years ago
Robin H. Johnson
c79d57926f
Minor thinko in devpts check.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
13 years ago
Robin H. Johnson
c924bde4b7
Prior commit to only mount devtmpfs and devpts if they were not already mounted made assumptions about the device names they were mounted as. Check the filesystem column of /proc/mounts instead.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
13 years ago
Richard Yao
e05ab0d1a1
Force ZFS to explicitly import pool when LUKS is present
13 years ago
Richard Yao
1e92078650
USB 3.0 Support: Load xhci-hcd when available
13 years ago
Richard Yao
3ef477862d
Run mdev -s after modules are loaded
...
Running `mdev -s` will ensure that device nodes are properly initialized.
It does not function as a netlink hotplug daemon. We must run it after
the modules are loaded to ensure that /dev/zfs has been created before
userland programs attempt to use it.
13 years ago
Richard Yao
d7cf3689bf
Linux 3.5 renames usbhid to hid-generic
...
We add hid-generic to the modules_load list alongside usbhid to avoid
issues.
13 years ago
Richard Yao
908a463e07
Support module options set in /etc/module.d, amend cmdline options patch
13 years ago
Dzianis Kahanovich
2bf6b9045d
Adding modules cmdline options for genkernel (module.option[=value]).
...
Effective for genkernel's modprobe script or busybox "not small"
modprobe.
Signed-off-by: Dzianis Kahanovich <mahatma@eu.by>
Updated-by: Richard Yao <ryao@cs.stonybrook.edu>
13 years ago
Richard Yao
b8626e78ef
Fix typo in previous commit.
13 years ago
Richard Yao
e2189311fc
Verify in /proc/mounts that devtmpfs is unmounted before mounting it
...
For consistency, we do the same with devpts. WilliamH reported this to
me in IRC.
13 years ago
Richard Yao
65249bbcea
Fix bad ZFS case statement, bug #425122
13 years ago
Richard Yao
de4751a2d2
Fix rootfs=ZFS infinite loop when no bootfs is set, bug #425120
13 years ago
Sebastian Pipping
51dcb15742
Restore previous handling of real_root due to report of regressions (bug #419965 )
...
This reverts commit f95264adde
.
Conflicts:
defaults/initrd.scripts
13 years ago
Sebastian Pipping
c261693b92
Add xts to MODULES_CRYPTO (bug #425028 )
13 years ago
Kenny Cheng
2413f1f2a3
Add /run to support openrc >=0.10
13 years ago
Sebastian Pipping
36d0fb5559
Make recent addition conform to POSIX
13 years ago
Marios Andreopoulos
f95264adde
Use real_root option for (plain) Luks setup
13 years ago
Sebastian Pipping
a4438ec946
Merge branch 'bug-418463'
...
Conflicts:
ChangeLog
13 years ago
Sebastian Pipping
21b2c4aab3
Make sure that cbc.ko and aes*.ko needed for cbc-essiv:sha256 (=default) disk encryption are included with the initramfs (bug #416973 )
13 years ago
Sebastian Pipping
aed52e8382
Support bind mounts from /etc/initramfs.mounts (bug #418463 )
13 years ago
Sebastian Pipping
0fa71ef46c
Fix call to blkid of util-linux
13 years ago
Sebastian Pipping
b476a988ea
Set CONFIG_DEVTMPFS=y on x86, x86_64, default for udev
13 years ago
Richard Yao
b5b535f5aa
Do not import a pool that the kernel automatically imported
...
This works around the following upstream issue:
https://github.com/zfsonlinux/zfs/issues/714
Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
13 years ago
Richard Yao
6968584a58
Improve ZFS diagnostics, import and mounting
...
Make ZFS only import the specified pool
Set zfsutil when mounting non-legacy rootfs
Check for /sbin/zpool in addition to /sbin/zfs
Print information messages when ZFS pools are imported
Prompt user when mounting a ZFS filesystem without ZFS support
Verify that <dataset> in real_root=ZFS=<dataset> is a filesystem
13 years ago
Richard Yao
0f399f48ff
Verify that binaries exist before startVolumes calls them
13 years ago
Richard Yao
51ad5c92ab
Serialize hotplug events to mimic udev
13 years ago
Sebastian Pipping
a7fbf76f7b
Make sure the previous move of cd commands cannot result in unexpected regressions
13 years ago
Richard Yao
69009cb747
Reorder mdev initialization to mimic udev boot
13 years ago
Richard Yao
f5f3d6fa87
Enable real_root=ZFS to permit booting off ZFS
13 years ago
Richard Yao
391a9b9969
Move ZFS binary check outside of commandline loop
13 years ago
Sebastian Pipping
4d8287c3d0
Add keymap "sf", i.e. Switzerland (French) from Pentoo
13 years ago
Sebastian Pipping
4a88be842d
Fix keymap permissions (no need to be executable)
13 years ago
Sebastian Pipping
c6c9f30607
Remove keymap trq/38 as it contains C sources of test(1) rather than a keymap at the moment
13 years ago
Sebastian Pipping
a3cc35f063
Untar keymaps
13 years ago
Sebastian Pipping
8071dca456
Merge branch 'fix-docache'
...
Conflicts:
ChangeLog
13 years ago
Sebastian Pipping
23a40aeb0e
Restore original /dev/tty after GPG (bug #410073 )
13 years ago
Sebastian Pipping
acbc7becc6
Merge branch 'bug-405495'
13 years ago
Sebastian Pipping
506a94ab26
Load crypto modules automatically
13 years ago
Sebastian Pipping
8ac8de6055
Fix docache (bug #397309 )
13 years ago
Sebastian Pipping
4ed04331a5
Drop into debug shell when squashfs could not be mounted
13 years ago
Sebastian Pipping
a13f9efd37
Drop into debug shell when files could not be copied into tmpfs
13 years ago
Sebastian Pipping
adefd0fccc
Improve handling of missing /etc/fstab
13 years ago
Sebastian Pipping
3ca4d17874
Message cosmetics
13 years ago
Sebastian Pipping
0584c96ca6
Extract function do_rundebugshell
13 years ago
Sebastian Pipping
38205c74b4
No longer use parameter "-r" (for regex intervals) that busybox awk does not support
...
Error was:
awk: invalid option -- r
Note: regex intervals are supported by default so we can just omit "-r" here
13 years ago
Robin H. Johnson
277259282e
Enable live mounting of /usr. Was supposed to have been in 3.4.25.
13 years ago
Robin H. Johnson
4a3e1ff1cf
Merge remote-tracking branch 'origin/bug-405495'
...
Conflicts:
ChangeLog
arch/x86_64/modules_load
13 years ago
Sebastian Pipping
1159b4c2f6
Make sure the sha256 module makes it into the initramfs (bug #405495 )
13 years ago
Robin H. Johnson
995635a2c7
With the new /usr mounting, if the device path that ends up in /proc/mounts ends up being different than in /etc/fstab due to symlinks, mount -a will always exit 32. Avoid by resolving symlinks like util-linux does.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
13 years ago
Robin H. Johnson
51ec555f6d
modules_load: include more DM and MD modules for other RAID/LVM configurations.
...
X-Gentoo-Bug: 401583
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=401583
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
13 years ago
Robin H. Johnson
1077359d86
linuxrc /usr mounting
...
Dogfooding of the /usr mount code with the matching OpenRC change to
make the mounts RW revealed some bugs and gotchas in our prior code, now
fixed and verified to work.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
13 years ago
Robin H. Johnson
94dc288487
Customizable initramfs compression based on Pentoo genkernel fork
...
This implements customizable initramfs compression, based on the Pentoo
genkernel fork (SVN revs r2142, r2145, by Jens Pranaitis
<jens@chaox.net>).
New configuration option COMPRESS_INITRD_TYPE to allow manual selection,
whereas the Pentoo fork provided auto-selection based on what was
available in the kernel configuration. Auto-selection is used by
default, and is available with the argument of 'best' to the new option.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
13 years ago
Richard Yao
fc98fa9d89
Implement ZFS Support
...
This provides ZFS support, to go with the sys-fs/zfs package.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> (cleanups)
13 years ago
Robin H. Johnson
af26e433cb
Support virtio devices, and provide fallback of all remaining devices.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
13 years ago
Rick Farina
8c76eb9e51
Add sdcard device support
...
built in sd card readers are called /dev/mmcblk* which was not
supported. This patch fixes that issue.
Signed-of-By: Rick Farina <sidhayn@gmail.com>
13 years ago
Sebastian Pipping
f84f42b4e2
Re-activate mdstart in busybox config
13 years ago
Sebastian Pipping
5feb521988
Busybox config: Enable verbose usage
13 years ago
Sebastian Pipping
31c3c7ca88
Update busybox config using "yes '' | make oldconfig"
13 years ago
Robin H. Johnson
ae2a061ca7
Disable the /usr mount code until OpenRC section is ready, so that it goes to read-write properly. It was usable in systemd already...
13 years ago
Robin H. Johnson
603a197839
Code to mount /usr and other filesystems as needed for new udev and systemd.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
13 years ago
Robin H. Johnson
953c7e5b42
Awk support in busybox is needed for initramfs setup code (to parse fstab).
13 years ago
Christian Kruse
c92fe6f0e6
Introduce boot parameter root_trim=(yes|no) for SSDs
13 years ago
Borg Onion
b977d66940
Support for glibc-2.14 systems
...
Hello,
Due to the changes in glibc-2.14 busybox no longer compiles when NFS
support is enabled. This breaks genkernel. The following is a very
crude patch to just make things work on glibc-2.14 systems. A better
patch would be to detect glibc-2.14 and then make a config decision.
The best patch would be to port libtirpc to openssl, make busybox link
against libtirpc, restore NFS support, and put an end to this whole
mess. But in the meantime:
commit 80d1e89995f055a37f07f9f7f4c7e21660abd527
Author: Borg Onion <borg.onion@gmail.com>
Date: Sat Dec 3 18:02:48 2011 -0800
Disable NFS support to enable glibc-2.14 compatibility
13 years ago
Sebastian Pipping
8f8676adbd
Fix return value of crypt_filter() which caused bogus LUKS opening errors (bug #383545 )
13 years ago
Fabio Erculiani
84cc7ccdfb
Do not hardcode /mnt/cdrom path across the whole code, use CDROOT_PATH
...
instead. At the same time, mount cdrom into /mnt/cdrom instead of
/newroot/mnt/cdrom (which is now just a bind mount), this avoids
losetup to expose unavailable paths inside the live system, breaking
mkfs.btrfs (next upstream version, which does silly things with
/proc/mounts).
13 years ago
Robin H. Johnson
00b5b3ab66
Allow real_root to point to LVM-created symlinks.
...
Needed to unbreak root-on-LVM on my laptop.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
13 years ago
Robin H. Johnson
a487275640
Removing dangling backtick to make script work.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
13 years ago
Fabio Erculiani
1e50bd01d2
trivial: cleanup code, drop whitespaces and some more cruft
14 years ago
Fabio Erculiani
d6696d0df6
syntax: drop parse_opt usage and crufty, deprecated subshelling through ``
...
These changes have been ported from official Gentoo LiveDVD
14 years ago
Sebastian Pipping
3453a0621c
Fix quoting issue (bug #380729 )
14 years ago
Fabio Erculiani
4d54e7d098
aufs: add basic support to AUFS2, requires kernel with aufs module or built-in
14 years ago
Sebastian Pipping
02b72c6515
Fix display of seconds waiting (bug #376575 )
14 years ago
Sebastian Pipping
4c0b4b18f8
Fix permissions of /dev/pts (bug #375947 )
14 years ago
Fabio Erculiani
85a271a4ed
better document new --make-target= option
14 years ago
Fabio Erculiani
dfca908b6f
Make possible to compile XEN based kernels providing --kernel-target= and --kernel-binary= switches
14 years ago
Sebastian Pipping
bf0cad6a30
Remove support for sys-fs/evms, as it was removed from Gentoo (bug #372423 )
14 years ago
Sebastian Pipping
b20494438a
Apply CONFIG_USB_HID=y to archs amd64/x86/default (bug #270983 )
14 years ago
Sebastian Pipping
4392bc93ab
Unset CONFIG_IDE on archs amd64/x86/default (bug #357213 )
14 years ago
Peter Hjalmarsson
eec4397e41
Check content of $REAL_ROOT/dev after we are done with it
...
Removes error message about missing /dev/console and /dev/null
14 years ago
Sebastian Pipping
e82a8c9985
Document option lvmraid= and make it imply dolvm (bug #153502 )
14 years ago
Sebastian Pipping
6a00d8677a
Rename internal function whereis to prompt_user
...
.. to avoid confustion with whereis(1) from sys-apps/util-linux
14 years ago
Sebastian Pipping
fad624bc41
Add rootfstype= boot parameter (bug #221245 )
14 years ago
Nelson Batalha
6b92c54c1e
Add Kernel 3.0.0 support (bug #369481 )
14 years ago
Amadeusz Żołnowski
3cac23cc34
added hpsa to defaults/modules_load; fixes bug #363369
14 years ago
Peter Hjalmarsson
f927ef9b42
Try to move /sys and /proc to the newroot first instead of just unmounting.
14 years ago
Peter Hjalmarsson
b312056622
Use the same options for proc and sysfs as Gentoo/OpenRC uses
14 years ago
Peter Hjalmarsson
5a33ee4b48
Fix handling of doslowusb/noslowusb
...
Set DO_slowusb as default, and make setup_slowusb unset it if it cannot find
a usb-storage attached. This makes genkernel ramdisk adhere to "noslowusb",
makes the ramdisk only wait if there is a usb-storage attached and should fix
gentoo bug #359619 .
14 years ago
Fabio Erculiani
638a7a1369
add btrfs to MODULES_FS, load btrfs module if available
...
Grub2 is going to support btrfs someday, so better getting prepared.
14 years ago
Peter Hjalmarsson
a768d85c5a
Fix typo
...
By adding the kernelcmd options "dokeymap" to MY_HWOPTS instead of
the HWOPTS version, "keymap" this typo broke the handling of keymaps
if you only had "keymap=<...>" in kernelcmd and did not specify "dokeymap"
too (which according to documentation should not be needed).
14 years ago
Peter Hjalmarsson
665c3ecff6
Do not mess with MDADMs auto-detect
...
Only reason for this logic is to limit what entries in /proc/partitions
mdadm scans for arrays.
However this seems to break raids in containers (example Intel fakeraids)
as those containers are never scanned for arrays.
(On my system it activates /dev/md/imsm0, but never /dev/md/Gentoo_0 which
is the real RAID with the removed logic)
If someone has something dead-slow they do not want scanned for raids,
it is better if they specify their own mdadm.conf.
If someone finds an example of something that mdadm scans for arrays that
is not supposed to be scanned, we may handle that then.
14 years ago
craig
5e07592a75
iBFT: fix iscsi_noibft
14 years ago
craig
d9f46bb513
Add iBFT support for iSCSI
14 years ago
Sebastian Pipping
23fd924325
Fix error message
14 years ago
Sebastian Pipping
2deeaba70b
Add error message output
14 years ago
Sebastian Pipping
c3165cd02f
Apply mdev primer of busybox
14 years ago
Peter Hjalmarsson
398d7ba5ac
Use tmpfs if devtmpfs is not available
...
This makes the ramdisk always mount some kind of /dev,
and then try to move it to the new root.
This unbreaks handling of nodes created pre-udev likefor example lvm does.
14 years ago
Sebastian Pipping
763fd09bac
Remove "-a" from call to umount
14 years ago
Peter Hjalmarsson
cb24bedd07
Move dev to chroot
...
This can be considered good practice, likely less chance that nodes
created in the ramdisk disapperes when switching root.
Some applications (mostly debugging/benchmarking) also needs this to
survive the switch_root.
14 years ago
Peter Hjalmarsson
e8ffab0000
Update options for devtmpfs
...
Options copied from /etc/init.d/udev-mount as that script does not
sanitize or even tuch the options.
14 years ago
Sebastian Pipping
c202dbe67d
Resolve unneeded subshell
14 years ago
Peter Hjalmarsson
294ea17506
Use devtpmfs when avaible
14 years ago
Sebastian Pipping
51d60ac01f
Replace "$lvm_commands" by "${lvm_commands}"
14 years ago
Sebastian Pipping
62fdee77e4
Insert a few blank lines for readability
14 years ago
Peter Hjalmarsson
d1b6b4e9f0
Speed up LVM-activation
...
Change vgscan and vgchange so they are done in one go.
Faster since less work for the lvm command.
vgscan is still needed for some cases like dmcrypt where
/etc/lvm/cache is created, but not updated with the unlocked devices.
14 years ago
Peter Hjalmarsson
ba56efcb97
Use vgchange --sysinit
...
Turns off unnecessary stuff, and makes the command look cleaner
14 years ago
Fabio Erculiani
2abd9c2742
Add compatibility with older cmdline setup on console argument
...
Older systems featured full path to tty inside console=. This
is no longer valid and causes issues with fbcondecor. The new
expected format of console= is tty name with the directory part
stripped off: console=tty1 for example.
This patch has been in sabayon's genkernel for <2 years, but
should be tested out on non-standard environments.
14 years ago
Sebastian Pipping
886262e44e
Remove unused function bind_mount_dev()
14 years ago
Sebastian Pipping
ccc17448fd
"mdadm -A" -> "mdadm --assemble" (as before, better self-documentation)
14 years ago
Matthias Dahl
daed0ccebb
use mdadm instead of bundled stripped down mdassemble (v2)
...
mdassemble can't handle newer metadata formats and fails for partitioned
arrays, among other things.
This...
- replaces the bundled mdassemble with proper support for mdadm
- fixes raid autodetection/assemble when no mdadm.conf is available
- fixes a compilation failure for newer mdadm versions
Tested w/ genkernel 3.4.10.907 and mdadm 3.1.3.
14 years ago
Sebastian Pipping
b3d07b46a7
Do not sleep after vgscan (bug #351047 )
14 years ago
Sebastian Pipping
8b52cccc02
Do not wait for iscsi if we have not started it
14 years ago
Sebastian Pipping
1051223a63
Do no delay if scandelay[=seconds] is not specified (bug #323317 again)
14 years ago
Sebastian Pipping
b56020daf6
Propagate fix for ROOT_DEV from bug #303531 to RESUME_DEV and REAL_LUKS
14 years ago
Fabio Erculiani
b6b3dab7cd
Add minimal btrfs support, as per bug #303529 .
...
RAID0 btrfs volumes can be detected only if btrfsctl is started.
Since embedding extra executables in initramfs is already possible,
add minimal btrfs support inside linuxrc.
14 years ago
Sebastian Pipping
f5547a519f
Add LABEL support to crypt_root, clean up UUID crypt_root patch
14 years ago
Christian Giessner
3e60ed9eee
Add support for UUID to crypt_root (bug #315467 )
14 years ago
Sebastian Pipping
3faec93277
Merge branch 'gpg1x' into experimental
14 years ago
Sebastian Pipping
484f8019f5
Revert "sdelay: reduce function to just one line" due to supposed Bashism.
...
This reverts commit f03de62e7d
.
14 years ago
Fabio Erculiani
f03de62e7d
sdelay: reduce function to just one line
14 years ago
Fabio Erculiani
25b5a461ba
slowusb: move sleep 10 call after start_dev_mgr.
...
If mdev -s will trigger something that involves usb-storage, sleeping
after its startup is safer.
14 years ago
Fabio Erculiani
51e0b14044
slowusb: ease the code in order to reduce entropy, one place for one thing.
...
There were several places where a mixture of sdelay and "sleep 10"
were called without worrying too much, resulting in slower boot
time, mainly. This commit should fix the mess and make some order
in the slowusb saga.
14 years ago
dacook
04c37979c1
Remove bashism
...
Get rid of bash-ish "==" equivalence test in checking if the LUKS_KEY ends in
.gpg. Use strict Bourne-compliant '=' instead.
14 years ago
dacook
f78d61d8b3
GPG runtime
...
Actual boot-time handling of PGP-armored keys
14 years ago
Sebastian Pipping
b4f310213e
Create /bin/vg* symlinks when called as /linuxrc, too (bug #307855 )
14 years ago
devsk
e590a493ea
Pick first device when several devices are matching real_root (bug #303531 )
14 years ago
Sebastian Pipping
8b7a16e07a
Break search loop asap
14 years ago
Fabio Erculiani
5f136adc14
No longer have directory /sys/bus/usb/drivers/usb-storage/module set FORCE_slowusb
14 years ago
Sebastian Pipping
532dd7a387
Review and fix some -eq and -ne conditionals
...
This fixes "sh: bad number" with busybox 1.18.1 during activation of mdev.
14 years ago
Andrew Gaffney
f3e0797d42
Apply patches from Gentoo bug #268468
15 years ago
Andrew Gaffney
1f46e1ac42
Add USB HID modules to modules_load and default kernel-config (for Gentoo bug #270983 )
15 years ago
Andrew Gaffney
8abedd8d81
Enable ext4 by default everywhere (for Gentoo bug #268818 )
15 years ago
Andrew Gaffney
24446b0465
Add support for isoboot= option (for Gentoo bug #294268 )
15 years ago
Andrew Gaffney
62f353b65b
Properly apply NFS mount options for Gentoo bug #262915
15 years ago
Andrew Gaffney
0302b4c9e4
Apply patch to make sure loop cache directory exists for Gentoo bug #297814
15 years ago
Andrew Gaffney
2e4e55a6e5
Fix typo for Gentoo bug #294138
15 years ago
craig
88ac383f61
Let iSCSId settle after iscsistart
15 years ago
craig
97b4dc26e2
Improve naming of bootflags, added support for: port, target portal, username, password, username_in, password_in, debug
15 years ago
craig
18d9c84402
Merge branch 'master' of git://git.wolf31o2.org/projs/genkernel
16 years ago
Andrew Gaffney
588ef85661
Apply patch from Gentoo bug #220913 for tuxonice resume
16 years ago
craig
5019ff506f
Merge branch 'master' of git://git.wolf31o2.org/projs/genkernel
16 years ago
Chris Gianelloni
35258a703f
Adding Id header.
16 years ago
Andrew Gaffney
61bf391991
back out previous commit
16 years ago
Andrew Gaffney
f3ae1fe692
Alternative solution for Gentoo bug #269603
16 years ago