Buildiso created efi_boot_loader=systemd-boot iso cannot install due to "no such file /tmp/calamares-root-lymud_fv/vmlinuz-6.1-x86_64" error

Hi, I am new to Archlinux and Manjaro. The ISO on manjaro official site is not up to date, my nvme devices would not be recognized. But after installing it on another harddisk and updated about 2GB, the nvme device could be recognized by Manjaro.

So I would like to build a custom iso to make it work at the first place. I read the Build_Manjaro_ISOs_with_buildiso wiki, only changed one config in profile.conf:

efi_boot_loader="systemd-boot"

my buildiso command was

buildiso -f -p gnome -b stable -k linux61

And my iso was build sucessfully.

I used ventoy to install this ISO. Installation progress went to around 79%, the installer prompted error, and here below is the failure log:

> >**Calamares version: 3.2.62-4**
> >......
> > 2023-07-20 - 02:40:08 [6]: virtual void Calamares::JobThread::run()
> >     Starting job "grubcfg" ( 32 / 35 ) 
> > 2023-07-20 - 02:40:08 [6]: virtual Calamares::JobResult Calamares::PythonJob::exec()
> >     Job file "/usr/lib/calamares/modules/grubcfg/main.py" 
> > 2023-07-20 - 02:40:08 [6]: [PYTHON JOB]: Found gettext "en_US" in "/usr/share/locale/en_US" 
> > 2023-07-20 - 02:40:08 [6]:     .. Job description from pretty_name "grubcfg" = "Configure GRUB." 
> > 2023-07-20 - 02:40:08 [6]:     .. Running ("sh", "-c", "which dracut") 
> > 2023-07-20 - 02:40:08 [6]:     .. Target cmd: ("sh", "-c", "which dracut") Exit code: 1 output:
> >  which: no dracut in (/usr/sbin:/usr/bin:/sbin:/bin:/root/bin)
> > 2023-07-20 - 02:40:08 [6]:     .. Running ("sh", "-c", "which plymouth") 
> > 2023-07-20 - 02:40:08 [6]: virtual void Calamares::JobThread::run()
> >     Starting job "bootloader" ( 33 / 35 ) 
> > 2023-07-20 - 02:40:08 [6]: virtual Calamares::JobResult Calamares::PythonJob::exec()
> >     Job file "/usr/lib/calamares/modules/bootloader/main.py" 
> > 2023-07-20 - 02:40:08 [6]: [PYTHON JOB]: Found gettext "en_US" in "/usr/share/locale/en_US" 
> > 2023-07-20 - 02:40:08 [6]:     .. Job description from pretty_name "bootloader" = "Install bootloader." 
> > 2023-07-20 - 02:40:08 [6]: [PYTHON JOB]: "Bootloader: systemd-boot" 
> > 2023-07-20 - 02:40:08 [6]: [PYTHON JOB]: "Root partition uuid: \"be1b4009-f0de-4666-8bd9-d4b22562e09d\"" 
> > 2023-07-20 - 02:40:08 [6]: [PYTHON JOB]: "Configure: \", with linux61\"" 
> > 2023-07-20 - 02:40:08 [6]: Python Error:
> >  <class 'FileNotFoundError'> 
> >  [Errno 2] No such file or directory: '/tmp/calamares-root-lymud_fv/vmlinuz-6.1-x86_64' 
> >  File "/usr/lib/calamares/modules/bootloader/main.py", line 777, in run
> >     prepare_bootloader(fw_type)
> > 
> >   File "/usr/lib/calamares/modules/bootloader/main.py", line 744, in prepare_bootloader
> >     install_systemd_boot(efi_directory)
> > 
> >   File "/usr/lib/calamares/modules/bootloader/main.py", line 487, in install_systemd_boot
> >     create_systemd_boot_conf(install_path,
> > 
> >   File "/usr/lib/calamares/modules/bootloader/main.py", line 231, in create_systemd_boot_conf
> >     shutil.copyfile(kernel_path, os.path.join(files_dir, kernel_name))
> > 
> >   File "/usr/lib/python3.11/shutil.py", line 256, in copyfile
> >     with open(src, 'rb') as fsrc:
> >          ^^^^^^^^^^^^^^^

I searched forum, but did not have a clue. Could anyone help? Thanks


Moderator edit: In the future, please use proper formatting: [HowTo] Post command output and file content as formatted text

The toolset does not support systemd-boot - grub is the defacto standard for Manjaro.

I had a longterm intention once to implement but time changes and so does priorities.

Thanks. I also googled and found the same conclusion later in EndeavourOS forum: Calamares does not support systemd-boot: forum. endeavouros .com/ t / choose-bootloader-during-install / 24752 / 3
If so, I think the buildiso profiles git repo would make it clear that efi bootloader only supports grub:

possible values: grub;systemd-boot

efi_boot_loader=“grub”

For those who also encountered this issue and do not want to build iso again, here is the workaround:

  1. Boot in the Live ISO;
  2. change the bootloader config from /etc/calamares/modules/bootloader.conf, change efiBootLoader: "systemd-boot" to efiBootLoader: "grub"
  3. reopen the installer to install Manjaro. The installer would install grub instead, and would install successfully.
  4. after installing, change the bootloader to systemd-boot: forum. manjaro . org/ t / how-to-convert-to-systemd-boot / 128946

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.