mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
More ZFS cleanups
This commit is contained in:
parent
6e8e75b18e
commit
f38e4f2695
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user