X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=etc%2Finit.d%2Fzfs.redhat;h=d3475f09d28baad56c294fcb35600df815e25b29;hb=3af2ce4d6883ab96814fb1d0bc01368bb06c5343;hp=99ff80e929f241dbcc51ad45507c60e03f35289c;hpb=712f8bd87b2d3799107e102652875996fa59647b;p=zfs.git diff --git a/etc/init.d/zfs.redhat b/etc/init.d/zfs.redhat index 99ff80e..d3475f0 100644 --- a/etc/init.d/zfs.redhat +++ b/etc/init.d/zfs.redhat @@ -76,6 +76,13 @@ start() action $"SELinux ZFS policy required: " /bin/false || return 6 fi + # Delay until all required block devices are present. + if [ -x /sbin/udevadm ]; then + /sbin/udevadm settle + elif [ -x /sbin/udevsettle ]; then + /sbin/udevsettle + fi + # load kernel module infrastructure if ! grep -q zfs /proc/modules ; then action $"Loading kernel ZFS infrastructure: " modprobe zfs || return 5 @@ -84,6 +91,8 @@ start() action $"Mounting automounted ZFS filesystems: " $ZFS mount -a || return 152 + action $"Exporting ZFS filesystems: " $ZFS share -a || return 153 + # Read fstab, try to mount zvols ignoring error read_fstab "^/dev/(zd|zvol)" template=$"Mounting volume %s registered in fstab: "