diff options
author | luigi <luigi@FreeBSD.org> | 2001-05-11 07:39:40 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2001-05-11 07:39:40 +0000 |
commit | a7dce39116feffae4a507bf634d739db3100293a (patch) | |
tree | 732800611fc70e5cb2cc3cc36e05f54b20933014 /release/picobsd/build | |
parent | 8b011b16b30937f457138c156731df84e56beb2d (diff) | |
download | FreeBSD-src-a7dce39116feffae4a507bf634d739db3100293a.zip FreeBSD-src-a7dce39116feffae4a507bf634d739db3100293a.tar.gz |
Sync picobsd script with the one in -stable, and also
patch boot2 so it goes to load /kernel right away
Perl code from Josef Karthauser
Diffstat (limited to 'release/picobsd/build')
-rwxr-xr-x | release/picobsd/build/picobsd | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/release/picobsd/build/picobsd b/release/picobsd/build/picobsd index 39e10c0..b051526 100755 --- a/release/picobsd/build/picobsd +++ b/release/picobsd/build/picobsd @@ -597,7 +597,7 @@ init_fs_image() { # filename size_in_kbytes dd if=/dev/zero of=${imgname} count=${imgsize} bs=1k 2> /dev/null dd if=${boot1} of=${imgname} conv=notrunc 2> /dev/null - vnconfig -c vn${VNUM} ${imgname} || fail $? no_vnconfig + vnconfig -c -s labels vn${VNUM} ${imgname} || fail $? no_vnconfig } @@ -615,7 +615,9 @@ fill_floppy_image() { init_fs_image ${BUILDDIR}/picobsd.bin ${blocks} log "---> Labeling floppy image" - disklabel -Brw -b ${boot1} -s ${boot2} vn${VNUM} fd${FLOPPY_SIZE} || \ + b2=${BUILDDIR}/boot2 # modified boot2 + perl -pne 's/\/boot\/loader/\/kernel\0\0\0\0\0/' ${boot2} > ${b2} + disklabel -Brw -b ${boot1} -s ${b2} vn${VNUM} fd${FLOPPY_SIZE} || \ fail $? floppy_disklabel newfs -i ${FLOPPY_INODES} -m 0 -p 0 -o space /dev/vn${VNUM}c > /dev/null |