New ISOs can only install in UEFI not Legacy Boot
I have been creating custom ISOs monthly. I changed nothing. All seems to build fine except some errors in the building process like:
(14/19) Updating Grub-Bootmenu
/usr/bin/grub-editenv: error: cannot open `//boot/grub/grubenv.new'
/usr/bin/grub-mkconfig: line 271: /boot/grub/grub.cfg.new: No such file or directory
I think I got these before. All goes well and installs the ISO but only when booting into UEFI mode. When booting into Legacy Boot it fails at around 98% install with such errors:
The bootloader could not be installed. The installation command <pre>grub-mkconfig -o /boot/grub/grub.cfg</pre> returned error code 1.
2025-09-28 - 13:11:48 ([61]: [PYTHON JOB]: stdout:
/usr/bin/grub-editenv: error: cannot open `//boot/grub/grubenv.new`: No such file or directory.
/usr/sbin/grub-mkconfig: line 271: /boot/grub/grub.cfg.new: No such file or directory
2025-09-28 - 13:11:48 ([6]: [PYTHON JOB]: stderr: None
2025-09-28 - 13:11:49 ([6]: virtual void Calamares::JobThread::run())
2025-09-28 - 13:11:49 ([61]: Skipping non-emergency job "postcfg")
2025-09-28 - 13:11:49 ([6]: .. Starting EMERGENCY JOB "Unmounting file systems.." (34 / 34)
2025-09-28 - 13:11:49 ([6]: Calamares::JobResult unmountTargetMounts(const OString&))
2025-09-28 - 13:11:49 ([61]: Read 8 entries from "/tmp/calamares-root-cxe290ff/")
2025-09-28 - 13:11:49 ([6]: .. Running OList("umount", "-lv", "/tmp/calamares-root-cxe290ff/var/log")
2025-09-28 - 13:11:49 ([6]: .. Running OList("udevadm", "settle")
2025-09-28 - 13:11:49 ([6]: .. Running OList("sync")
2025-09-28 - 13:11:49 ([61]: .. Running OList("umount", "-lv", "/tmp/calamares-root-cxe290ff/var/cache")
2025-09-28 - 13:11:49 ([6]: .. Running OList("udevadm", "settle")
2025-09-28 - 13:11:49 ([6]: .. Running OList("sync")
2025-09-28 - 13:11:49 ([6]: .. Running OList("umount", "-lv", "/tmp/calamares-root-cxe290ff/sys")
2025-09-28 - 13:11:49 ([6]: .. Running OList("udevadm", "settle")
which: no plymouth in (/usr/sbin:/usr/bin:/sbin:/bin:/root/bin)
2025-09-28 - 13:11:48 ([6]: .. Running OList("sh", "-c", "grep -dg 'HOOKS.*systemd' /etc/mkinitcpio.conf")
2025-09-28 - 13:11:48 ([61]: .. Target cmd: OList("sh", "-c", "grep -a 'HOOKS.*systemd' /etc/mkinitcpio.conf")
Exit code: 1 (no output)
2025-09-28 - 13:11:48 ([6]: virtual void Calamares::JobThread::run())
2025-09-28 - 13:11:48 ([61]: Starting job "bootloader" (32 / 34)
2025-09-28 - 13:11:48 ([6]: [PYTHON JOB]: Found gettext "en_US" in "/usr/share/locale/en_US")
2025-09-28 - 13:11:48 ([6]: [PYTHON JOB]: "Bootloader: grub (bios)")
2025-09-28 - 13:11:48 ([2]: WARNING: [PYTHON JOB]:
"Cannot install BIOS bootloader on UEFI installation when install hybrid grub is 'False'!")
2025-09-28 - 13:11:48 ([6]: .. Running OList("grub-mkconfig", "-o", "/boot/grub/grub.cfg")
I reinstalled the manjaro tools git versions, I checked so many things...I simply cannot know what to do.
Used to work just fine. Now it only works to install in UEFI.