a3f7bf3e1a
Alpine does not use setup-udev anymore and provides the same
functionality through setup-devd. The setup-udev script was deleted [1]
but postmarketos-base still used it and caused pmbootstrap to fail when
building a device image. Use the rc-service setup directly from
setup-devd.
[1] b56c4c2b9d
28 lines
665 B
Bash
28 lines
665 B
Bash
#!/bin/sh -e
|
|
|
|
# Enable eudev service
|
|
rc-update add udev sysinit
|
|
rc-update add udev-trigger sysinit
|
|
rc-update add udev-settle sysinit
|
|
rc-update add udev-postmount default
|
|
|
|
# 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 sshd swapfile local; 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
|
|
|