summaryrefslogtreecommitdiff
path: root/export-image
diff options
context:
space:
mode:
Diffstat (limited to 'export-image')
-rwxr-xr-xexport-image/00-allow-rerun/00-run.sh4
-rwxr-xr-xexport-image/04-finalise/01-run.sh6
2 files changed, 10 insertions, 0 deletions
diff --git a/export-image/00-allow-rerun/00-run.sh b/export-image/00-allow-rerun/00-run.sh
index f7c5b4e..dd67f4c 100755
--- a/export-image/00-allow-rerun/00-run.sh
+++ b/export-image/00-allow-rerun/00-run.sh
@@ -3,3 +3,7 @@
if [ ! -x "${ROOTFS_DIR}/usr/bin/qemu-arm-static" ]; then
cp /usr/bin/qemu-arm-static "${ROOTFS_DIR}/usr/bin/"
fi
+
+if [ -e "${ROOTFS_DIR}/etc/ld.so.preload" ]; then
+ mv "${ROOTFS_DIR}/etc/ld.so.preload" "${ROOTFS_DIR}/etc/ld.so.preload.disabled"
+fi
diff --git a/export-image/04-finalise/01-run.sh b/export-image/04-finalise/01-run.sh
index 093291d..9215dec 100755
--- a/export-image/04-finalise/01-run.sh
+++ b/export-image/04-finalise/01-run.sh
@@ -15,6 +15,12 @@ fi
rm -f "${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache"
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/network/interfaces.dpkg-old"
rm -f "${ROOTFS_DIR}/etc/apt/sources.list~"