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

Collapse All | Expand All

(-)a/defaults/initrd.scripts (-19 lines)
Lines 178-201 findmediamount() { Link Here
178
			# Check for a block device to mount
178
			# Check for a block device to mount
179
			if [ -b "${x}" ]
179
			if [ -b "${x}" ]
180
			then
180
			then
181
				skip=0
182
				bsn=$(basename "${x}")
183
				#
184
				# If disk and it has at least one partition, skip.
185
				# We use /sys/block/${bsn}/${bsn}[0-9]* to make sure that we
186
				# don't skip device mapper devices. Even the craziest scenario
187
				# deserves a fair chance.
188
				#
189
				# shellcheck disable=SC2045
190
				for part in $(ls /sys/block/${bsn}/${bsn}*[0-9]* 2>/dev/null)
191
				do
192
					skip=1
193
					break;
194
				done
195
				if [ ${skip} -eq 1 ]
196
				then
197
					continue
198
				fi
199
				good_msg "Attempting to mount media: ${x}" ${CRYPT_SILENT}
181
				good_msg "Attempting to mount media: ${x}" ${CRYPT_SILENT}
200
182
201
				CDROOT_TYPE=$(determine_fs "${x}" "${CDROOT_TYPE}")
183
				CDROOT_TYPE=$(determine_fs "${x}" "${CDROOT_TYPE}")
202
- 

Return to bug 796272