summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2010-10-21 22:46:10 +0000
committerimp <imp@FreeBSD.org>2010-10-21 22:46:10 +0000
commit1316729c463d9ce599c1e1a96e2d028a24bb2511 (patch)
treead9464279dc3a9841b6c8ba5300f5ab41ca82f8f
parentc29e8203e995e2d78a3d72c34fe46c29a26712d6 (diff)
downloadFreeBSD-src-1316729c463d9ce599c1e1a96e2d028a24bb2511.zip
FreeBSD-src-1316729c463d9ce599c1e1a96e2d028a24bb2511.tar.gz
More support for IMAGE installations
-rwxr-xr-xusr.sbin/pc-sysinstall/backend/functions-bsdlabel.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.sbin/pc-sysinstall/backend/functions-bsdlabel.sh b/usr.sbin/pc-sysinstall/backend/functions-bsdlabel.sh
index f5cf86a..e801714 100755
--- a/usr.sbin/pc-sysinstall/backend/functions-bsdlabel.sh
+++ b/usr.sbin/pc-sysinstall/backend/functions-bsdlabel.sh
@@ -219,9 +219,17 @@ setup_mbr_partitions()
USINGENCROOT="0" ; export USINGENCROOT
fi
+ if [ -n "${IMAGE}" ]
+ then
+ FS="IMAGE"
+ SIZE=`ls -l "${IMAGE}" | awk '{ print $5 }'`
+ MNT=`echo $STRING | tr -s '\t' ' ' | cut -d ' ' -f 2`
+ SIZE=`convert_byte_to_megabyte $SIZE`
+ fi
+
# Now check that these values are sane
case $FS in
- UFS|UFS+S|UFS+J|UFS+SUJ|ZFS|SWAP) ;;
+ UFS|UFS+S|UFS+J|UFS+SUJ|ZFS|SWAP|IMAGE) ;;
*) exit_err "ERROR: Invalid file system specified on $line" ;;
esac
OpenPOWER on IntegriCloud