summaryrefslogtreecommitdiffstats
path: root/release/scripts
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2002-11-04 00:50:01 +0000
committermarcel <marcel@FreeBSD.org>2002-11-04 00:50:01 +0000
commit28918016b43014fb49091b78752ed45b3629b21d (patch)
tree47082cc6be507e26a25032f9c7463447d6e147ad /release/scripts
parent7c911aebf48467f716a27e43ebd616eb441b8bc5 (diff)
downloadFreeBSD-src-28918016b43014fb49091b78752ed45b3629b21d.zip
FreeBSD-src-28918016b43014fb49091b78752ed45b3629b21d.tar.gz
Add the necessary tweaks for FreeBSD/ia64 releases. Note that this is
in no way final. A typical ia64 wart is that there are no boot blocks. Instead, we need to create disks with EFI partitions if we want auto boot to work. All this functionality is not present yet.
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/doFS.sh15
1 files changed, 12 insertions, 3 deletions
diff --git a/release/scripts/doFS.sh b/release/scripts/doFS.sh
index da4e179..5b5b6b0 100644
--- a/release/scripts/doFS.sh
+++ b/release/scripts/doFS.sh
@@ -21,7 +21,16 @@ FSPROTO=$1 ; shift
FSINODE=$1 ; shift
FSLABEL=$1 ; shift
-BOOT1="-b ${RD}/trees/base/boot/boot1"
+#
+# We don't have any bootblocks on ia64. Note that -B implies -r,
+# so we have to specifically specify -r when we don't have -B.
+# disklabel fails otherwise.
+#
+if [ -f "${RD}/trees/base/boot/boot1" ]; then
+ BOOT1="-B -b ${RD}/trees/base/boot/boot1"
+else
+ BOOT1="-r"
+fi
if [ -f "${RD}/trees/base/boot/boot2" ]; then
BOOT2="-s ${RD}/trees/base/boot/boot2"
else
@@ -54,7 +63,7 @@ dofs_vn () {
dd of=${FSIMG} if=/dev/zero count=${FSSIZE} bs=1k 2>/dev/null
vnconfig -s labels -c /dev/r${VNDEVICE} ${FSIMG}
- disklabel -w -B ${BOOT1} ${BOOT2} ${VNDEVICE} ${FSLABEL}
+ disklabel -w ${BOOT1} ${BOOT2} ${VNDEVICE} ${FSLABEL}
newfs -i ${FSINODE} -o space -m 1 /dev/r${VNDEVICE}c
mount /dev/${VNDEVICE}c ${MNT}
@@ -105,7 +114,7 @@ dofs_md () {
exit 1
fi
fi
- disklabel -w -B ${BOOT1} ${BOOT2} ${MDDEVICE} ${FSLABEL}
+ disklabel -w ${BOOT1} ${BOOT2} ${MDDEVICE} ${FSLABEL}
newfs -i ${FSINODE} -o space -m 0 /dev/${MDDEVICE}c
mount /dev/${MDDEVICE}c ${MNT}
OpenPOWER on IntegriCloud