mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-11-04 02:11:39 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
		
			927 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			927 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
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
 | 
						|
		aarch64) kernel_flavors="lts rpi";;
 | 
						|
		armhf) kernel_flavors="rpi rpi2";;
 | 
						|
		armv7) kernel_flavors="lts rpi rpi2";;
 | 
						|
		x86_64) kernel_flavors="lts virt";;
 | 
						|
		*) kernel_flavors="lts";;
 | 
						|
	esac
 | 
						|
	case "$ARCH" in
 | 
						|
		s390x) initfs_features="base network squashfs usb dasd_mod qeth zfcp";;
 | 
						|
		*) initfs_features="base network squashfs usb virtio"
 | 
						|
	esac
 | 
						|
	modloop_sign=yes
 | 
						|
	apks=""
 | 
						|
	output_format="netboot"
 | 
						|
	image_ext="tar.gz"
 | 
						|
}
 | 
						|
 |