Using save/ to keep downloads and partial progress
[rrq/tiniest.git] / packiso.sh
index b6558f2793626ac9a8cfeb3e19762b75608f5b56..f3e7ee95e3fe2055a8f533ece736d4bcc838d0dc 100755 (executable)
@@ -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