Fabio Erculiani
08cd7890bf
Merge branch 'master' into plymouth
...
Conflicts:
arch/x86/modules_load
arch/x86_64/modules_load
defaults/modules_load
12 years ago
Fabio Erculiani
7505a99952
modules_load: do not forcibly load radeon and nouveau, they may kill a system
12 years ago
Fabio Erculiani
06af416264
Kill trailing whitespaces!!!!!
12 years ago
Fabio Erculiani
90da2a1a66
Drop backticks from initramfs code
12 years ago
Fabio Erculiani
734ab6d239
Merge branch 'master' into cleanup-cruft
...
Conflicts:
gen_initramfs.sh
12 years ago
Fabio Erculiani
08e7dbdfe5
Drop old and no longer working /etc/module_options support
12 years ago
Fabio Erculiani
a8f8f754cc
Revert "software: hardcode busybox version"
...
This reverts commit 04fe3fd1f4
.
12 years ago
Fabio Erculiani
04fe3fd1f4
software: hardcode busybox version
12 years ago
Fabio Erculiani
4313f7ba20
modules_load: add virtio modules
12 years ago
Fabio Erculiani
8ea38a7db9
modules_load: add MODULES_CRYPT, improve backward compatibility
12 years ago
Fabio Erculiani
c29e0ef023
Complete Plymouth integration. Fix the last set of minor bugs
12 years ago
Fabio Erculiani
fb6fa7903d
Make plymouth ask-for-password work as expected
12 years ago
Fabio Erculiani
bea8085444
Introduce initial support to Plymouth
12 years ago
Fabio Erculiani
5d8c6d3873
Use iscsistart from system, don't compile it
12 years ago
Fabio Erculiani
5750b8ac63
Use /sbin/gpg from system, don't compile it
12 years ago
Fabio Erculiani
546d990402
Fuse is not used by anything, kill it
12 years ago
Fabio Erculiani
4288a38895
Drop commented out code, cruft of the past
12 years ago
Fabio Erculiani
f1487fa8b6
Drop support for unionfs, broken and broken
12 years ago
Fabio Erculiani
4d5e8e4e69
linuxrc: don't try to be too smart wrt resolving REAL_ROOT symlink
...
This breaks LVM support with udev, don't do it, there is absolutely no reason
12 years ago
Fabio Erculiani
874707d0f7
gen_compile: use MDADM from system
12 years ago
Fabio Erculiani
7e73673abe
gen_compile: use DMRAID from system, don't compile our own
12 years ago
Fabio Erculiani
64ea1af0e1
gen_compile: use LVM from system for the initramfs
12 years ago
Fabio Erculiani
3fec6febc4
genkernel: add simple udev support, include udev into initramfs if --udev
12 years ago
Fabio Erculiani
108f1daf60
linuxrc: run the debug shell multiple times, add a hook before switch_root
12 years ago
Fabio Erculiani
9ead931af1
linuxrc: use "quiet" cmdline argument for a really quiet initramfs initialization
...
"quiet" is already used by the kernel to avoid printing messages on the
console unless they are errors or warnings. Genkernel should do the same
wrt its initramfs initialization code.
This has also the advantage of improving the boot speed.
12 years ago
Fabio Erculiani
499f2d98b6
Improve speed of bootstrapCD by not calling devicelist unless needed
12 years ago
Fabio Erculiani
ffa5076fd4
Drop doslowusb and noslowusb boot parameters.
...
scandelay=<secs> should be always preferred. Moreover, nowadays
automatically sleeping waiting for USB storage to come up in
the way we were used to do it doesn't work as one expects, because
USB is very common and USB storage devices are very likely to be
present on a system.
Furthermore, the initialization code after setup_slowusb is already
waiting for devices to come up.
12 years ago
Fabio Erculiani
682d0b0d0a
Drop "sleep 3" from sdelay if CDROOT=1. One can use scandelay=secs if needed.
...
While this makes out of the box booting a bit harder on some ancient CD/DVD
drives, it really speeds up the common use case by not sleeping for 3 seconds.
12 years ago
Fabio Erculiani
a408d4a513
Drop useless parens in conditionals
12 years ago
Fabio Erculiani
421b210c67
Drop KV_2_6_OR_GREATER
...
Linux 2.2 and 2.4 are no longer supported. RIP old kernels.
12 years ago
Fabio Erculiani
3a054014e8
Drop our own /sbin/modprobe and use busybox built-in applet instead
...
Our modprobe is an ancient heritage from the past, probably dating to
a time where busybox's modprobe features were limited. There is no reason
at all to keep using our own version instead of the busybox one.
This commit also makes modules_scan 15% faster.
12 years ago
Peter Hjalmarsson
e4ab952d63
Add rootflags to switches we understand
...
Nearly every general documentation including the one in the
kernel tree and the scripts for GRUB2 all expects this flag
to work.
Signed-off-by: Peter Hjalmarsson <xake@rymdraket.net>
12 years ago
Toralf Förster
543181ebef
Fix non-functional init_opts parameter, bug #422471
...
If INIT_OPTS='' is not specified before the argument loop, scoping rules
will prevent it from being seen by the switch_root invocation.
Signed-off-by: Toralf Förster <toralf.foerster@gmx.de>
Signed-off-by: Richard Yao <ryao@gentoo.org>
12 years ago
Robin H. Johnson
32a9b007bf
linuxrc: part keyword
...
Clean up documentation and functionality of "part" argument to
initramfs. It is meant to imitate the same option to the kernel.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
12 years ago
Fabio Erculiani
30c7284c92
Unquote ${ZPOOL_FORCE} variable usage.
...
The default value of ${ZPOOL_USAGE} is unset, quoting it would result into
a "" argument passed to zpool. The workaround to this is to use "dozfs=force"
boot argument.
Signed-off-by: Richard Yao <ryao@gentoo.org>
12 years ago
Marek Sapota
3fa1bf680d
Bug #378105 : UUID/LABEL support for LUKS keydevs
...
LUKS keydevs now support mount by UUID/LABEL.
X-Gentoo-Bug: 378105
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=378105
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
12 years ago
Peter Hjalmarsson
7e224199ff
Support using init= on the command line
...
We do not support ramdisk, only initramfs nowdays.
So init= is a dead command, and we may as well have it do the same as
it does for dracut and in the Linux kernel documentation.
(Use rdinit to choose the initramfs init file)
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
12 years ago
Robin H. Johnson
ec4628ee5e
Clean up module drift over the years. Just MODULES_CRYPTO left.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
12 years ago
Robin H. Johnson
e6de60283b
Bug #286187 : Complete multipath support.
...
Somewhere in the mists of time we lost part of the multipath patch, so
we were bundling the userspace, but not the kernel modules, or ever
using it.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
12 years ago
Robin H. Johnson
bddbeeb887
Bug #351873 : More livecd control, and initramfs livecd argument documentation.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
12 years ago
Robin H. Johnson
4d42bbf35b
Bug #336170 : amd74xx was long-replaced by pata_amd.
...
The old driver is problematic, as even with the pata_amd module loaded,
it will not release the device. Disable the old driver on remaining
platforms, add pata_amd where missing & needed (not alpha).
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
12 years ago
Robin H. Johnson
097e88ff46
Attempt to fix bug #421839 : missing /run on LiveCD environment.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
12 years ago
Dustin Frisch
d89f3d59e8
Check for file from real_init=FILE rather than /sbin/init (bug #437080 )
12 years ago
Fabio Erculiani
f15425841e
mount /mnt/cdrom inside target chroot even when aufs/unionfs is disabled
13 years ago
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