Browse Source

Alpine image: cleanup boot services

master
fnux 2 years ago
parent
commit
5ae0e0cffd
  1. 12
      alpine-uncloud-image.sh

12
alpine-uncloud-image.sh

@ -128,18 +128,20 @@ run_root apk update
# Install RDNSSD for DNS discovery from router advertisement.
run_root apk add ndisc6
run_root rc-update add rdnssd boot
# TODO: fix upstream!
sed -i 's/-H \/etc\/rdnssd\/resolvconf/-H \/etc\/rdnssd\/merge-hook/' /mnt/etc/init.d/rdnssd
# Initialize base services.
for i in ntpd sshd crond; do
run_root rc-update add $i default
for i in devfs dmesg hwdrivers mdev; do
run_root rc-update add $i sysinit
done
for i in hwclock modules hwdrivers acpid mdev sysctl hostname bootmisc networking syslog swap urandom haveged; do
for i in bootmisc hostname hwclock modules sysctl syslog acpid networking urandom haveged; do
run_root rc-update add $i boot
done
for i in ntpd sshd crond; do
run_root rc-update add $i default
done
for i in mount-ro killprocs savecache; do
run_root rc-update add $i shutdown
done

Loading…
Cancel
Save