Lines Matching +full:mode +full:- +full:loader

16 # mkisoimages.sh [-b] image-label image-name base-bits-dir [extra-bits-dir]
18 # Where -b is passed if the ISO image should be made "bootable" by
20 # image-label is the ISO image label, image-name is the filename of the
21 # resulting ISO image, base-bits-dir contains the image contents and
22 # extra-bits-dir, if provided, contains additional files to be merged
23 # into base-bits-dir as part of making the image.
25 set -e
30 if [ "$1" = "-b" ]; then
36 if [ -f ${MAKEFSARG} ]; then
39 elif [ -d ${MAKEFSARG} ]; then
47 if [ "$1" = "-b" ]; then
54 if [ $# -lt 3 ]; then
55 echo "Usage: $0 [-b] image-label image-name base-bits-dir [extra-bits-dir]"
64 if [ -n "${METALOG}" ]; then
70 if [ -n "$bootable" ]; then
73 BOOTBLOCK=$(mktemp /tmp/hfs-boot-block.XXXXXX)
76 uudecode -p "`dirname "$0"`/hfs-boot.bz2.uu" | bunzip2 > $BOOTBLOCK
77 OFFSET=$(hd $BOOTBLOCK | grep 'Loader START' | cut -f 1 -d ' ')
79 dd if="$BASEBITSDIR/boot/loader" of=$BOOTBLOCK seek=$OFFSET conv=notrunc
81 bootable="-o bootimage=macppc;$BOOTBLOCK -o no-emul-boot"
84 mkdir -p "$BASEBITSDIR/ppc/chrp"
85 cp "$BASEBITSDIR/boot/loader" "$BASEBITSDIR/ppc/chrp"
87 <chrp-boot>
89 <os-name>FreeBSD</os-name>
90 <boot-script>boot &device;:,\ppc\chrp\loader</boot-script>
91 </chrp-boot>
93 bootable="$bootable -o chrp-boot"
94 if [ -n "${METALOG}" ]; then
95 echo "./ppc type=dir uname=root gname=wheel mode=0755" >> ${metalogfilename}
96 echo "./ppc/chrp type=dir uname=root gname=wheel mode=0755" >> ${metalogfilename}
97 echo "./ppc/chrp/loader type=file uname=root gname=wheel mode=0644" >> ${metalogfilename}
98 echo "./ppc/bootinfo.txt type=file uname=root gname=wheel mode=0644" >> ${metalogfilename}
103 if [ -n "${METALOG}" ]; then
104 echo "./etc/kboot.conf type=file uname=root gname=wheel mode=0644" >> ${metalogfilename}
110 if [ -n "${METALOG}" ]; then
111 echo "./etc/fstab type=file uname=root gname=wheel mode=0644" >> ${metalogfilename}
113 ${MAKEFS} -D -N ${BASEBITSDIR}/etc -t cd9660 $bootable -o rockridge -o label="$LABEL" -o publisher=…
114 rm -f "$BASEBITSDIR/etc/fstab"
118 rm -rf "$BASEBITSDIR/ppc"
119 if [ -n "${METALOG}" ]; then