diff options
| author | Serge Schneider <serge@raspberrypi.org> | 2019-06-07 17:30:05 +0100 |
|---|---|---|
| committer | Serge Schneider <serge@raspberrypi.org> | 2019-06-07 19:51:08 +0100 |
| commit | 0cdec860269dc3e10aad086a27191a1911d1579e (patch) | |
| tree | 86be9e6579cb322a3b00bee1b45d7a1fe1c7538b /export-image | |
| parent | afeea46a39af3a03bfe9b9a6c68d7ff379ecea01 (diff) | |
Disable ld.so.preload while building
Diffstat (limited to 'export-image')
| -rwxr-xr-x | export-image/00-allow-rerun/00-run.sh | 4 | ||||
| -rwxr-xr-x | export-image/04-finalise/01-run.sh | 6 |
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~" |
