create_iso.sh 381 Bytes
Newer Older
1 2 3 4
#!/bin/sh

# FIXME: include os explorer to name preos

5 6 7 8 9 10 11
if [ "$#" -ne 2 ]; then
    echo "$0 dir-in iso-out"
    exit 1
fi

indir=$1; shift
iso=$1; shift
12

Nico Schottelius's avatar
Nico Schottelius committed
13
version=0.4
14

15 16
out=preos-${version}.iso

17 18 19 20 21
    # -cache-inodes \
genisoimage -r -J -l \
    -V "cdist PreOS $version" \
    -b boot/isolinux.bin -no-emul-boot -c boot.cat -boot-load-size 4 -boot-info-table \
    -o "$iso" "$indir"