summaryrefslogtreecommitdiff
path: root/testing/btrfs-progs/initcpio-hook-btrfs
blob: 913cec528cb2b130a0584e428ae37d77242d9cb2 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/ash

run_hook() {
    # if udevd is running, this is done async by add/change events
    if [ "$udevd_running" -ne 1 ]; then
        btrfs device scan
    fi
}

# vim: set ft=sh ts=4 sw=4 et: