-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |