Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 71032 | Differences between
and this patch

Collapse All | Expand All

(-)init.d/checkfs (-12 / +16 lines)
Lines 162-182 Link Here
162
	# This should be done *before* checking local
162
	# This should be done *before* checking local
163
	# volumes, or they never get checked.
163
	# volumes, or they never get checked.
164
164
165
	# NOTE: Add needed modules for LVM or RAID, etc
165
	if [ -z "${CDBOOT}" -a -x /sbin/vgscan ]
166
	#       to /etc/modules.autoload if needed
167
168
	if [ -z "${CDBOOT}" -a -x /sbin/vgscan ] && \
169
	   [ -d /proc/lvm -o "$(grep device-mapper /proc/misc 2>/dev/null)" ]
170
	then
166
	then
171
		ebegin "Setting up the Logical Volume Manager"
167
		if [ -e /proc/modules ] && \
172
		#still echo stderr for debugging
168
		   ! grep -qs 'device-mapper' /proc/{devices,misc} ; then
173
		/sbin/vgscan >/dev/null
169
			modprobe dm-mod &>/dev/null
174
		if [ "$?" -eq 0 ] && [ -x /sbin/vgchange ] && \
170
		fi
175
		   [ -f /etc/lvmtab -o -d /etc/lvm ]
171
172
		if [ -d /proc/lvm ] || grep -qs 'device-mapper' /proc/{devices,misc}
176
		then
173
		then
177
			/sbin/vgchange -a y >/dev/null
174
			ebegin "Setting up the Logical Volume Manager"
175
			#still echo stderr for debugging
176
			/sbin/vgscan >/dev/null
177
			if [ "$?" -eq 0 ] && [ -x /sbin/vgchange ] && \
178
			   [ -f /etc/lvmtab -o -d /etc/lvm ]
179
			then
180
				/sbin/vgchange -a y >/dev/null
181
			fi
182
			eend $? "Failed to setup the LVM"
178
		fi
183
		fi
179
		eend $? "Failed to setup the LVM"
180
	fi
184
	fi
181
185
182
	dm-crypt-start
186
	dm-crypt-start

Return to bug 71032