diff --git a/stage2/00-copies-and-fills/02-run.sh b/stage2/00-copies-and-fills/02-run.sh index a7ab5ec60d..366ac248b2 100755 --- a/stage2/00-copies-and-fills/02-run.sh +++ b/stage2/00-copies-and-fills/02-run.sh @@ -1,3 +1,6 @@ #!/bin/bash -e -mv "${ROOTFS_DIR}/etc/ld.so.preload" "${ROOTFS_DIR}/etc/ld.so.preload.disabled" +if [ -f "${ROOTFS_DIR}/etc/ld.so.preload" ]; then + mv "${ROOTFS_DIR}/etc/ld.so.preload" "${ROOTFS_DIR}/etc/ld.so.preload.disabled" +fi +