blob: 8b25c260e20d0212751231385bf03fb79336a424 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
|