mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 19:52:44 +00:00
- 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
ad8204e3f5
commit
2d19d3a9b4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118800
@ -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