[Bug 1058996] New: Grub losts other OS menu entries after update
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1058996 Bug ID: 1058996 Summary: Grub losts other OS menu entries after update Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: All OS: openSUSE 42.3 Status: NEW Severity: Normal Priority: P5 - None Component: Bootloader Assignee: jsrain@suse.com Reporter: mmrmartin@gmail.com QA Contact: jsrain@suse.com Found By: --- Blocker: --- Created attachment 740825 --> http://bugzilla.opensuse.org/attachment.cgi?id=740825&action=edit zypper history When a ?kernel? update is installed, then grub config contains only updated Linux kernel menu entries and doesn't contain other operating systems (like Windows). I have to run `update-bootloader` to show Windows menu entry again after each update. $ os-prober /dev/sda1:Windows 10:Windows:chain $ awk -F\' '/menuentry / {print $2}' /boot/grub2/grub.cfg snapper rollback openSUSE Tumbleweed openSUSE Tumbleweed, with Linux 4.13.1-1-default openSUSE Tumbleweed, with Linux 4.13.1-1-default (recovery mode) openSUSE Tumbleweed, with Linux 4.12.9-1-default openSUSE Tumbleweed, with Linux 4.12.9-1-default (recovery mode) openSUSE Tumbleweed, with Linux 4.12.8-1-default openSUSE Tumbleweed, with Linux 4.12.8-1-default (recovery mode) $ tail /var/log/zypp/history ... # 2017-09-16 20:09:52 Output of coreutils-8.28-1.1.x86_64.rpm %posttrans script: ... # dracut: *** Stripping files done *** # dracut: *** Generating early-microcode cpio image *** # dracut: *** Constructing GenuineIntel.bin **** # dracut: *** Store current command line parameters *** # dracut: Stored kernel commandline: # dracut: resume=UUID=40a8ae32-0e87-481e-a6de-daf4ade846c5 # dracut: root=UUID=0a0237c4-32ba-4f2f-9e56-e1fea26f51a8 rootfstype=btrfs rootflags=rw,relatime,ssd,space_cache,subvolid=259,subvol=/@/.snapshots/1/snapshot,subvol=@/.snapshots/1/snapshot # dracut: *** Creating image file '/boot/initrd-4.13.1-1-default' *** # dracut: *** Creating initramfs image file '/boot/initrd-4.13.1-1-default' done *** # Did not refresh the bootloader. You might need to refresh it manually. $ grub2-install --version grub2-install (GRUB2) 2.02 After running `update-bootloader` everything is fine ;-) So it looks like some update scripts don't contain `update-bootloader` call. $ awk -F\' '/menuentry / {print $2}' /boot/grub2/grub.cfg snapper rollback openSUSE Tumbleweed openSUSE Tumbleweed, with Linux 4.13.1-1-default openSUSE Tumbleweed, with Linux 4.13.1-1-default (recovery mode) openSUSE Tumbleweed, with Linux 4.12.9-1-default openSUSE Tumbleweed, with Linux 4.12.9-1-default (recovery mode) openSUSE Tumbleweed, with Linux 4.12.8-1-default openSUSE Tumbleweed, with Linux 4.12.8-1-default (recovery mode) Windows 10 (on /dev/sda1) -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1058996
Martin Mareš
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1058996
Jiri Srain
participants (1)
-
bugzilla_noreply@novell.com