From 97d5afb4fc147db46d64faa3461db191b653eb4c Mon Sep 17 00:00:00 2001 From: macmpi Date: Wed, 23 Nov 2022 11:41:26 +0100 Subject: setup-alpine: do not restart services under ssh openrc may stop wpa-supplicant & sshd, which may kill setup in headless environment --- setup-alpine.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup-alpine.in b/setup-alpine.in index aea9d3f..2da6312 100644 --- a/setup-alpine.in +++ b/setup-alpine.in @@ -197,8 +197,8 @@ for svc in $svc_list; do done # start up the services -$MOCK openrc boot -$MOCK openrc default +$MOCK openrc ${SSH_CONNECTION:+-n} boot +$MOCK openrc ${SSH_CONNECTION:+-n} default # update /etc/hosts - after we have got dhcp address # Get default fully qualified domain name from *first* domain -- cgit v1.2.3