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

(-)genkernel-3.0.2c/work/genkernel-3.0.2c/genkernel (-11 / +19 lines)
Lines 73-95 Link Here
73
fi
73
fi
74
74
75
# Check /boot is mounted
75
# Check /boot is mounted
76
if ! egrep -q ' /boot ' /proc/mounts
76
if isTrue ${CMD_NOINSTALL}
77
then
77
then
78
	if egrep -q '^[^#].+	/boot	' /etc/fstab
78
	if isTrue ${MOUNTBOOT}
79
	then
79
	then
80
		if isTrue ${MOUNTBOOT}
80
		print_info 2 "Skipping automatic mount of boot"
81
	fi
82
else
83
	if ! egrep -q ' /boot ' /proc/mounts
84
	then
85
		if egrep -q '^[^#].+	/boot	' /etc/fstab
81
		then
86
		then
82
			if ! mount /boot
87
			if isTrue ${MOUNTBOOT}
83
			then
88
			then
84
				print_warning 1 "${BOLD}WARNING${NORMAL}: Failed to mount /boot!"
89
				if ! mount /boot
85
				echo
90
				then
91
					print_warning 1 "${BOLD}WARNING${NORMAL}: Failed to mount /boot!"
92
					echo
93
				else
94
					print_info 1 'mount: /boot mounted successfully!'
95
				fi
86
			else
96
			else
87
				print_info 1 'mount: /boot mounted successfully!'
97
				print_warning 1 "${BOLD}WARNING${NORMAL}: No mounted /boot partition detected!"
98
				print_warning 1 '         Run ``mount /boot`` to mount it!'
99
				echo
88
			fi
100
			fi
89
		else
90
			print_warning 1 "${BOLD}WARNING${NORMAL}: No mounted /boot partition detected!"
91
			print_warning 1 '         Run ``mount /boot`` to mount it!'
92
			echo
93
		fi
101
		fi
94
	fi
102
	fi
95
fi
103
fi

Return to bug 57836