projects/aports·commit e3b5a92a

scripts/mkimg.netboot.sh: make initramfs readable

e3b5a92a · Natanael Copa <[email protected]> · 2019-12-24 14:23:01 +00:00

we hardened the read permissions in 27b8dc5bd034 (main/mkinitfs: fix
permissions of initramfs) this broke netboot.

fixes #11071

(cherry picked from commit 130cbd02c4a029280cd8933353fd8e6c8915c9f5)
Commit
e3b5a92a51dac93476569f483cdc90538650df70
Parents
bbfa6304

Changes

1 files changed · +2 −0

FileStatusAddDelContent
scripts/mkimg.netboot.shmodified+2−0View file

scripts/mkimg.netboot.sh

View file
diff --git a/scripts/mkimg.netboot.sh b/scripts/mkimg.netboot.sh
index d0ad723..8520fc6 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/
}