summaryrefslogtreecommitdiff
path: root/mkiso
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-01-02 12:04:35 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-01-02 12:04:35 +0000
commit29c9030dcdc8a309f606fb816779353a87395604 (patch)
treeb30374d94a0604e9ae5f3158065be2f3c7990b23 /mkiso
parentebfe2cf1a71bddfa2f4d61b47a933ca5cd27f267 (diff)
downloadabuild-29c9030dcdc8a309f606fb816779353a87395604.tar.gz
abuild-29c9030dcdc8a309f606fb816779353a87395604.tar.bz2
abuild-29c9030dcdc8a309f606fb816779353a87395604.tar.xz
abuild-29c9030dcdc8a309f606fb816779353a87395604.zip
mk*: build and include modloop
try also mount modloop during boot and run a second pass hardware detect.
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 \