Rework
This commit is contained in:
13
export-image/00-allow-rerun/00-run.sh
Executable file
13
export-image/00-allow-rerun/00-run.sh
Executable file
@@ -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
|
2
export-image/00-allow-rerun/files/policy-rc.d
Normal file
2
export-image/00-allow-rerun/files/policy-rc.d
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exit 101
|
Reference in New Issue
Block a user