aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mkimg.netboot.sh
blob: 8520fc60dd48030b7586892b2b829df4bcb60d7c (plain)
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
create_image_netboot() {
	rm -rf "${OUTDIR}"/netboot-$RELEASE "${OUTDIR}"/netboot
	cp -aL "${DESTDIR}"/boot "${OUTDIR}"/netboot-$RELEASE
	ln -s netboot-$RELEASE "${OUTDIR}"/netboot
	# let webserver read initramfs
	chmod a+r "${OUTDIR}"/netboot-$RELEASE/*
	tar -C "${DESTDIR}" -chzf ${OUTDIR}/${output_filename} boot/
}

profile_netboot() {
	title="Netboot"
	desc="Kernel, initramfs and modloop for
		netboot.
		"
	arch="aarch64 armhf armv7 ppc64le x86 x86_64 s390x"
	kernel_cmdline="nomodeset"
	case "$ARCH" in
		armhf) kernel_flavors= ;;
		*) kernel_flavors="lts";;
	esac
	modloop_sign=yes
	apks=""
	initfs_features="base network squashfs usb virtio"
	output_format="netboot"
	image_ext="tar.gz"
	case "$ARCH" in
	x86_64) kernel_flavors="$kernel_flavors virt";;
	s390x) initfs_features="$initfs_features dasd_mod qeth";;
	aarch64) kernel_flavors="$kernel_flavors rpi";;
	armhf|armv7) kernel_flavors="$kernel_flavors rpi rpi2";;
	esac
}