New ISOs can only install in UEFI not Legacy Boot #347

Open
opened 2025-09-28 12:36:46 +00:00 by Tio · 8 comments
Tio commented 2025-09-28 12:36:46 +00:00 (Migrated from gitlab2.manjaro.org)

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.

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.
Tio commented 2025-09-28 12:37:01 +00:00 (Migrated from gitlab2.manjaro.org)

changed title from New ISOs can only install in UEF{-O-} not Legacy Boot to New ISOs can only install in UEF{+I+} not Legacy Boot

changed title from **New ISOs can only install in UEF{-O-} not Legacy Boot** to **New ISOs can only install in UEF{+I+} not Legacy Boot**
Tio commented 2025-09-28 12:38:11 +00:00 (Migrated from gitlab2.manjaro.org)

changed the description

changed the description
Tio commented 2025-09-28 12:51:49 +00:00 (Migrated from gitlab2.manjaro.org)

changed the description

changed the description
yochananmarqos1 commented 2025-09-28 14:24:39 +00:00 (Migrated from gitlab2.manjaro.org)

assigned to @philm

assigned to @philm
yochananmarqos1 commented 2025-10-15 23:50:13 +00:00 (Migrated from gitlab2.manjaro.org)

@Tio This should be fixed with recent versions of grub. Are you using the unstable or stable branch?

@Tio This should be fixed with recent versions of `grub`. Are you using the unstable or stable branch?
Tio commented 2025-10-17 09:18:41 +00:00 (Migrated from gitlab2.manjaro.org)

Great! I am using Stable but I guess it didn't land in Stable yet? I will test as soon as it does. Thanks!

Great! I am using Stable but I guess it didn't land in Stable yet? I will test as soon as it does. Thanks!
philm commented 2025-10-17 09:24:34 +00:00 (Migrated from gitlab2.manjaro.org)

That fix is backported to 25.0.10 of Manjaro OS already.

That fix is backported to 25.0.10 of Manjaro OS already.
Tio commented 2025-10-18 12:26:26 +00:00 (Migrated from gitlab2.manjaro.org)

So that means I could give it a go and build a custom ISO with Manjaro's Tools already?

So that means I could give it a go and build a custom ISO with Manjaro's Tools already?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tools/manjaro-tools#347
No description provided.