diff options
| author | Jonathan Bauer | 2019-07-24 17:19:07 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2019-07-24 17:19:07 +0200 |
| commit | eb471637d281aa46f038999d36167ecab87875f0 (patch) | |
| tree | ee1db4dc653f13031c0b931c68141eb2e10a0439 /builder | |
| parent | [builder] set proper branch + dracut prio (diff) | |
| download | systemd-init-eb471637d281aa46f038999d36167ecab87875f0.tar.gz systemd-init-eb471637d281aa46f038999d36167ecab87875f0.tar.xz systemd-init-eb471637d281aa46f038999d36167ecab87875f0.zip | |
[slx-network] make sure we can copy network conf
Diffstat (limited to 'builder')
| -rw-r--r-- | builder/modules.d/slx-network/copy-network-config.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/builder/modules.d/slx-network/copy-network-config.sh b/builder/modules.d/slx-network/copy-network-config.sh index 6a8fd835..bccb79ca 100644 --- a/builder/modules.d/slx-network/copy-network-config.sh +++ b/builder/modules.d/slx-network/copy-network-config.sh @@ -1,6 +1,9 @@ #!/bin/bash if [ -n "$NEWROOT" ]; then - cp -f /etc/{hostname,resolv.conf} "${NEWROOT}/etc" + for file in /etc/{hostname,resolv.conf}; do + unlink "${NEWROOT}/${file}" + cp -f "$file" "${NEWROOT}/etc" + done fi true |
