- Use the correct boot/boot1 and boot/loader files.
- Use the newfs command similar to that in doFS.sh. Reviewed by: jake, jhb
This commit is contained in:
parent
23ea8b5c7a
commit
bb7fb886af
@ -24,17 +24,16 @@
|
||||
# into base-bits-dir as part of making the image.
|
||||
|
||||
IMG=/tmp/bootfs
|
||||
LOADER=/boot/loader
|
||||
MNT=/mnt
|
||||
|
||||
if [ "x$1" = "x-b" ]; then
|
||||
dd if=/dev/zero of=${IMG} bs=512 count=1024
|
||||
MD=`mdconfig -a -t vnode -f ${IMG}`
|
||||
sunlabel -Brw ${MD} auto
|
||||
newfs /dev/${MD}c
|
||||
sunlabel -w -B -b $4/boot/boot1 ${MD} auto
|
||||
newfs -O1 -o space -m 0 /dev/${MD}c
|
||||
mount /dev/${MD}c ${MNT}
|
||||
mkdir ${MNT}/boot
|
||||
cp ${LOADER} ${MNT}/boot
|
||||
cp $4/boot/loader ${MNT}/boot
|
||||
umount ${MNT}
|
||||
mdconfig -d -u ${MD#md}
|
||||
bootable="-B ,,,,${IMG}"
|
||||
|
Loading…
Reference in New Issue
Block a user