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
I built a custom iso of manjaro with clean install of official manjaro-gnome-22.1.3-230529-linux61.iso
file after updating the system for about 2GB downloading.
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 tried twice, always failed due to mentioned error.