e4ef9fba72
Remove devmappings service. The original purpose of this service was to ensure that /boot is mounted properly after the initramfs passed control to OpenRC, because the initramfs used to umount /boot before that. With /etc/fstab alone, /boot get not get mounted with subpartitions (which we use on Android devices), if util-linux >= 2.33 was installed (MR 115). Nowadays, we don't umount /boot in the initramfs before passing control to OpenRC anymore (MR 1398). So this service isn't needed anymore, and prevented the previous pmOS_inst_boot <> pmOS_boot patch from working correctly.
26 lines
699 B
Bash
26 lines
699 B
Bash
#!/bin/sh -e
|
|
|
|
# Enable udev OpenRC services and runlevels
|
|
# https://github.com/alpinelinux/aports/blob/master/main/eudev/setup-udev
|
|
setup-udev -n
|
|
|
|
# Enable other OpenRC services
|
|
for service in devfs dmesg; do
|
|
rc-update -q add $service sysinit
|
|
done
|
|
for service in hwclock modules sysctl hostname bootmisc syslog; do
|
|
rc-update -q add $service boot
|
|
done
|
|
for service in dbus haveged sshd swapfile wpa_supplicant chronyd local networkmanager rfkill; do
|
|
rc-update -q add $service default
|
|
done
|
|
for service in mount-ro killprocs savecache; do
|
|
rc-update -q add $service shutdown
|
|
done
|
|
|
|
# Prime swclock with a reasonable date/time on first boot
|
|
mkdir -p /run/openrc
|
|
touch /run/openrc/shutdowntime
|
|
|
|
exit 0
|
|
|