Search
j0ke.net Open Build Service
>
Projects
>
GFS
>
sysconfig
> sysconfig_automount_iscsi_devices.378038.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File sysconfig_automount_iscsi_devices.378038.patch of Package sysconfig (Revision 1)
Currently displaying revision
1
,
show latest
Index: sysconfig-0.50.9/scripts/storage/mount.sh =================================================================== --- sysconfig-0.50.9.orig/scripts/storage/mount.sh +++ sysconfig-0.50.9/scripts/storage/mount.sh @@ -25,14 +25,25 @@ NODES="$DEVNAME $DEVLINKS" +if [ "$DM_UUID" ] ; then + NODES="$NODES /dev/mapper/$DM_TABLE" + if [ ${DM_UUID##LVM-} != "$DM_UUID" ] ; then + vgname=$(echo $DM_TABLE | sed 's.-./.g;s.//.-.g') + NODES="$NODES /dev/$vgname" + fi +fi + # scan /etc/fstab HOTPLUG="no" while read dn mp fs opts dump fsck x; do case $opts in *hotplug*) + d=$(echo $dn | sed 's.UUID=./dev/disk/by-uuid/.g;s.LABEL=./dev/disk/by-label/.g') for n in $NODES; do - if [ "$n" == "$dn" ] ; then + if [ "$n" == "$d" ] ; then HOTPLUG="yes" + DEVNAME=$n + break; fi done ;; Index: sysconfig-0.50.9/config/storage/85-mount-fstab.rules =================================================================== --- sysconfig-0.50.9.orig/config/storage/85-mount-fstab.rules +++ sysconfig-0.50.9/config/storage/85-mount-fstab.rules @@ -1,3 +1,3 @@ # check fstab and possibly mount -SUBSYSTEM=="block", ACTION=="add", KERNEL=="sd*[0-9]|hd*[0-9]", RUN+="mount.sh" +SUBSYSTEM=="block", ACTION=="add", ID_FS_USAGE=="filesystem", KERNEL=="sd*[a-z]|sd*[0-9]|hd[a-z]|hd*[0-9]|dm-*[0-9]|md*[0-9]", RUN+="mount.sh"