diff options
| author | Jonathan Bauer | 2019-07-25 11:00:29 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2019-07-25 11:00:29 +0200 |
| commit | ef963faa4238c089dda7dea16cbc55efcadd29e2 (patch) | |
| tree | 42cbd73b9ea6e2ab04540a6e7a7ecc92a0077c10 | |
| parent | [slx-network] fix config dumpage (diff) | |
| download | systemd-init-ef963faa4238c089dda7dea16cbc55efcadd29e2.tar.gz systemd-init-ef963faa4238c089dda7dea16cbc55efcadd29e2.tar.xz systemd-init-ef963faa4238c089dda7dea16cbc55efcadd29e2.zip | |
[slx-network] also copy /etc/hosts over
TODO: would just need to adjust localhost entries. Currently we lose the
stage4's /etc/hosts which might be problematic
| -rw-r--r-- | builder/modules.d/slx-network/copy-network-config.sh | 2 |
1 files changed, 1 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 bccb79ca..eeab0c85 100644 --- a/builder/modules.d/slx-network/copy-network-config.sh +++ b/builder/modules.d/slx-network/copy-network-config.sh @@ -1,7 +1,7 @@ #!/bin/bash if [ -n "$NEWROOT" ]; then - for file in /etc/{hostname,resolv.conf}; do + for file in /etc/{hostname,resolv.conf,hosts}; do unlink "${NEWROOT}/${file}" cp -f "$file" "${NEWROOT}/etc" done |
