Skip to content

Commit

Permalink
Update rc
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd authored Nov 8, 2020
1 parent c78691a commit dea799d
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions overlays/ramdisk/etc/rc
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit dea799d

Please sign in to comment.