summaryrefslogtreecommitdiff
path: root/export-image/00-allow-rerun
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.org>2016-05-05 19:43:33 +0100
committerSerge Schneider <serge@raspberrypi.org>2016-05-05 21:21:42 +0100
commitbdca3e3b48e72df796ec7b1a24a26c08b2dcfa67 (patch)
tree8d64818c7e99350b5c306144d3a0726626745619 /export-image/00-allow-rerun
parent19a1b94d2a34b795e570f25708fa0ae45bcbbf38 (diff)
Rework
Diffstat (limited to 'export-image/00-allow-rerun')
-rwxr-xr-xexport-image/00-allow-rerun/00-run.sh13
-rw-r--r--export-image/00-allow-rerun/files/policy-rc.d2
2 files changed, 15 insertions, 0 deletions
diff --git a/export-image/00-allow-rerun/00-run.sh b/export-image/00-allow-rerun/00-run.sh
new file mode 100755
index 0000000..1355b2e
--- /dev/null
+++ b/export-image/00-allow-rerun/00-run.sh
@@ -0,0 +1,13 @@
+#!/bin/bash -e
+
+if [ -e ${ROOTFS_DIR}/etc/ld.so.preload ]; then
+ mv ${ROOTFS_DIR}/etc/ld.so.preload ${ROOTFS_DIR}/etc/ld.so.preload.disabled
+fi
+
+if [ ! -e ${ROOTFS_DIR}/usr/sbin/policy-rc.d ]; then
+ install -m 744 files/policy-rc.d ${ROOTFS_DIR}/usr/sbin/
+fi
+
+if [ ! -x ${ROOTFS_DIR}/usr/bin/qemu-arm-static ]; then
+ cp /usr/bin/qemu-arm-static ${ROOTFS_DIR}/usr/bin/
+fi
diff --git a/export-image/00-allow-rerun/files/policy-rc.d b/export-image/00-allow-rerun/files/policy-rc.d
new file mode 100644
index 0000000..0b1556d
--- /dev/null
+++ b/export-image/00-allow-rerun/files/policy-rc.d
@@ -0,0 +1,2 @@
+#!/bin/sh
+exit 101