From c430f618d048cec735224fd4166444f0d858f62a Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Tue, 20 Feb 2018 09:59:45 +0000 Subject: Remove ld.so.preload and policy-rc.d changes --- export-image/00-allow-rerun/00-run.sh | 8 -------- export-image/00-allow-rerun/files/policy-rc.d | 3 --- export-image/04-finalise/01-run.sh | 6 ------ 3 files changed, 17 deletions(-) delete mode 100644 export-image/00-allow-rerun/files/policy-rc.d (limited to 'export-image') diff --git a/export-image/00-allow-rerun/00-run.sh b/export-image/00-allow-rerun/00-run.sh index 1355b2e..b77c30e 100755 --- a/export-image/00-allow-rerun/00-run.sh +++ b/export-image/00-allow-rerun/00-run.sh @@ -1,13 +1,5 @@ #!/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 deleted file mode 100644 index 1924710..0000000 --- a/export-image/00-allow-rerun/files/policy-rc.d +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -exit 101 diff --git a/export-image/04-finalise/01-run.sh b/export-image/04-finalise/01-run.sh index f04c7ee..b093f01 100755 --- a/export-image/04-finalise/01-run.sh +++ b/export-image/04-finalise/01-run.sh @@ -13,13 +13,7 @@ if [ -d ${ROOTFS_DIR}/home/pi/.config ]; then fi rm -f ${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache -rm -f ${ROOTFS_DIR}/usr/sbin/policy-rc.d rm -f ${ROOTFS_DIR}/usr/bin/qemu-arm-static -if [ "${USE_QEMU}" != "1" ]; then - if [ -e ${ROOTFS_DIR}/etc/ld.so.preload.disabled ]; then - mv ${ROOTFS_DIR}/etc/ld.so.preload.disabled ${ROOTFS_DIR}/etc/ld.so.preload - fi -fi rm -f ${ROOTFS_DIR}/etc/apt/sources.list~ rm -f ${ROOTFS_DIR}/etc/apt/trusted.gpg~ -- cgit v1.2.3