]> git.pld-linux.org Git - packages/systemd.git/blobdiff - pld-storage-init.sh
- don't hardcode systemctl path in servce files
[packages/systemd.git] / pld-storage-init.sh
index d3487352684b882da3163381a817b7ff1ecc394e..451f1bb32a1e37a2797d54378963e28f85fc28c0 100644 (file)
@@ -3,7 +3,7 @@
 # Read functions
 . /lib/rc-scripts/functions
 
-if [ -x /sbin/multipath ] && ! is_no "$DM_MULTIPATH"; then
+if ! is_no "$DM_MULTIPATH" && [ -x /sbin/multipath ]; then
        modprobe -s dm-mod >/dev/null 2>&1
        modprobe -s dm-multipath >/dev/null 2>&1
        /sbin/multipath -u -v 0
@@ -22,7 +22,7 @@ if [ -x /sbin/dmraid ]; then
                        /sbin/dmraid -ay -i --rm_partitions -p "$dmname"
                        [ -x /sbin/kpartx ] && /sbin/kpartx -u -a -p p "/dev/mapper/$dmname"
                done
-                IFS=$oldIFS
+               IFS=$oldIFS
        fi
 fi
 
@@ -35,3 +35,5 @@ if ! is_no "$LVM2" && [ -x /sbin/lvm ]; then
        run_cmd "Activating LVM volume groups" /sbin/lvm vgchange -a y --sysinit
        /sbin/lvm vgmknodes --ignorelockingfailure
 fi
+
+exit 0
This page took 0.692269 seconds and 4 git commands to generate.