installer.sh: fix label in grub menu entries for other OSes
This commit is contained in:
parent
0bac1eb055
commit
f9d8281bff
@ -489,7 +489,7 @@ if [ "$INSTALL_BOOTLOADER_DEVICE" ]; then
|
||||
GRUB_OTHER_DEVICES=()
|
||||
for i in ${INSTALL_BOOTLOADER_CHAINLOAD[*]}; do
|
||||
# FIXME: missing conversion from device to grub (hdx,y) form
|
||||
unset ID_FS_UUID
|
||||
unset ID_FS_UUID ID_FS_TYPE ID_FS_LABEL
|
||||
eval `blkid $i -o udev`
|
||||
if [ "$ID_FS_UUID" ]; then
|
||||
if [ "$ID_FS_TYPE" = "ntfs" ]; then
|
||||
@ -500,9 +500,9 @@ if [ "$INSTALL_BOOTLOADER_DEVICE" ]; then
|
||||
ID_FS_LABEL="Win/DOS ($ID_FS_LABEL)" || ID_FS_LABEL="Windows/DOS"
|
||||
else
|
||||
[ "$ID_FS_LABEL" ] &&
|
||||
ID_FS_LABEL="Other OS ($ID_FS_LABEL)" || ID_FS_LABEL="Other OS"
|
||||
ID_FS_LABEL="Other OS ($ID_FS_LABEL)" || ID_FS_LABEL="Other OS"
|
||||
fi
|
||||
[ "$ID_FS_LABEL" ] || ID_FS_LABEL="W"
|
||||
[ "$ID_FS_LABEL" ] || ID_FS_LABEL="Unknown"
|
||||
GRUB_OTHER_DEVICES=(${GRUB_OTHER_DEVICES[*]} /dev/disk/by-uuid/$ID_FS_UUID)
|
||||
GRUB_OTHER_TITLES=(${GRUB_OTHER_TITLES[*]} "\"$ID_FS_LABEL\"")
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user