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 |