summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-06-23 00:39:00 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-06-23 00:39:00 -0500
commit6a5af0c939b2f60a739b1a9a7e2514036b1d94fd (patch)
tree796c93a88d37c12f9e9529fa955c22913489c063
parent55b3c85949c8a3bd7486a8a1b0a63b7bfbfde973 (diff)
downloadhorizon-6a5af0c939b2f60a739b1a9a7e2514036b1d94fd.tar.gz
horizon-6a5af0c939b2f60a739b1a9a7e2514036b1d94fd.tar.bz2
horizon-6a5af0c939b2f60a739b1a9a7e2514036b1d94fd.tar.xz
horizon-6a5af0c939b2f60a739b1a9a7e2514036b1d94fd.zip
image: ensure init is executable in initrd
-rw-r--r--image/backends/initrd.sh.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/image/backends/initrd.sh.cpp b/image/backends/initrd.sh.cpp
index 6608481..0f4fee7 100644
--- a/image/backends/initrd.sh.cpp
+++ b/image/backends/initrd.sh.cpp
@@ -70,6 +70,7 @@ const char *initrd = "#!/bin/sh -e\n\
\n\
if [ -n ${CDINIT_DIR} ]; then\n\
cp ${CDINIT_DIR}/cdinit-$ARCH ${INITRD_DIR}/init\n\
+ chmod 755 ${INITRD_DIR}/init\n\
else\n\
log error 'No cdinit binary found, and compilation is not yet supported'\n\
exit 2\n\