diff options
Diffstat (limited to 'setup-alpine.in')
-rw-r--r-- | setup-alpine.in | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/setup-alpine.in b/setup-alpine.in index 1c41a5c..21a989b 100644 --- a/setup-alpine.in +++ b/setup-alpine.in @@ -179,8 +179,8 @@ for svc in $svc_list; do done # start up the services -openrc boot -openrc default +$MOCK openrc boot +$MOCK openrc default # update /etc/hosts - after we have got dhcp address # Get default fully qualified domain name from *first* domain @@ -188,12 +188,13 @@ openrc default _dn=$(sed -n \ -e '/^domain[[:space:]][[:space:]]*/{s///;s/\([^[:space:]]*\).*$/\1/;h;}' \ -e '/^search[[:space:]][[:space:]]*/{s///;s/\([^[:space:]]*\).*$/\1/;h;}' \ --e '${g;p;}' /etc/resolv.conf 2>/dev/null) +-e '${g;p;}' "$ROOT"/etc/resolv.conf 2>/dev/null) _hn=$(hostname) _hn=${_hn%%.*} -sed -i -e "s/^127\.0\.0\.1.*/127.0.0.1\t${_hn}.${_dn:-$(get_fqdn my.domain)} ${_hn} localhost.localdomain localhost/" /etc/hosts +sed -i -e "s/^127\.0\.0\.1.*/127.0.0.1\t${_hn}.${_dn:-$(get_fqdn my.domain)} ${_hn} localhost.localdomain localhost/" \ + "$ROOT"/etc/hosts 2>/dev/null if [ -z "$quick" ]; then setup-proxy -q ${PROXYOPTS} @@ -240,6 +241,6 @@ if [ "$diskmode" != "sys" ]; then setup-lbu ${LBUOPTS} setup-apkcache ${APKCACHEOPTS} if [ -L /etc/apk/cache ]; then - apk cache sync + $MOCK apk cache sync fi fi |