[Bug 1130669] opensuse grub os-prober deletes subvolume on btrfs disk
http://bugzilla.suse.com/show_bug.cgi?id=1130669 http://bugzilla.suse.com/show_bug.cgi?id=1130669#c14 --- Comment #14 from Alexandre Pereira <pereira.alex@gmail.com> --- Noice :) Seems to be fixed, I updated the package and tried linux-boot-prober command directly and grub-mkconfig. Neither deleted root files :P Now the issue is that grub-mkconfig isn't creating the other linux's grub menu configuration. They are detected, but the grub.cfg section of 30-os-prober is empty. log of grub-mkconfig: tumbleweed:~ # grub2-mkconfig Generating grub configuration file ... # # 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 btrfs_relative_path="y" export btrfs_relative_path if [ -f ${config_directory}/grubenv ]; then load_env -f ${config_directory}/grubenv elif [ -s $prefix/grubenv ]; then load_env fi if [ "${env_block}" ] ; then load_env -f "${env_block}" fi if [ "${next_entry}" ] ; then set default="${next_entry}" set next_entry= save_env next_entry if [ "${env_block}" ] ; then save_env -f "${env_block}" next_entry fi 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 if [ "${env_block}" ] ; then save_env -f "${env_block}" saved_entry fi 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 } if [ x$feature_default_font_path = xy ] ; then font=unicode else insmod part_gpt insmod btrfs if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root 11e10d04-c4ec-4292-9357-1be7a9b8b3ae else search --no-floppy --fs-uuid --set=root 11e10d04-c4ec-4292-9357-1be7a9b8b3ae fi font="/usr/share/grub2/unicode.pf2" fi if loadfont $font ; then echo "Please press t to show the boot menu on this console" set gfxmode=auto load_video insmod gfxterm set locale_dir=$prefix/locale set lang=pt_PT insmod gettext fi terminal_output gfxterm Found theme: /boot/grub2/themes/openSUSE/theme.txt insmod part_gpt insmod ext2 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root 5a612db9-3894-42ba-b598-f4270842077b else search --no-floppy --fs-uuid --set=root 5a612db9-3894-42ba-b598-f4270842077b fi insmod gfxmenu loadfont ($root)/grub2/themes/openSUSE/ascii.pf2 loadfont ($root)/grub2/themes/openSUSE/DejaVuSans10.pf2 loadfont ($root)/grub2/themes/openSUSE/DejaVuSans12.pf2 loadfont ($root)/grub2/themes/openSUSE/DejaVuSans-Bold14.pf2 insmod png set theme=($root)/grub2/themes/openSUSE/theme.txt export theme if [ x${boot_once} = xtrue ]; then set timeout=0 elif [ x$feature_timeout_style = xy ] ; then set timeout_style=countdown set timeout=1 # Fallback hidden-timeout code in case the timeout_style feature is # unavailable. elif sleep --verbose --interruptible 1 ; then set timeout=0 fi if [ -n "$extra_cmdline" ]; then menuentry "Help on bootable snapshot #$snapshot_num" { echo "Select the default entry of the snapshot boot menu." echo "Examine the snapshot, and if it's OK," echo " run 'snapper rollback' and reboot." echo "See 'System Rollback by Booting from Snapshots'" echo " in the manual for more information." echo " ** Hit Any Key to return to boot menu ** " read } fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/00_tuned ### set tuned_params="" set tuned_initrd="" ### END /etc/grub.d/00_tuned ### ### BEGIN /etc/grub.d/10_linux ### Found linux image: /boot/vmlinuz-5.0.7-1-default Found initrd image: /boot/initrd-5.0.7-1-default menuentry 'openSUSE Tumbleweed' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-11e10d04-c4ec-4292-9357-1be7a9b8b3ae' { load_video set gfxpayload=keep insmod gzio insmod part_gpt insmod ext2 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root 5a612db9-3894-42ba-b598-f4270842077b else search --no-floppy --fs-uuid --set=root 5a612db9-3894-42ba-b598-f4270842077b fi echo 'Loading Linux 5.0.7-1-default ...' linuxefi /vmlinuz-5.0.7-1-default root=UUID=11e10d04-c4ec-4292-9357-1be7a9b8b3ae ${extra_cmdline} quiet splash rootflags=subvol=/@opensuse/@root radeon.cik_support=0 radeon.si_support=0 amdgpu.dpm=0 amdgpu.dc=0 amdgpu.si_support=1 amdgpu.cik_support=1 spectre_v2=retpoline,generic echo 'Loading initial ramdisk ...' initrdefi /initrd-5.0.7-1-default } submenu 'Advanced options for openSUSE Tumbleweed' --hotkey=1 $menuentry_id_option 'gnulinux-advanced-11e10d04-c4ec-4292-9357-1be7a9b8b3ae' { menuentry 'openSUSE Tumbleweed, with Linux 5.0.7-1-default' --hotkey=2 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.0.7-1-default-advanced-11e10d04-c4ec-4292-9357-1be7a9b8b3ae' { load_video set gfxpayload=keep insmod gzio insmod part_gpt insmod ext2 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root 5a612db9-3894-42ba-b598-f4270842077b else search --no-floppy --fs-uuid --set=root 5a612db9-3894-42ba-b598-f4270842077b fi echo 'Loading Linux 5.0.7-1-default ...' linuxefi /vmlinuz-5.0.7-1-default root=UUID=11e10d04-c4ec-4292-9357-1be7a9b8b3ae ${extra_cmdline} quiet splash rootflags=subvol=/@opensuse/@root radeon.cik_support=0 radeon.si_support=0 amdgpu.dpm=0 amdgpu.dc=0 amdgpu.si_support=1 amdgpu.cik_support=1 spectre_v2=retpoline,generic echo 'Loading initial ramdisk ...' initrdefi /initrd-5.0.7-1-default } } ### 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_memtest86+ ### ### END /etc/grub.d/20_memtest86+ ### ### BEGIN /etc/grub.d/30_os-prober ### Found openSUSE Tumbleweed on /dev/sda3 Found Manjaro Linux on /dev/sda3 Found Calculate/Linux on /dev/sda3 ### 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. menuentry 'Windows Boot Manager (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-efi-4E72-5A41' { insmod part_gpt insmod fat set root='hd0,gpt1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 4E72-5A41 else search --no-floppy --fs-uuid --set=root 4E72-5A41 fi chainloader /EFI/Microsoft/Boot/bootmgfw.efi } ### 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 ### ### BEGIN /etc/grub.d/80_suse_btrfs_snapshot ### ### END /etc/grub.d/80_suse_btrfs_snapshot ### ### BEGIN /etc/grub.d/90_persistent ### ### END /etc/grub.d/90_persistent ### ### BEGIN /etc/grub.d/95_textmode ### # On EFI systems we can only have graphics *or* serial, so allow the user # to switch between the two hiddenentry 'Text mode' --hotkey 't' { set textmode=true terminal_output console } ### END /etc/grub.d/95_textmode ### done tumbleweed:~ # Thanks :) -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com