From ef963faa4238c089dda7dea16cbc55efcadd29e2 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 25 Jul 2019 11:00:29 +0200 Subject: [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 --- builder/modules.d/slx-network/copy-network-config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-55-g7522