X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=packiso.sh;h=f3e7ee95e3fe2055a8f533ece736d4bcc838d0dc;hb=HEAD;hp=b6558f2793626ac9a8cfeb3e19762b75608f5b56;hpb=4787f88fb3861e750bd0927ee7873905d2f829ca;p=rrq%2Ftiniest.git diff --git a/packiso.sh b/packiso.sh index b6558f2..f3e7ee9 100755 --- a/packiso.sh +++ b/packiso.sh @@ -13,6 +13,8 @@ echo "# Prepare ISO content tree unless it's already set up" if [ ! -d $ISOTREE ] ; then mkdir $ISOTREE + [ -d extra ] && rsync -a extra/. $ISOTREE/. + # Determine start and size of first parition X=( $(sfdisk -l -ostart,sectors bootimage.raw | tail -n 2) ) dd if=bootimage.raw of=$P1 skip=${X[0]} count=${X[1]} @@ -30,7 +32,6 @@ if [ ! -d $ISOTREE ] ; then ## put splash, vmlinux and initrd as siblings mcopy -i $P1 ::/splash.png ::/vmlinuz ::/initrd.gz $ISOTREE/boot/isolinux - fi [ -r $ISO ] && rm $ISO