mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-25 00:12:19 +00:00
7921216ba4
those should probably go to a separate package but I put them here for now
39 lines
632 B
Bash
39 lines
632 B
Bash
#!/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
|
|
|
|
|