From 6a5af0c939b2f60a739b1a9a7e2514036b1d94fd Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 23 Jun 2020 00:39:00 -0500 Subject: image: ensure init is executable in initrd --- image/backends/initrd.sh.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'image') 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\ -- cgit v1.2.3-70-g09d2