More ZFS cleanups

This commit is contained in:
Scott Ullrich 2010-08-14 20:25:10 -04:00
parent 6e8e75b18e
commit f38e4f2695
3 changed files with 4 additions and 3 deletions

View File

@ -73,7 +73,8 @@ zfs_cleanup_unmount()
do
if [ "${ZMNT}" != "/" ]
then
rc_halt "zfs set mountpoint=${ZMNT} ${ZPOOLNAME}${ZMNT}"
#rc_halt "zfs set mountpoint=${ZMNT} ${ZPOOLNAME}${ZMNT}"
rc_halt "zfs set mountpoint=${ZMNT} ${ZPOOLNAME}"
#rc_halt "zfs unmount ${ZPOOLNAME}${ZMNT}"
#sleep 2
fi

View File

@ -90,7 +90,7 @@ unmount_all_filesystems()
# If are using a ZFS on "/" set it to legacy
if [ ! -z "${FOUNDZFSROOT}" ]
then
#rc_halt "zfs set mountpoint=legacy ${FOUNDZFSROOT}"
rc_halt "zfs set mountpoint=legacy ${FOUNDZFSROOT}"
fi
# If we need to relabel "/" do it now

View File

@ -115,7 +115,7 @@ function start_installation() {
fwrite($fd, "chmod a+rx /usr/local/bin/after_installation_routines.sh\n");
fwrite($fd, "cd / && /usr/local/bin/after_installation_routines.sh\n");
fwrite($fd, "mkdir /mnt/tmp\n");
fwrite($fd, "umount /mnt\n");
// fwrite($fd, "umount /mnt\n");
fwrite($fd, "touch /tmp/install_complete\n");
fclose($fd);
exec("chmod a+rx /tmp/installer.sh");