summaryrefslogblamecommitdiff
path: root/mkiso
blob: 9cad45c29bfcd3ef1e2bbdb0a74f3364da9b3416 (plain) (tree)
1
2
3
4
5
6





                      









                                        









                                               
                                                                     


   


                                                          

            
            

                 

                         










                                  
#!/bin/sh

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
cat >$tmp/isolinux/isolinux.cfg <<EOF
timeout 300
prompt 1
default test

label test
	kernel /boot/vmlinuz
	append initrd=/test.gz init=/sbin/init quiet alpine_dev=cdrom
EOF


#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 \
	-c isolinux/boot.cat	\
	-no-emul-boot		\
	-boot-load-size 4	\
	-boot-info-table	\
	-quiet			\
	$tmp