aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2005-11-04 09:50:36 +0000
committerJudd Vinet <judd@archlinux.org>2005-11-04 09:50:36 +0000
commit826e8af03cdfc3edec0dfc382a4f4308748a08f7 (patch)
treed871ced7321f376d941278780b65a35a538beece /rc.sysinit
parente00744e1d385f80f44618baea869136dcf64c88c (diff)
downloadinitscripts-826e8af03cdfc3edec0dfc382a4f4308748a08f7.tar.xz
added support for encrypted root filesystems through the initrd
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit10
1 files changed, 10 insertions, 0 deletions
diff --git a/rc.sysinit b/rc.sysinit
index aa37f48..497259b 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -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