]> git.friedersdorff.com Git - max/initramfs.git/blobdiff - init
More changes
[max/initramfs.git] / init
diff --git a/init b/init
index 5d24645178ab998a6d6beab929f62d4950e0788e..ee4816b621db1c71703b08d4104a5b4d46eecf76 100755 (executable)
--- a/init
+++ b/init
@@ -15,8 +15,6 @@ rescue_shell() {
 # Unlock luks device
 /sbin/cryptsetup -T 5 luksOpen /dev/sdb3 lukssdb3 || rescue_shell
 
-rescue_shell
-
 # Create LVM nodes /dev/main/root etc
 /sbin/lvm vgscan --mknodes || rescue_shell
 /sbin/lvm lvchange -a ly main/root || rescue_shell
@@ -28,7 +26,7 @@ rescue_shell
 /bin/busybox mount -o ro /dev/main/root /mnt/root || rescue_shell
 
 # Unmount filesystems
-/bin/busybox unmount /dev
+/bin/busybox umount /dev || rescue_shell
 
 # Boot system
-exec switch_root /mnt/root /sbin/init
+exec /bin/busybox switch_root /mnt/root /sbin/init || rescue_shell