mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 14:56:46 +02:00
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
12 lines
134 B
Bash
12 lines
134 B
Bash
#!/sbin/openrc-run
|
|
|
|
name="btrfs-scan"
|
|
|
|
depend() {
|
|
before localmount
|
|
}
|
|
|
|
start() {
|
|
/sbin/modprobe btrfs
|
|
/sbin/btrfs device scan
|
|
}
|