diff options
author | bms <bms@FreeBSD.org> | 2008-09-22 20:21:39 +0000 |
---|---|---|
committer | bms <bms@FreeBSD.org> | 2008-09-22 20:21:39 +0000 |
commit | 849a6bf2d2e4f033bf8cdaee48416508a3cdf1fe (patch) | |
tree | 89f4adacd5ed63253a2fe5cc5b8019f9673a5ce8 /tools/tools | |
parent | a689a9e9146d06326e1194f1798a5000c749f7cd (diff) | |
download | FreeBSD-src-849a6bf2d2e4f033bf8cdaee48416508a3cdf1fe.zip FreeBSD-src-849a6bf2d2e4f033bf8cdaee48416508a3cdf1fe.tar.gz |
Mark the first slice of a NanoBSD image 'active' by default.
This fixes USB boot (not yet merged to HEAD) with 3 flavours
of BIOS I've seen.
Approved by: phk
Diffstat (limited to 'tools/tools')
-rw-r--r-- | tools/tools/nanobsd/nanobsd.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/tools/nanobsd/nanobsd.sh b/tools/tools/nanobsd/nanobsd.sh index 48b5179..57c2af5 100644 --- a/tools/tools/nanobsd/nanobsd.sh +++ b/tools/tools/nanobsd/nanobsd.sh @@ -402,6 +402,10 @@ create_i386_diskimage ( ) ( c - $1, "sectors" > "/dev/stderr" exit 2 } + + # Force slice 1 to be marked active. This is necessary + # for booting the image from a USB device to work. + print "a 1" } ' > ${MAKEOBJDIRPREFIX}/_.fdisk |