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
Christian Kruse
c92fe6f0e6
Introduce boot parameter root_trim=(yes|no) for SSDs
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
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
Sebastian Pipping
bf0cad6a30
Remove support for sys-fs/evms, as it was removed from Gentoo (bug #372423 )
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
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
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
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
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
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
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
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
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
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
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
Andrew Gaffney
61bf391991
back out previous commit
16 years ago
Andrew Gaffney
f3ae1fe692
Alternative solution for Gentoo bug #269603
16 years ago
Andrew Gaffney
a9bd822a9f
Change command used to determine real filename for REAL_RESUME for Gentoo bug #269603
16 years ago
craig
cac66e0970
iSCSI patch for genkernel
16 years ago
Andrew Gaffney
8b3093a153
Apply fix to deference links for gentoo bug #269603
16 years ago
Andrew Gaffney
ce68841635
remove allow_root
16 years ago
Andrew Gaffney
b08a3148d3
add a few more mount options to try to help livecd
16 years ago
Andrew Gaffney
3fd9ecdd35
add a few more mount options to try to help livecd
16 years ago
Andrew Gaffney
d48dc40bd2
Remove detect_sbp2_devices() for gentoo bug #239474
16 years ago
Chris Gianelloni
20f2b57e95
Actually setting permissions. It helps if one remembers to 'git add' before doing their commit.
16 years ago
Andrew Gaffney
8bc0328be8
Move udhcpc's script to default location
16 years ago
Andrew Gaffney
bbbfa2b4de
Add good_msg for creating the union mount
16 years ago
Andrew Gaffney
74af3caa68
Pipe stderr for unionfs mount call to /dev/null to supress getcwd message
16 years ago
Andrew Gaffney
41f44b1d42
Call switch_root with full path
16 years ago
Andrew Gaffney
890382b8e0
Simplify implementation of parse_opt in linuxrc
16 years ago
Andrew Gaffney
abf5986e2b
Small cleanups in unionfs code
16 years ago
Andrew Gaffney
469be61e0c
Add suid,dev to unionfs mount opts
16 years ago
agaffney
692db1a447
Remove allow_root mount opt, since it conflicts with allow_other
16 years ago
agaffney
9f076e1e68
Change typo in unionfs-fuse mount opt and add -i support to umount
16 years ago
agaffney
bfa0dbb585
Add patch for busybox to add -i option to mount command
16 years ago
agaffney
7b9ba94669
Add back (modified) unionfs code in linuxrc
16 years ago
agaffney
d1cac89e98
Remove check for >=2.6 for mounting sysfs
17 years ago
Chris Gianelloni
d5b1e6a985
Removed all references to an initrd and renamed most initr{d,amfs} stuff to simply 'ramdisk' to simplify things for the future.
17 years ago
Chris Gianelloni
1ffb37f09c
Moving files from generic to defaults, since they are the defaults used globally.
17 years ago