summaryrefslogtreecommitdiff
path: root/core/btrfs-progs/initcpio-hook-btrfs
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-07-29 00:03:59 +0000
committerroot <root@rshg054.dnsready.net>2012-07-29 00:03:59 +0000
commitddab05fd84b7fa1d67fcd18b532f0427189d8df1 (patch)
tree3a7175c54dfa9c4ae09f2b009b209134af81ba63 /core/btrfs-progs/initcpio-hook-btrfs
parent4704d1255f08718ed432ba919b4087d0a52ce5a7 (diff)
Sun Jul 29 00:03:59 UTC 2012
Diffstat (limited to 'core/btrfs-progs/initcpio-hook-btrfs')
-rw-r--r--core/btrfs-progs/initcpio-hook-btrfs5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/btrfs-progs/initcpio-hook-btrfs b/core/btrfs-progs/initcpio-hook-btrfs
index 7965d0a8a..913cec528 100644
--- a/core/btrfs-progs/initcpio-hook-btrfs
+++ b/core/btrfs-progs/initcpio-hook-btrfs
@@ -1,7 +1,10 @@
#!/usr/bin/ash
run_hook() {
- btrfs device scan
+ # 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: