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

(-)gen_bootloader.sh (-1 / +1 lines)
Lines 17-23 Link Here
17
17
18
	# Extract block device information from /etc/fstab
18
	# Extract block device information from /etc/fstab
19
	local GRUB_ROOTFS=$(awk '/[[:space:]]\/[[:space:]]/ { print $1 }' /etc/fstab)
19
	local GRUB_ROOTFS=$(awk '/[[:space:]]\/[[:space:]]/ { print $1 }' /etc/fstab)
20
	local GRUB_BOOTFS=$(awk '/[[:space:]]\/boot[[:space:]]/ { print $1 }' /etc/fstab)
20
	local GRUB_BOOTFS=$(awk '/^[^#].+[[:space:]]\/boot[[:space:]]/ { print $1 }' /etc/fstab)
21
21
22
	# If /boot is not defined in /etc/fstab, it must be the same as /
22
	# If /boot is not defined in /etc/fstab, it must be the same as /
23
	[ "x$GRUB_BOOTFS" == 'x' ] && GRUB_BOOTFS=$GRUB_ROOTFS
23
	[ "x$GRUB_BOOTFS" == 'x' ] && GRUB_BOOTFS=$GRUB_ROOTFS

Return to bug 71175