I recently reinstalled Manjaro on another drive, leaving the old drive in place. That drive was formatted as btrfs. The system boots OK, the first 2 menu entries are as expected, configured by /etc/grub.d/10_linux
:
menuentry 'Manjaro Linux'
and
menuentry 'Manjaro Linux (Kernel: 6.5.5-1-MANJARO x64 - fallback initramfs)'
However, the third one, made by /etc/grub.d/30_os-prober
seems strange, it runs system memory tester. Here is the relevant section from /boot/grub/grub.cfg
:
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Manjaro Linux (on /dev/sda2)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-40eaeac9-e00a-45ab-aa5f-d0c0c93ee1a4' {
savedefault
insmod part_gpt
insmod btrfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 40eaeac9-e00a-45ab-aa5f-d0c0c93ee1a4
else
search --no-floppy --fs-uuid --set=root 40eaeac9-e00a-45ab-aa5f-d0c0c93ee1a4
fi
linux /@/boot/memtest86+/memtest.bin
}
submenu 'Advanced options for Manjaro Linux (on /dev/sda2)' $menuentry_id_option 'osprober-gnulinux-advanced-40eaeac9-e00a-45ab-aa5f-d0c0c93ee1a4' {
menuentry 'Memory Tester (memtest86+) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/@/boot/memtest86+/memtest.bin--40eaeac9-e00a-45ab-aa5f-d0c0c93ee1a4' {
savedefault
insmod part_gpt
insmod btrfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 40eaeac9-e00a-45ab-aa5f-d0c0c93ee1a4
else
search --no-floppy --fs-uuid --set=root 40eaeac9-e00a-45ab-aa5f-d0c0c93ee1a4
fi
linux /@/boot/memtest86+/memtest.bin
}
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
### END /etc/grub.d/30_os-prober ###
The new system works well, I have no need to keep the old boot entry. It is not an issue for me, I should reformat the drive anyway.
I left the drive in, in case the new installation went wrong, and I had to boot the old one. But that would not have worked. Is this a bug in the configuration script, or there is something else going on?