summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-05-04 17:49:01 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2022-05-04 17:49:01 +0200
commit467739866c29788a405f1440114a1b7a30bdb348 (patch)
treea8fb07b1ad3b8b0a157b7d02cf2853196008ab2a
parenteeb208f4eeef8b75a45e24646a07744c711696f1 (diff)
downloadalpine-conf-467739866c29788a405f1440114a1b7a30bdb348.zip
setup-alpine: refresh hostname directly after setup-hostname
hostname service is now a dependency for networking, so restarting hostname would restart network which is not what we want.
-rw-r--r--setup-alpine.in5
1 files changed, 1 insertions, 4 deletions
diff --git a/setup-alpine.in b/setup-alpine.in
index 06eee60..9c853d4 100644
--- a/setup-alpine.in
+++ b/setup-alpine.in
@@ -128,7 +128,7 @@ fi
if [ "$rc_sys" != LXC ]; then
$PREFIX/sbin/setup-keymap ${KEYMAPOPTS}
- $PREFIX/sbin/setup-hostname ${HOSTNAMEOPTS}
+ $PREFIX/sbin/setup-hostname ${HOSTNAMEOPTS} && rc-service hostname --quiet restart
$PREFIX/sbin/setup-devd -C mdev # just to bootstrap
fi
@@ -168,9 +168,6 @@ for svc in $svc_list; do
fi
done
-# enable new hostname
-rc-service hostname --quiet restart
-
# start up the services
openrc boot
openrc default