1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/scripts/mkimg.netboot.sh
Natanael Copa 130cbd02c4 scripts/mkimg.netboot.sh: make initramfs readable
we hardened the read permissions in 27b8dc5bd0 (main/mkinitfs: fix
permissions of initramfs) this broke netboot.

ref #11071
2019-12-24 14:25:27 +00:00

33 lines
938 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
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
}