mkimg.netboot.sh 811 Bytes
Newer Older
1
create_image_netboot() {
2
	rm -rf "${OUTDIR}"/netboot-$RELEASE "${OUTDIR}"/netboot
3
	cp -aL "${DESTDIR}"/boot "${OUTDIR}"/netboot-$RELEASE
4
	ln -s netboot-$RELEASE "${OUTDIR}"/netboot
5 6 7 8 9 10 11 12
	tar -C "${DESTDIR}" -chzf ${OUTDIR}/${output_filename} boot/
}

profile_netboot() {
	title="Netboot"
	desc="Kernel, initramfs and modloop for
		netboot.
		"
13
	arch="aarch64 armhf armv7 ppc64le x86 x86_64 s390x"
14 15
	kernel_cmdline="nomodeset"
	kernel_flavors="vanilla"
16
	modloop_sign=yes
17
	apks=""
18
	initfs_features="base network squashfs usb virtio"
19 20 21 22
	output_format="netboot"
	image_ext="tar.gz"
	case "$ARCH" in
	x86_64) kernel_flavors="$kernel_flavors virt";;
23
	s390x) initfs_features="$initfs_features dasd_mod qeth";;
24 25
	aarch64) kernel_flavors="$kernel_flavors rpi";;
	armhf|armv7) kernel_flavors="$kernel_flavors rpi rpi2";;
26 27 28
	esac
}