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
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
Fabio Erculiani
4d54e7d098
aufs: add basic support to AUFS2, requires kernel with aufs module or built-in
14 years ago
Sebastian Pipping
bf0cad6a30
Remove support for sys-fs/evms, as it was removed from Gentoo (bug #372423 )
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
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
craig
5e07592a75
iBFT: fix iscsi_noibft
14 years ago
craig
d9f46bb513
Add iBFT support for iSCSI
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
Sebastian Pipping
c202dbe67d
Resolve unneeded subshell
14 years ago
Peter Hjalmarsson
294ea17506
Use devtpmfs when avaible
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
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
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
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
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
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
24446b0465
Add support for isoboot= option (for Gentoo bug #294268 )
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
cac66e0970
iSCSI patch for genkernel
16 years ago
Andrew Gaffney
d9aed5a321
Comment out the exec line for console=*, since it seems to blow up when the param isn't a true device node, such as ttyS0,115200n8
16 years ago
Andrew Gaffney
d48dc40bd2
Remove detect_sbp2_devices() for gentoo bug #239474
16 years ago
Andrew Gaffney
5f9a6b2749
Remove the use of 'env -i' when calling switch_root due to gentoo bug #248688
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
462e35fe87
Add --real-root=<foo> parameter to specify a default for real_root= in the initramfs for gentoo bug #249783
16 years ago
Andrew Gaffney
a4d6260dd0
Applied patch for UUID support for real_resume= from gentoo bug #239687
16 years ago
Andrew Gaffney
d07862bb8e
Add --unionfs commandline option to enable building of unionfs-fuse
...
Add nounionfs boot option
16 years ago
Andrew Gaffney
41f44b1d42
Call switch_root with full path
16 years ago
Andrew Gaffney
fa9cbeeda8
Call switch_root with 'env -i' to clean out the kernel-defined key/value pairs
16 years ago
Andrew Gaffney
48b282a85d
Skip good_root check for /dev/nfs for gentoo bug #246759
16 years ago
Andrew Gaffney
abf5986e2b
Small cleanups in unionfs code
16 years ago
agaffney
b116df3c98
Make sure that /sbin/unionfs is +x
16 years ago
agaffney
7b9ba94669
Add back (modified) unionfs code in linuxrc
16 years ago
Robin H. Johnson
b96546958f
Add a single word to help clarify which /dev is broken, after I wasted a day debugging my new box.
17 years ago
agaffney
64660f969f
Fix CONSOLE= handling code for bug 232012
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