diff options
author | imp <imp@FreeBSD.org> | 2010-10-09 08:52:09 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2010-10-09 08:52:09 +0000 |
commit | 3373ecde5ca05e50431b3c471dc2273cd4aa0684 (patch) | |
tree | 7150d81e3a4829aa5c267662132f05aeab3b70d5 /usr.sbin/pc-sysinstall/backend/functions-mountdisk.sh | |
parent | 69b5e27b6262ebefe667ae8ee68532c760620e48 (diff) | |
download | FreeBSD-src-3373ecde5ca05e50431b3c471dc2273cd4aa0684.zip FreeBSD-src-3373ecde5ca05e50431b3c471dc2273cd4aa0684.tar.gz |
Initial patches to install images...
PR: 150921
Diffstat (limited to 'usr.sbin/pc-sysinstall/backend/functions-mountdisk.sh')
-rwxr-xr-x | usr.sbin/pc-sysinstall/backend/functions-mountdisk.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.sbin/pc-sysinstall/backend/functions-mountdisk.sh b/usr.sbin/pc-sysinstall/backend/functions-mountdisk.sh index 57d70ec..5aa7a2b 100755 --- a/usr.sbin/pc-sysinstall/backend/functions-mountdisk.sh +++ b/usr.sbin/pc-sysinstall/backend/functions-mountdisk.sh @@ -127,6 +127,7 @@ mount_all_filesystems() UFS+SUJ) mount_partition ${PART}${EXT} ${PARTFS} ${PARTMNT} "noatime" ;; UFS+J) mount_partition ${PART}${EXT}.journal ${PARTFS} ${PARTMNT} "async,noatime" ;; ZFS) mount_partition ${PART} ${PARTFS} ${PARTMNT} ;; + IMAGE) mount_partition ${PART} ${PARTFS} ${PARTMNT} ;; *) exit_err "ERROR: Got unknown file-system type $PARTFS" ;; esac fi @@ -176,7 +177,14 @@ mount_all_filesystems() rc_halt "swapon /dev/${PART}" fi ;; - *) exit_err "ERROR: Got unknown file-system type $PARTFS" ;; + IMAGE) + if [ ! -d "${PARTMNT}" ] + then + mkdir -p "${PARTMNT}" + fi + mount_partition ${PART} ${PARTFS} ${PARTMNT} + ;; + *) exit_err "ERROR: Got unknown file-system type $PARTFS" ;; esac fi done |