aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-12-24 14:23:01 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-12-24 15:26:05 +0100
commite3b5a92a51dac93476569f483cdc90538650df70 (patch)
tree446930b289b8be4bc7915eedf467b514c73735a3
parentbbfa63040d53557759616f7ccf08febc1f887122 (diff)
downloadaports-3.11.1.tar.gz
aports-3.11.1.tar.bz2
aports-3.11.1.tar.xz
scripts/mkimg.netboot.sh: make initramfs readablev3.11.1
we hardened the read permissions in 27b8dc5bd034 (main/mkinitfs: fix permissions of initramfs) this broke netboot. fixes #11071 (cherry picked from commit 130cbd02c4a029280cd8933353fd8e6c8915c9f5)
-rwxr-xr-xscripts/mkimg.netboot.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/mkimg.netboot.sh b/scripts/mkimg.netboot.sh
index d0ad723fd2..8520fc60dd 100755
--- a/scripts/mkimg.netboot.sh
+++ b/scripts/mkimg.netboot.sh
@@ -2,6 +2,8 @@ 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/
}