diff options
Diffstat (limited to 'builder/modules.d/slx-network')
-rw-r--r-- | builder/modules.d/slx-network/hooks/copy-network-config.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/builder/modules.d/slx-network/hooks/copy-network-config.sh b/builder/modules.d/slx-network/hooks/copy-network-config.sh index eeab0c85..0ccafdbc 100644 --- a/builder/modules.d/slx-network/hooks/copy-network-config.sh +++ b/builder/modules.d/slx-network/hooks/copy-network-config.sh @@ -2,7 +2,9 @@ if [ -n "$NEWROOT" ]; then for file in /etc/{hostname,resolv.conf,hosts}; do - unlink "${NEWROOT}/${file}" + if [ -e "${NEWROOT}/${file}" ]; then + mv "${NEWROOT}/${file}" "${NEWROOT}/${file}.stage4" + fi cp -f "$file" "${NEWROOT}/etc" done fi |