From dea799d632438cf2d065f03a5a8b62ac595a1359 Mon Sep 17 00:00:00 2001 From: probonopd Date: Sun, 8 Nov 2020 09:34:07 +0100 Subject: [PATCH] Update rc --- overlays/ramdisk/etc/rc | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/overlays/ramdisk/etc/rc b/overlays/ramdisk/etc/rc index 616b337f..ed607118 100644 --- a/overlays/ramdisk/etc/rc +++ b/overlays/ramdisk/etc/rc @@ -1,19 +1,5 @@ #!/rescue/sh -if [ ! -e /dev/md2 ] ; then - halt -p -fi - -echo "==> Unset rescue init kernel environment variables" -kenv -u init_chroot -kenv -u init_path -kenv -u init_script -kenv -u init_shell -echo "==> Unmount filesystems for cloning" -umount -f /livecd/dev -zpool export livecd umount -f /cdrom -echo "== Set /dev/md2 device for reroot" -kenv vfs.root.mountfrom=zfs:livecd -echo "==> Rerooting into memdisk" +cp /memdisk/init-reroot.sh / reboot -r