Re: F30 Grub2-mkconfig and Grub2-install not Working Correctly?
On 28/5/19 3:17 am, ja wrote: On Mon, 2019-05-27 at 19:10 +0200, Tom H wrote: On 23/5/19 9:07 pm, Tom H wrote: I haven't tried it but setting "GRUB_ENABLE_BLSCFG=false" "/etc/default/grub" _should_ (given the variable's name) allow "grub2-mkconfig" give you an upstream-style "grub.cfg". Thanks Tom, "/etc/default/grub" had a setting of "GRUB_ENABLE_BLSCFG=true" which I changed from "true" to "false" and that enabled the original grub2-mkconfig style menu. So everything is now good. Good. You're welcome. [ But the BLS way is nice too. If you have the time, you should set up a VM and check it out. ] +1 I'd be quite happy to use the BLS methodology if it used the same menu structure as generated by grub2-mkconfig. I've never liked the way grubby produces the menus, and BLS seems to be exactly the same. Other OS menu entries are not required now, as I'm running F30 in a VM under Windows 10 now, with Ubuntu in a 2nd VM instead of tri-booting as I was previously. I actually wanted to run Windows 10 in a VM under Fedora, but Fedora wouldn't install in my hardware raid environment, nor would it install with UEFI active, the live cd hung at a black screen at the point of wanting to display the desktop, and I couldn't get it advance any further. regards, Steve ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Re: F30 Grub2-mkconfig and Grub2-install not Working Correctly?
On Mon, May 27, 2019 at 10:37 PM Chris Murphy wrote: > > On Thu, May 23, 2019 at 5:08 AM Tom H wrote: > > > > I haven't tried it but setting "GRUB_ENABLE_BLSCFG=false" > > "/etc/default/grub" _should_ (given the variable's name) allow > > "grub2-mkconfig" give you an upstream-style "grub.cfg". > > > It is also necessary to > # dnf install grubby-deprecated > > I'm not sure how long that deprecated package will be maintained, so I > don't recommend reverting this change, instead it's better to move > forward, file bugs, and make it better. Explanation: This package is the real grubby. The grubby package in F30 is a wrapper script that has far less functionality and is there just to help people familiar with grubby commands for changing kernel boot behavior like boot parameters and default kernel. But if you revert to the old way, you need the real grubby provided by the grubby-deprecated package, because that's what rewrites the grub.cfg when new kernels are installed and old kernels are removed. -- Chris Murphy ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Re: F30 Grub2-mkconfig and Grub2-install not Working Correctly?
On Thu, May 23, 2019 at 5:08 AM Tom H wrote: > > I haven't tried it but setting "GRUB_ENABLE_BLSCFG=false" > "/etc/default/grub" _should_ (given the variable's name) allow > "grub2-mkconfig" give you an upstream-style "grub.cfg". It is also necessary to # dnf install grubby-deprecated I'm not sure how long that deprecated package will be maintained, so I don't recommend reverting this change, instead it's better to move forward, file bugs, and make it better. -- Chris Murphy ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Re: F30 Grub2-mkconfig and Grub2-install not Working Correctly?
On Mon, 2019-05-27 at 19:10 +0200, Tom H wrote: > > On 23/5/19 9:07 pm, Tom H wrote: > > > I haven't tried it but setting "GRUB_ENABLE_BLSCFG=false" > > > "/etc/default/grub" _should_ (given the variable's name) allow > > > "grub2-mkconfig" give you an upstream-style "grub.cfg". > > > > Thanks Tom, "/etc/default/grub" had a setting of > > "GRUB_ENABLE_BLSCFG=true" which I changed from "true" to "false" > > and that enabled the original grub2-mkconfig style menu. So > > everything is now good. > > Good. You're welcome. > > [ But the BLS way is nice too. If you have the time, you should set up > a VM and check it out. ] > +1 ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Re: F30 Grub2-mkconfig and Grub2-install not Working Correctly?
> On 23/5/19 9:07 pm, Tom H wrote: >> >> I haven't tried it but setting "GRUB_ENABLE_BLSCFG=false" >> "/etc/default/grub" _should_ (given the variable's name) allow >> "grub2-mkconfig" give you an upstream-style "grub.cfg". > > Thanks Tom, "/etc/default/grub" had a setting of > "GRUB_ENABLE_BLSCFG=true" which I changed from "true" to "false" > and that enabled the original grub2-mkconfig style menu. So > everything is now good. Good. You're welcome. [ But the BLS way is nice too. If you have the time, you should set up a VM and check it out. ] ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Re: F30 Grub2-mkconfig and Grub2-install not Working Correctly?
On 23/5/19 9:07 pm, Tom H wrote: On Thu, May 23, 2019 at 11:12 AM Stephen Morris wrote: On 23/5/19 3:49 pm, Tom H wrote: On Thu, May 23, 2019 at 12:55 AM Stephen Morris wrote: I have upgraded from F29 to F30 via the recommenced dnf method. I have Fedora running in a vm under vmware player. Grub2-mkconfig and grub2-install no longer seem to generate the grub menu as they did under F29, the menu seems to be that generated by grubby (it could be that turning off the suppression of sub-menu creation is now being ignored). Looking at /boot/grub2/grub.cfg I cannot see any references in there to kernels, so I have attached the file for reference. Am I missing something or is the functionality now different, /boot/grub2/grub.cfg is where I have always written the grub.cfg via this process? You have insmod blscfg blscfg on lines 128-129. So grub's setting up a generic BLS grub.cfg and you should have your kernel specifications in "/boot/loader/entries/*.conf". Does "/boot/grub2/i386-pc/blscfg.mod" exist on your system? IIRC, the common bugs page recommends "configfile /boot/grub2/grub.cfg.rpmsave" or "configfile //grub2/grub.cfg.rpmsave" (depending on whether "/boot" is a separate filesystem) at the grub prompt to use the previous grub.cfg. Is it documented anywhere how to switch the system back to using, in my case, /boot/grub2/grub.cfg to provide the kernel menu structure via grub2-mkconfig and grub2-install as it was in previous versions of Fedora? I haven't tried it but setting "GRUB_ENABLE_BLSCFG=false" "/etc/default/grub" _should_ (given the variable's name) allow "grub2-mkconfig" give you an upstream-style "grub.cfg". Thanks Tom, "/etc/default/grub" had a setting of "GRUB_ENABLE_BLSCFG=true" which I changed from "true" to "false" and that enabled the original grub2-mkconfig style menu. So everything is now good. regards, Steve ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Re: F30 Grub2-mkconfig and Grub2-install not Working Correctly?
On Thu, May 23, 2019 at 11:12 AM Stephen Morris wrote: > On 23/5/19 3:49 pm, Tom H wrote: >> On Thu, May 23, 2019 at 12:55 AM Stephen Morris >> wrote: >>> >>> I have upgraded from F29 to F30 via the recommenced dnf method. I >>> have Fedora running in a vm under vmware player. Grub2-mkconfig >>> and grub2-install no longer seem to generate the grub menu as >>> they did under F29, the menu seems to be that generated by grubby >>> (it could be that turning off the suppression of sub-menu >>> creation is now being ignored). Looking at /boot/grub2/grub.cfg I >>> cannot see any references in there to kernels, so I have attached >>> the file for reference. Am I missing something or is the >>> functionality now different, /boot/grub2/grub.cfg is where I have >>> always written the grub.cfg via this process? >> >> You have >> >> insmod blscfg >> blscfg >> >> on lines 128-129. >> >> So grub's setting up a generic BLS grub.cfg and you should have >> your kernel specifications in "/boot/loader/entries/*.conf". >> >> Does "/boot/grub2/i386-pc/blscfg.mod" exist on your system? >> >> IIRC, the common bugs page recommends "configfile >> /boot/grub2/grub.cfg.rpmsave" or "configfile >> //grub2/grub.cfg.rpmsave" >> (depending on whether "/boot" is a separate filesystem) at the >> grub prompt to use the previous grub.cfg. > > Is it documented anywhere how to switch the system back to using, > in my case, /boot/grub2/grub.cfg to provide the kernel menu > structure via grub2-mkconfig and grub2-install as it was in > previous versions of Fedora? I haven't tried it but setting "GRUB_ENABLE_BLSCFG=false" "/etc/default/grub" _should_ (given the variable's name) allow "grub2-mkconfig" give you an upstream-style "grub.cfg". ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Re: F30 Grub2-mkconfig and Grub2-install not Working Correctly?
On 23/5/19 3:49 pm, Tom H wrote: On Thu, May 23, 2019 at 12:55 AM Stephen Morris wrote: I have upgraded from F29 to F30 via the recommenced dnf method. I have Fedora running in a vm under vmware player. Grub2-mkconfig and grub2-install no longer seem to generate the grub menu as they did under F29, the menu seems to be that generated by grubby (it could be that turning off the suppression of sub-menu creation is now being ignored). Looking at /boot/grub2/grub.cfg I cannot see any references in there to kernels, so I have attached the file for reference. Am I missing something or is the functionality now different, /boot/grub2/grub.cfg is where I have always written the grub.cfg via this process? You have insmod blscfg blscfg on lines 128-129. So grub's setting up a generic BLS grub.cfg and you should have your kernel specifications in "/boot/loader/entries/*.conf". Does "/boot/grub2/i386-pc/blscfg.mod" exist on your system? IIRC, the common bugs page recommends "configfile /boot/grub2/grub.cfg.rpmsave" or "configfile /grub2/grub.cfg.rpmsave" (depending on whether "/boot" is a separate filesystem) at the grub prompt to use the previous grub.cfg. Is it documented anywhere how to switch the system back to using, in my case, /boot/grub2/grub.cfg to provide the kernel menu structure via grub2-mkconfig and grub2-install as it was in previous versions of Fedora? regards, Steve ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Re: F30 Grub2-mkconfig and Grub2-install not Working Correctly?
On Thu, May 23, 2019 at 12:55 AM Stephen Morris wrote: > > I have upgraded from F29 to F30 via the recommenced dnf method. I > have Fedora running in a vm under vmware player. Grub2-mkconfig and > grub2-install no longer seem to generate the grub menu as they did > under F29, the menu seems to be that generated by grubby (it could > be that turning off the suppression of sub-menu creation is now > being ignored). Looking at /boot/grub2/grub.cfg I cannot see any > references in there to kernels, so I have attached the file for > reference. Am I missing something or is the functionality now > different, /boot/grub2/grub.cfg is where I have always written the > grub.cfg via this process? You have insmod blscfg blscfg on lines 128-129. So grub's setting up a generic BLS grub.cfg and you should have your kernel specifications in "/boot/loader/entries/*.conf". Does "/boot/grub2/i386-pc/blscfg.mod" exist on your system? IIRC, the common bugs page recommends "configfile /boot/grub2/grub.cfg.rpmsave" or "configfile /grub2/grub.cfg.rpmsave" (depending on whether "/boot" is a separate filesystem) at the grub prompt to use the previous grub.cfg. ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
F30 Grub2-mkconfig and Grub2-install not Working Correctly?
Hi, I have upgraded from F29 to F30 via the recommenced dnf method. I have Fedora running in a vm under vmware player. Grub2-mkconfig and grub2-install no longer seem to generate the grub menu as they did under F29, the menu seems to be that generated by grubby (it could be that turning off the suppression of sub-menu creation is now being ignored). Looking at /boot/grub2/grub.cfg I cannot see any references in there to kernels, so I have attached the file for reference. Am I missing something or is the functionality now different, /boot/grub2/grub.cfg is where I have always written the grub.cfg via this process? regards, Steve # # 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 [ -f ${config_directory}/grubenv ]; then load_env -f ${config_directory}/grubenv elif [ -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=999 # Fallback normal timeout code in case the timeout_style feature is # unavailable. else set timeout=999 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/08_fallback_counting ### insmod increment # Check if boot_counter exists and boot_success=0 to activate this behaviour. if [ -n "${boot_counter}" -a "${boot_success}" = "0" ]; then # if countdown has ended, choose to boot rollback deployment, # i.e. default=1 on OSTree-based systems. if [ "${boot_counter}" = "0" -o "${boot_counter}" = "-1" ]; then set default=1 set boot_counter=-1 # otherwise decrement boot_counter else decrement boot_counter fi save_env boot_counter fi ### END /etc/grub.d/08_fallback_counting ### ### BEGIN /etc/grub.d/10_linux ### insmod part_msdos insmod ext2 set root='hd0,msdos2' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 --hint='hd0,msdos2' 387c3f9c-f8c8-4f7d-aef7-284be60de53d else search --no-floppy --fs-uuid --set=root 387c3f9c-f8c8-4f7d-aef7-284be60de53d fi insmod part_msdos insmod ext2 set boot='hd0,msdos2' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=boot --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 --hint='hd0,msdos2' 387c3f9c-f8c8-4f7d-aef7-284be60de53d else search --no-floppy --fs-uuid --set=boot 387c3f9c-f8c8-4f7d-aef7-284be60de53d fi # This section was generated by a script. Do not modify the generated file - all changes # will be lost the next time file is regenerated. Instead edit the BootLoaderSpec files. # # The blscfg command parses the BootLoaderSpec files stored in /boot/loader/entries and # populates the boot menu. Please refer to the Boot Loader Specification documentation # for the files format: https://www.freedesktop.org/wiki/Specifications/BootLoaderSpec/. set default_kernelopts="root=UUID=387c3f9c-f8c8-4f7d-aef7-284be60de53d ro resume=UUID=fc5980cc-655a-4311-a32f-6bb756559e3f rhgb quiet " insmod blscfg blscfg if [ -s $prefix/grubenv ]; then load_env fi ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/10_reset_boot_success ### insmod increment # Hiding the menu is ok if last boot was ok or if this is a first boot attempt to boot the entry if [ "${boot_success}" = "1" -o "${boot_indeterminate}" = "1" ]; then set menu_hide_ok=1 else set menu_hide_ok=0 fi # Reset boot_indeterminate after a successful boot, increment otherwise if [ "${boot_success}" = "1" ] ; then set boot_indeterminate=0 else increment boot_indeterminate fi # Reset boot_success for current boot set boot_success=0 save_env boot_success boot_indeterminate ### END /etc/grub.d/10_reset_boot_success ### ### BEGIN