summaryrefslogtreecommitdiffstats
path: root/mkiso
diff options
context:
space:
mode:
Diffstat (limited to 'mkiso')
-rw-r--r--mkiso21
1 files changed, 17 insertions, 4 deletions
diff --git a/mkiso b/mkiso
index af55146..9cad45c 100644
--- a/mkiso
+++ b/mkiso
@@ -4,6 +4,16 @@ tmp=$PWD/tmp
aports=$PWD/../aports
target=alpine-test.iso
+unapk() {
+ local dest="$1"
+ shift
+ while [ $# -gt 0 ]; do
+ tar -C "$dest" -zxf "$1"
+ shift
+ done
+ rm -f "$dest/.PKGINFO"
+}
+
rm -r $tmp
mkdir -p $tmp/apks $tmp/isolinux
cp /usr/share/syslinux/isolinux.* $tmp/isolinux
@@ -14,17 +24,20 @@ default test
label test
kernel /boot/vmlinuz
- append initrd=/test.gz init=/sbin/init quiet
+ append initrd=/test.gz init=/sbin/init quiet alpine_dev=cdrom
EOF
-cp $aports/core/*/*.apk $tmp/apks
-tar -C $tmp -zxf $aports/core/linux-grsec/linux-grsec-[0-9]*.apk
-rm -f $tmp/.PKGINFO
+#cp $aports/core/*/*.apk $tmp/apks
+
+unapk $tmp $aports/core/linux-grsec/linux-grsec-[0-9]*.apk
sh mkinitram
+sh mkmodloop
cp test.gz $tmp/
+mkdir -p $tmp/boot/
+cp modloop.cmg $tmp/boot/
genisoimage -o $target -l -J -R \
-b isolinux/isolinux.bin \