stage2/00-copies-and-fills/02-run.sh: Fix re-runs of script

Check that file exist before move.
This commit is contained in:
Xerxes Ranby 2019-07-01 16:46:34 +00:00
parent 3db1168fbd
commit f891d1084f

View File

@ -1,3 +1,6 @@
#!/bin/bash -e
if [ -f "${ROOTFS_DIR}/etc/ld.so.preload" ]; then
mv "${ROOTFS_DIR}/etc/ld.so.preload" "${ROOTFS_DIR}/etc/ld.so.preload.disabled"
fi