diff options
author | Judd Vinet <judd@archlinux.org> | 2005-11-04 09:50:36 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2005-11-04 09:50:36 +0000 |
commit | 826e8af03cdfc3edec0dfc382a4f4308748a08f7 (patch) | |
tree | d871ced7321f376d941278780b65a35a538beece /rc.sysinit | |
parent | e00744e1d385f80f44618baea869136dcf64c88c (diff) | |
download | initscripts-826e8af03cdfc3edec0dfc382a4f4308748a08f7.tar.xz |
added support for encrypted root filesystems through the initrd
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-x | rc.sysinit | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -34,6 +34,16 @@ else status "Using static /dev filesystem" /bin/true fi +# If using an encrypted root fs, we should find the root dev in the initrd +if [ -e /initrd/dev/mapper/root ]; then + mkdir /dev/mapper 2>/dev/null + cp -a /initrd/dev/mapper/root /dev/mapper/root +fi +# Unmount the old initrd, if it exists +[ -d /initrd ] && umount /initrd 2>/dev/null + +# TODO: set up non-root encrypted partition mappings + if [ "$USELVM" = "yes" -o "$USELVM" = "YES" ]; then if [ -f /etc/lvmtab -a -x /sbin/vgchange ]; then # Kernel 2.4.x, LVM1 groups |