aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mkimg.netboot.sh
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-06-08 14:06:15 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-06-11 18:49:42 +0000
commitc63d504e458fe9cdd60ac484531693fa83b08b50 (patch)
treed9e22eaa9abd685c01a2b4ae99e424e565a43975 /scripts/mkimg.netboot.sh
parent79f771260719243d28b4732989be6e442df0b5f6 (diff)
downloadaports-c63d504e458fe9cdd60ac484531693fa83b08b50.tar.gz
aports-c63d504e458fe9cdd60ac484531693fa83b08b50.tar.bz2
aports-c63d504e458fe9cdd60ac484531693fa83b08b50.tar.xz
scripts/mkimage: add netboot profile
Diffstat (limited to 'scripts/mkimg.netboot.sh')
-rwxr-xr-xscripts/mkimg.netboot.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/mkimg.netboot.sh b/scripts/mkimg.netboot.sh
new file mode 100755
index 0000000000..459cb14890
--- /dev/null
+++ b/scripts/mkimg.netboot.sh
@@ -0,0 +1,23 @@
+create_image_netboot() {
+ rm -rf "${OUTDIR}"/netboot-$RELEASE
+ cp -a "${DESTDIR}"/boot "${OUTDIR}"/netboot-$RELEASE
+ tar -C "${DESTDIR}" -chzf ${OUTDIR}/${output_filename} boot/
+}
+
+profile_netboot() {
+ title="Netboot"
+ desc="Kernel, initramfs and modloop for
+ netboot.
+ "
+ arch="x86_64 s390x"
+ kernel_cmdline="nomodeset"
+ kernel_flavors="vanilla"
+ apks=""
+ initfs_features="ata base bootchart squashfs ext2 ext3 ext4 mmc network scsi usb virtio"
+ output_format="netboot"
+ image_ext="tar.gz"
+ case "$ARCH" in
+ x86_64) kernel_flavors="$kernel_flavors virt";;
+ esac
+}
+