5 # This script creates a bootable image and should at some point in the future
6 # be replaced by the proper NetBSD infrastructure.
10 : ${OBJ=../obj.${ARCH}}
11 : ${TOOLCHAIN_TRIPLET=i586-elf32-minix-}
14 : ${IMG=minix_pkgsrc.iso}
16 : ${CREATE_IMAGE_ONLY=1}
18 if [ ! -f ${BUILDSH} ]
20 echo "Please invoke me from the root source dir, where ${BUILDSH} is."
24 # set up disk creation environment
25 . releasetools
/image.defaults
26 . releasetools
/image.functions
28 echo "Building work directory..."
31 echo "Bundling packages..."
32 bundle_packages
"$BUNDLE_PACKAGES"
34 echo "Creating specification files..."
35 cat > ${WORK_DIR}/extra.base
<<EOF
36 . type=dir uid=0 gid=0 mode=0755
37 ./usr type=dir uid=0 gid=0 mode=0755
43 if [ -f ${IMG} ] # IMG might be a block device
49 ${CROSS_TOOLS}/nbmakefs -t cd9660 -F ${WORK_DIR}/input -o "rockridge,label=MINIX_PKGSRC" ${IMG} ${ROOT_DIR}
52 echo "ISO image at `pwd`/${IMG}"