Fabio Erculiani
ee6524c4f9
00-crypt.sh: drop fixed TODO
11 years ago
Fabio Erculiani
c27eb25a0b
00-crypt.sh: _bootstrap_key: use local variables
11 years ago
Fabio Erculiani
b4307cc484
initramfs: add support for multiple crypted root and swap devices
...
It is now possible to pass multiple crypt_roots= and crypt_swaps=
parameters (mind the "s") and have multiple devices concurring to
building the final root device and swap areas activated.
The change is backward compatible and crypt_root=, crypt_swap= is
still fully supported.
This change makes possible to support multiple device mapper block
devices grouped together into aggregated software raid devices.
For instance, two individual luks devices can be now used to build
a single raid0 or raid1 md device.
Moreover, genkernel-next initramfs now supports multiple encrypted
swap devices.
11 years ago
Fabio Erculiani
cda54cd13b
00-livecd.sh: de-hardcode /dev/mapper/root, use ${REAL_ROOT}
11 years ago
Fabio Erculiani
718996ddc4
00-livecd.sh: de-hardcode /dev/loop0, use losetup -f instead
...
Assuming that /dev/loop0 is free is really stupid.
11 years ago
Fabio Erculiani
e4426f1a80
00-crypt.sh: improve support for crypt over LVM and LVM over crypt, add swap support
11 years ago
Fabio Erculiani
aea5fc4a9d
00-crypt.sh: add tailing "/" to ${REAL_ROOT} grep
11 years ago
Fabio Erculiani
06ee07bf94
00-crypt.sh: start to de-hardcode root=/dev/mapper/root requirements
...
When cryptsetup is in use for the root filesystem, user was either
forced to have root=/dev/mapper/root or no root= in cmdline.
However, grub2 sets its own root= variable and we should really
respect it if it's a /dev/mapper entry
11 years ago
Fabio Erculiani
33a5119a78
00-crypt.sh: tentatively drop one horrible "sleep" call
...
Thomas Bettler reported that things seem to work, but more testing
may be needed.
11 years ago
Fabio Erculiani
d3601914df
00-crypt.sh: fix undefined function, s/err_msg/bad_msg/
...
Thanks to Thomas Bettler for reporting
11 years ago
Fabio Erculiani
4a125bb674
00-fsdev.sh: fix typo in script as reported in bug #486636
11 years ago
Fabio Erculiani
de41ea1265
00-fsdev.sh: do not bad_msg if mdadm --scan returns != 0
...
Historically, users have mdadm support enabled even in conditions
where md devices are not (yet?) available.
11 years ago
Fabio Erculiani
6696e59039
initrd.scripts: move move_mounts_to_chroot to 00-fsdev.sh
11 years ago
Fabio Erculiani
9b983fabc1
initrd.scripts: move getdvhoff to 00-livecd.sh (and make it "private")
11 years ago
Fabio Erculiani
9bc5b60794
initrd.scripts: move rootdev code to 00-rootdev.sh
11 years ago
Fabio Erculiani
5a9dc6ae08
initrd.scripts: move iscsi code to 00-iscsi.sh
11 years ago
Fabio Erculiani
8dcf20f4b5
initrd.scripts: move swsusp code to 00-suspend.sh
11 years ago
Fabio Erculiani
29d5c94dac
initrd.scripts: move LUKS code to 00-crypt.sh, refactor it slightly
12 years ago
Fabio Erculiani
c6af477460
initrd.scripts: move media_find, start_volumes, setup_md_devices to 00-fsdev.sh
12 years ago
Fabio Erculiani
cd20666829
initrd.scripts: move zfs_start_volumes outside of start_volumes
12 years ago
Fabio Erculiani
6b29188ee3
gen_initramfs: provide /bin/udhcpc
12 years ago
Fabio Erculiani
2af62f0189
gen_initramfs: provide /bin/dmesg as well
12 years ago
Fabio Erculiani
51a54c3388
initrd.scripts: move find_nfs to 00-nfs.sh
12 years ago
Fabio Erculiani
4fad24c756
initrd.d: move is_livecd() back to 00-common.sh to avoid circular deps
12 years ago
Fabio Erculiani
0308b18e1e
initrd.scripts: move keymaps functions to 00-keymaps.sh
12 years ago
Fabio Erculiani
58669a002c
initrd.scripts: move cmdline_hwopts() to 00-modules.sh
12 years ago
Fabio Erculiani
079ee21409
initrd.scripts: move sdelay() to 00-common.sh
12 years ago
Fabio Erculiani
56e9775b53
initrd.d: trivially update code style of quiet_kmsg and verbose_kmsg
12 years ago
Fabio Erculiani
5722d3826e
initrd.scripts: move test_success() to 00-common.sh and fix it
12 years ago
Fabio Erculiani
fae57916b9
initrd.scripts: move prompt_user() to 00-splash.sh
12 years ago
Fabio Erculiani
547b54238a
initrd.scripts: move mount_sysfs to 00-fsdev.sh
12 years ago
Fabio Erculiani
fa87394a19
initrd.scripts: move ask_for_password to 00-splash.sh
12 years ago
Fabio Erculiani
eb6e9ca066
initrd.scripts: move livecd code to 00-livecd.sh
12 years ago
Fabio Erculiani
4c9f7dce50
initrd.scripts: move quiet_kmsg and verbose_kmsg to 00-common.sh
12 years ago
Fabio Erculiani
bb1e05985c
initrd.scripts: move modules functions to 00-modules.sh
12 years ago
Fabio Erculiani
5f9050e1a6
initrd.scripts: refactor setup_real_root and rootdev_init functions
...
These two functions were a real mess, and the cure is painful.
${REAL_ROOT} setup code and ${REAL_ROOT} init code are now cleaner
and easier to read. ZFS support should have been preserved but
I may have caused new regressions. These changes should be tested.
12 years ago
Fabio Erculiani
98f264fa20
initrd.scripts: move zfs functions to 00-zfs.sh
12 years ago
Fabio Erculiani
7c2f5828fd
initrd.scripts: move mount_devfs() to 00-devmgr.sh
12 years ago
Fabio Erculiani
e4742ab0b5
initrd.scripts: move more functions to initrd.d/
12 years ago
Fabio Erculiani
90983b4fd2
initrd.scripts: move splash functions to a separate file
...
Start to make the genkernel code a bit modular. Also add initrd.d
support to gen_initramfs.sh
12 years ago