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
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
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
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
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
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
0fa71ef46c
Fix call to blkid of util-linux
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
Richard Yao
69009cb747
Reorder mdev initialization to mimic udev boot
13 years ago
Sebastian Pipping
4d8287c3d0
Add keymap "sf", i.e. Switzerland (French) from Pentoo
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
8ac8de6055
Fix docache (bug #397309 )
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
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
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
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