Alpine image: cleanup boot services
This commit is contained in:
parent
91f114456a
commit
5ae0e0cffd
1 changed files with 7 additions and 5 deletions
|
@ -128,18 +128,20 @@ run_root apk update
|
||||||
# Install RDNSSD for DNS discovery from router advertisement.
|
# Install RDNSSD for DNS discovery from router advertisement.
|
||||||
run_root apk add ndisc6
|
run_root apk add ndisc6
|
||||||
run_root rc-update add rdnssd boot
|
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.
|
# Initialize base services.
|
||||||
for i in ntpd sshd crond; do
|
for i in devfs dmesg hwdrivers mdev; do
|
||||||
run_root rc-update add $i default
|
run_root rc-update add $i sysinit
|
||||||
done
|
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
|
run_root rc-update add $i boot
|
||||||
done
|
done
|
||||||
|
|
||||||
|
for i in ntpd sshd crond; do
|
||||||
|
run_root rc-update add $i default
|
||||||
|
done
|
||||||
|
|
||||||
for i in mount-ro killprocs savecache; do
|
for i in mount-ro killprocs savecache; do
|
||||||
run_root rc-update add $i shutdown
|
run_root rc-update add $i shutdown
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue