summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2019-07-25 11:00:29 +0200
committerJonathan Bauer2019-07-25 11:00:29 +0200
commitef963faa4238c089dda7dea16cbc55efcadd29e2 (patch)
tree42cbd73b9ea6e2ab04540a6e7a7ecc92a0077c10
parent[slx-network] fix config dumpage (diff)
downloadsystemd-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.sh2
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