summaryrefslogtreecommitdiff
path: root/mkiso
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-01-02 07:40:21 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-01-02 07:40:21 +0000
commit7921216ba4aa5274b0863f24d329f426d83e06ec (patch)
tree1e1b9d188fda102b33d663b6e9a8f1b19f6d50b8 /mkiso
parentbbcaa47c848e0dbb8316310e86f2da2bfaef0aa8 (diff)
downloadabuild-7921216ba4aa5274b0863f24d329f426d83e06ec.tar.gz
abuild-7921216ba4aa5274b0863f24d329f426d83e06ec.tar.bz2
abuild-7921216ba4aa5274b0863f24d329f426d83e06ec.tar.xz
abuild-7921216ba4aa5274b0863f24d329f426d83e06ec.zip
added scripts to make alpine bootable
those should probably go to a separate package but I put them here for now
Diffstat (limited to 'mkiso')
-rw-r--r--mkiso38
1 files changed, 38 insertions, 0 deletions
diff --git a/mkiso b/mkiso
new file mode 100644
index 0000000..8b25c26
--- /dev/null
+++ b/mkiso
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+tmp=$PWD/tmp
+aports=$PWD/../aports
+target=alpine-test.iso
+
+rm -r $tmp
+mkdir -p $tmp/apks $tmp/isolinux
+cp /usr/share/syslinux/isolinux.* $tmp/isolinux
+cat >$tmp/isolinux/isolinux.cfg <<EOF
+timeout 300
+prompt 1
+default test
+
+label test
+ kernel /boot/vmlinuz
+ append initrd=/test.gz init=/sbin/init
+EOF
+
+
+cp $aports/core/*/*.apk $tmp/apks
+tar -C $tmp -zxf $aports/core/linux-grsec/linux-grsec-[0-9]*.apk
+rm -f $tmp/.PKGINFO
+
+sh mkinitram
+
+cp test.gz $tmp/
+
+genisoimage -o $target -l -J -R \
+ -b isolinux/isolinux.bin \
+ -c isolinux/boot.cat \
+ -no-emul-boot \
+ -boot-load-size 4 \
+ -boot-info-table \
+ -quiet \
+ $tmp
+
+