Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 437714
Collapse All | Expand All

(-)lvm.rc-2.02.95-r2 (-2 / +2 lines)
Lines 73-79 Link Here
73
	einfo "Shutting down the Logical Volume Manager"
73
	einfo "Shutting down the Logical Volume Manager"
74
	
74
	
75
75
76
        VGS=$($lvm_path vgs --config "${config}" -o vg_name --noheadings --nosuffix 2> /dev/null)
76
        VGS=$($lvm_path vgs --config "${config}" -o vg_name --noheadings --nosuffix --rows 2> /dev/null)
77
77
78
        if [ "$VGS" ]
78
        if [ "$VGS" ]
79
        then
79
        then
Lines 83-90 Link Here
83
			# Extra PV find pass because some devices might not have been available until very recently
83
			# Extra PV find pass because some devices might not have been available until very recently
84
			lvm_commands="${lvm_commands}lvchange --sysinit -a ln ${VGS}\n"
84
			lvm_commands="${lvm_commands}lvchange --sysinit -a ln ${VGS}\n"
85
			# Now make the nodes
85
			# Now make the nodes
86
			lvm_commands="${lvm_commands}vgchange --sysinit -a ln\n"
86
			lvm_commands="${lvm_commands}vgchange --sysinit -a ln  ${VGS}\n"
87
			# Order of this is important, have to work around dash and LVM readline
87
			# Order of this is important, have to work around dash and LVM readline
88
			printf "%b\n" "${lvm_commands}" | $lvm_path /proc/self/fd/0 --config "${config}" >/dev/null
88
			printf "%b\n" "${lvm_commands}" | $lvm_path /proc/self/fd/0 --config "${config}" >/dev/null
89
			eend $? "Failed"
89
			eend $? "Failed"
90
        fi
90
        fi

Return to bug 437714