diff options
author | Jacen <[email protected]> | 2017-09-07 23:47:35 +0200 |
---|---|---|
committer | XECDesign <[email protected]> | 2017-09-14 10:12:30 +0100 |
commit | 26fcf59f3f36973f7ad6163867c235291343aa64 (patch) | |
tree | 5564fa96fe016220111cbc5795cb35a2972f1088 /export-image/04-finalise | |
parent | 496e41575eeb9fa13f394ffb407b7bc1d00b21c2 (diff) |
[adding] qemu emulation layout to test images with qemu
Diffstat (limited to 'export-image/04-finalise')
-rwxr-xr-x | export-image/04-finalise/01-run.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/export-image/04-finalise/01-run.sh b/export-image/04-finalise/01-run.sh index fefed50..80fd954 100755 --- a/export-image/04-finalise/01-run.sh +++ b/export-image/04-finalise/01-run.sh @@ -15,8 +15,10 @@ 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 [ -e ${ROOTFS_DIR}/etc/ld.so.preload.disabled ]; then - mv ${ROOTFS_DIR}/etc/ld.so.preload.disabled ${ROOTFS_DIR}/etc/ld.so.preload +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~ |