diff options
| author | Brian Behlendorf <behlendorf1@llnl.gov> | 2011-06-30 21:45:33 +0000 |
|---|---|---|
| committer | Brian Behlendorf <behlendorf1@llnl.gov> | 2011-06-30 21:45:33 +0000 |
| commit | 2a005961a48e748632e96272915192dab6ce9401 (patch) | |
| tree | 52aaace193c3787086a1877648570c96a3f22095 /etc | |
| parent | 218b8eafbdcb9bc19fc5a252fdd411fde11bca48 (diff) | |
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/init.d/zfs.fedora | 3 | ||||
| -rw-r--r-- | etc/init.d/zfs.gentoo | 4 | ||||
| -rw-r--r-- | etc/init.d/zfs.lsb | 3 | ||||
| -rw-r--r-- | etc/init.d/zfs.lunar | 3 | ||||
| -rw-r--r-- | etc/init.d/zfs.redhat | 3 |
5 files changed, 16 insertions, 0 deletions
diff --git a/etc/init.d/zfs.fedora b/etc/init.d/zfs.fedora index 69df621e30bf..bfed452ad694 100644 --- a/etc/init.d/zfs.fedora +++ b/etc/init.d/zfs.fedora @@ -126,6 +126,9 @@ start() action $"SELinux ZFS policy required: " /bin/false || return 6 fi + # Delay until all required block devices are present. + udevadm settle + # load kernel module infrastructure if ! grep -q zfs /proc/modules ; then action $"Loading kernel ZFS infrastructure: " modprobe zfs || return 5 diff --git a/etc/init.d/zfs.gentoo b/etc/init.d/zfs.gentoo index c9c5d8502c9b..a33d9dc29a2e 100644 --- a/etc/init.d/zfs.gentoo +++ b/etc/init.d/zfs.gentoo @@ -41,6 +41,10 @@ checksystem() { start() { ebegin "Starting ZFS" checksystem || return 1 + + # Delay until all required block devices are present. + udevadm settle + if [ ! -c /dev/zfs ]; then modprobe $ZFS_MODULE rv=$? diff --git a/etc/init.d/zfs.lsb b/etc/init.d/zfs.lsb index a84c1df23920..6c0a743cc08a 100644 --- a/etc/init.d/zfs.lsb +++ b/etc/init.d/zfs.lsb @@ -50,6 +50,9 @@ start() return 4 fi + # Delay until all required block devices are present. + udevadm settle + # Load the zfs module stack /sbin/modprobe zfs diff --git a/etc/init.d/zfs.lunar b/etc/init.d/zfs.lunar index c7aa1edb46e3..4512151c2b66 100644 --- a/etc/init.d/zfs.lunar +++ b/etc/init.d/zfs.lunar @@ -13,6 +13,9 @@ case $1 in start) echo "$1ing ZFS filesystems" + # Delay until all required block devices are present. + udevadm settle + if ! grep "zfs" /proc/modules > /dev/null; then echo "ZFS kernel module not loaded yet; loading..."; if ! modprobe zfs; then diff --git a/etc/init.d/zfs.redhat b/etc/init.d/zfs.redhat index 99ff80e929f2..3f34f2febb14 100644 --- a/etc/init.d/zfs.redhat +++ b/etc/init.d/zfs.redhat @@ -76,6 +76,9 @@ start() action $"SELinux ZFS policy required: " /bin/false || return 6 fi + # Delay until all required block devices are present. + udevadm settle + # load kernel module infrastructure if ! grep -q zfs /proc/modules ; then action $"Loading kernel ZFS infrastructure: " modprobe zfs || return 5 |
