aports/main/btrfs-progs/btrfs-scan.initd
Neale Pickett 7a45a30ad8 main/btrfs-progs: fix device scanning
Ensure the btrfs module is loaded before scanning for btrfs devices. This
allows the btrfs program to communicate its findings to the kernel via
/dev/btrfs-control (added by the module).

Fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/9539
2024-02-05 19:41:03 +00:00

12 lines
134 B
Bash

#!/sbin/openrc-run
name="btrfs-scan"
depend() {
before localmount
}
start() {
/sbin/modprobe btrfs
/sbin/btrfs device scan
}