scripts/mkimg.netboot.sh: make initramfs readable
Changes
1 files changed · +2 −0
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| scripts/mkimg.netboot.sh | modified | +2 | −0 | View file |
scripts/mkimg.netboot.sh
View filediff --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/
}