PDA

View Full Version : No Fedora options in grub boot after first dnf update



DFresh
20th November 2017, 06:48 PM
Was running FC26 and performed the graphical upgrade to FC27. Had issue with that where it booted to emergency mode and logs showed the message
Failed to switch root: Specified switch root path ‘/sysroot’ does not seem to be an OS tree. os-release file is missing
User comment at https://fedoramagazine.org/upgrading-fedora-26-fedora-27/ said to perform the below steps which got me running again.


mount -o remount,rw /sysroot
rm -f /sysroot/etc/os-release
cp /usr/lib/os-release /sysroot/etc
exit

I performed a dnf update today which included some kernel upgrades along with some FC26 removals. Now when I boot all I get is my Win10 OS in grub. Any help on how I can get the FC27 options restored?

antikythera
20th November 2017, 07:33 PM
one duplicate thread removed, please don't open another about this topic

DFresh
20th November 2017, 07:35 PM
Apologies if there was a duplicate, but my first post never showed up in the forum or under my profile so I thought there was an error and it didn't post.

DFresh
21st November 2017, 08:54 PM
Got the system booted via a live image. Looks like all the partitions and data are still there. Should I just try reinstalling grub2?


[liveuser@localhost-live ~]$ blkid
/dev/sda2: LABEL="Win2TB" UUID="3038DFCD38DF9068" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="fb82701a-572d-4084-b8c3-69f6e3e1040d"
/dev/sdb1: LABEL="System Reserved" UUID="5A8801F88801D403" TYPE="ntfs" PARTUUID="4778ece8-01"
/dev/sdb2: UUID="32920A40920A08D5" TYPE="ntfs" PARTUUID="4778ece8-02"
/dev/sdb3: UUID="c3847125-2128-4ffb-bd97-1f06770493f2" TYPE="ext4" PARTUUID="4778ece8-03"
/dev/sdb5: UUID="VQxiQC-mqcf-Hdys-S2a1-1qFS-tkod-yXQ5b8" TYPE="LVM2_member" PARTUUID="4778ece8-05"
/dev/sdc1: LABEL="4TBSG" UUID="b6d90480-57ed-40c6-973b-d1acbe42f9f2" TYPE="ext4" PARTUUID="c3ac383e-297a-44f2-8663-539e249f05f8"
/dev/mapper/fedora_ryzen7-swap: UUID="16b5176a-f32c-4dd1-8ea1-9388998c0e87" TYPE="swap"
/dev/mapper/fedora_ryzen7-home: UUID="0340b087-db17-4131-9c5b-7084ed1a02ff" TYPE="ext4"
/dev/mapper/fedora_ryzen7-root: UUID="dc924481-b215-4194-89df-c616e9865a8b" TYPE="ext4"
/dev/sdd2: SEC_TYPE="msdos" LABEL="ANACONDA" UUID="FF9B-8FE5" TYPE="vfat" PARTUUID="2563bf1a-02"
/dev/sdd3: UUID="095b3e54-6722-3663-9355-20c7d4e06c4b" LABEL="ANACONDA" TYPE="hfsplus" PARTUUID="2563bf1a-03"
/dev/loop0: TYPE="squashfs"
/dev/loop1: LABEL="Anaconda" UUID="ecca4143-2913-455c-852d-d66c32f4f25e" TYPE="ext4"
/dev/mapper/live-rw: LABEL="Anaconda" UUID="ecca4143-2913-455c-852d-d66c32f4f25e" TYPE="ext4"
/dev/mapper/live-base: LABEL="Anaconda" UUID="ecca4143-2913-455c-852d-d66c32f4f25e" TYPE="ext4"

Output of grub.cfg.

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set pager=1

if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="${saved_entry}"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}

terminal_output console
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/01_users ###
if [ -f ${prefix}/user.cfg ]; then
source ${prefix}/user.cfg
if [ -n "${GRUB2_PASSWORD}" ]; then
set superusers="root"
export superusers
password_pbkdf2 root ${GRUB2_PASSWORD}
fi
fi
### END /etc/grub.d/01_users ###

### BEGIN /etc/grub.d/10_linux ###
menuentry '' (4.13.13-300.fc27.x86_64) ' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.11.10-300.fc26.x86_64-advanced-dc924481-b215-4194-89df-c616e9865a8b' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 --hint='hd0,msdos3' c3847125-2128-4ffb-bd97-1f06770493f2
else
search --no-floppy --fs-uuid --set=root c3847125-2128-4ffb-bd97-1f06770493f2
fi
linux16 /vmlinuz-4.13.13-300.fc27.x86_64 root=/dev/mapper/fedora_ryzen7-root ro rd.lvm.lv=fedora_ryzen7/root rd.lvm.lv=fedora_ryzen7/swap rhgb quiet rd.driver.blacklist=nouveau LANG=en_US.UTF-8
}
menuentry 'Generic (4.13.12-300.fc27.x86_64)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.11.10-300.fc26.x86_64-advanced-dc924481-b215-4194-89df-c616e9865a8b' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 --hint='hd0,msdos3' c3847125-2128-4ffb-bd97-1f06770493f2
else
search --no-floppy --fs-uuid --set=root c3847125-2128-4ffb-bd97-1f06770493f2
fi
linux16 /vmlinuz-4.13.12-300.fc27.x86_64 root=/dev/mapper/fedora_ryzen7-root ro rd.lvm.lv=fedora_ryzen7/root rd.lvm.lv=fedora_ryzen7/swap rhgb quiet rd.driver.blacklist=nouveau LANG=en_US.UTF-8
initrd16 /initramfs-4.13.12-300.fc27.x86_64.img
}
menuentry 'Fedora (4.13.12-200.fc26.x86_64) 26 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.11.10-300.fc26.x86_64-advanced-dc924481-b215-4194-89df-c616e9865a8b' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 --hint='hd0,msdos3' c3847125-2128-4ffb-bd97-1f06770493f2
else
search --no-floppy --fs-uuid --set=root c3847125-2128-4ffb-bd97-1f06770493f2
fi
linux16 /vmlinuz-4.13.12-200.fc26.x86_64 root=/dev/mapper/fedora_ryzen7-root ro rd.lvm.lv=fedora_ryzen7/root rd.lvm.lv=fedora_ryzen7/swap rhgb quiet rd.driver.blacklist=nouveau LANG=en_US.UTF-8
initrd16 /initramfs-4.13.12-200.fc26.x86_64.img
}
menuentry 'Fedora (0-rescue-4f1a27d2093646e88210d431b301b0cd) 26 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-4f1a27d2093646e88210d431b301b0cd-advanced-dc924481-b215-4194-89df-c616e9865a8b' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 --hint='hd0,msdos3' c3847125-2128-4ffb-bd97-1f06770493f2
else
search --no-floppy --fs-uuid --set=root c3847125-2128-4ffb-bd97-1f06770493f2
fi
linux16 /vmlinuz-0-rescue-4f1a27d2093646e88210d431b301b0cd root=/dev/mapper/fedora_ryzen7-root ro rd.lvm.lv=fedora_ryzen7/root rd.lvm.lv=fedora_ryzen7/swap rhgb quiet rd.driver.blacklist=nouveau
initrd16 /initramfs-0-rescue-4f1a27d2093646e88210d431b301b0cd.img
}
if [ "x$default" = 'Fedora (4.11.10-300.fc26.x86_64) 26 (Workstation Edition)' ]; then default='Advanced options for Fedora>Fedora (4.11.10-300.fc26.x86_64) 26 (Workstation Edition)'; fi;
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_ppc_terminfo ###
### END /etc/grub.d/20_ppc_terminfo ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 10 (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-5A8801F88801D403' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 5A8801F88801D403
else
search --no-floppy --fs-uuid --set=root 5A8801F88801D403
fi
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###