Installation failed mkinitcpio with error code 1

Below are pictures of the process I’m following.

Started the install with sudo calamaris -d
I do the erase full option on the GUI and select swap (no hibernate)

Next I added my name, user, computer name, password and clicked next.

Then I clicked install.
When it’s almost complete I receive the following error.

Command mkinitcpio finished with exit code 1.
Output:
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'default'
-> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64.img
==> Starting build: 5.15.6-2-MANJARO
-> Running build hook: [base]
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64-fallback.img
==> WARNING: errors were encountered during the build. The image may not be complete.

addition
When i run mkinitcpio without sudo I get a similar error, but when I run it with sudo it works.


I appreciate all the help in advance. I really want to use this OS but I’ve been trying all the fixes I’ve found in the web and none have worked yet

Burm

    ..  Job description from pretty_name "initcpiocfg" = "Configuring mkinitcpio." 
    ..  Running ("sh", "-c", "which plymouth") 
    ..  Target cmd: ("sh", "-c", "which plymouth") Exit code: 1 output:
 which: no plymouth in (/home/manjaro/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin)
05:10:03 [6]: virtual void Calamares::JobThread::run()
    Starting job "Creating initramfs with mkinitcpio." ( 22 / 36 ) 
05:10:03 [6]: virtual Calamares::JobResult InitcpioJob::exec()
    Updating initramfs with kernel "linux515" 
    ..  Running ("mkinitcpio", "-p", "linux515") 
    ..  Target cmd: ("mkinitcpio", "-p", "linux515") Exit code: 1 output:
 ==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'default'
  -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64.img
==> Starting build: 5.15.6-2-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
==> ERROR: Hook 'zfs' cannot be found
  -> Running build hook: [resume]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64.img
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'fallback'
  -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64-fallback.img -S autodetect
==> Starting build: 5.15.6-2-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
==> ERROR: Hook 'zfs' cannot be found
  -> Running build hook: [resume]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64-fallback.img
==> WARNING: errors were encountered during the build. The image may not be complete.
05:10:13 [6]: virtual void Calamares::JobThread::run()
    Skipping non-emergency job "Configure <pre>sudo</pre> users." 
    ..  Skipping non-emergency job "Preparing groups." 
    ..  Skipping non-emergency job "Create user burm" 
    ..  Skipping non-emergency job "Set password for user burm" 
    ..  Skipping non-emergency job "Set password for user root" 
    ..  Skipping non-emergency job "Set hostname ShellNBurm" 
    ..  Skipping non-emergency job "displaymanager" 
    ..  Skipping non-emergency job "mhwdcfg" 
    ..  Skipping non-emergency job "hwclock" 
    ..  Skipping non-emergency job "services" 
    ..  Skipping non-emergency job "grubcfg" 
    ..  Skipping non-emergency job "bootloader" 
    ..  Skipping non-emergency job "postcfg" 
    ..  Skipping non-emergency job "umount" 
05:10:13 [1]: void Calamares::ViewManager::onInstallationFailed(const QString&, const QString&)
    ERROR: Installation failed: "External command finished with errors." 
    ..  - message: "External command finished with errors." 
    ..  - details: Command <i>mkinitcpio</i> finished with exit code 1.
Output:
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'default'
  -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64.img
==> Starting build: 5.15.6-2-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
==> ERROR: Hook 'zfs' cannot be found
  -> Running build hook: [resume]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64.img
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'fallback'
  -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64-fallback.img -S autodetect
==> Starting build: 5.15.6-2-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
==> ERROR: Hook 'zfs' cannot be found
  -> Running build hook: [resume]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64-fallback.img
==> WARNING: errors were encountered during the build. The image may not be complete.
05:10:13 [6]: void Calamares::ViewManager::onInstallationFailed(const QString&, const QString&)
    Calamares will quit when the dialog closes. 
05:10:13 [6]: void Config::doNotify(bool, bool)
    Notification not sent; completion: failed

I would try to start again from the scratch and to erase the disc, prepare a new partition table, creating and formatting of partitions using GParted to be booted from a live ISO. Then note every single step you do and report in case you still have issues.

1 Like

What would you recommend I do for that? Can I get to command line from the live disk without booting the iso?

I would boot into the live ISO and then start GParted GUI. If you prefer to do all the above from the command line just open a terminal window after booting.

So I’ve done a 500M boot, 32G swap, 32G root, and the rest home. Not sure how to map the root and home in gpart. Should I do that in gpart or just do that on the install? They are all created though.

So I downloaded gparted and created 4 partitions. I did a Linux Swap, EFI, and 2 ext4 partitions. 1 of the partitions was for root and the other was for home. I ended up getting the same error as usual. The following errors are what the errors look like when I don’t run sudo -d to start the installation.

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
chcon: failed to get security context of '/': Operation not supported
chcon: failed to get security context of '/boot/efi': Operation not supported
chcon: failed to get security context of '/dev': Operation not supported
chcon: failed to get security context of '/proc': Operation not supported
chcon: failed to get security context of '/run': Operation not supported
chcon: failed to get security context of '/run/udev': Operation not supported
chcon: failed to get security context of '/sys': Operation not supported
chcon: failed to get security context of '/sys/firmware/efi/efivars': Operation not supported
19:01:05 [1]: void Calamares::ViewManager::onInstallationFailed(const QString&, const QString&)
    ERROR: Installation failed: "External command finished with errors."

Please, post output of

sudo fdisk -l
sudo parted -l
sudo blkid

If you let us participate on each major step and not try to finish everything at once we might easier clarify what went wrong.

  1. Prepare disk by creation of partition table, creating of partition and formatting
  2. Verify all checksums of ISO you want to use to install.
  3. Start Calamares from live ISO (seems you try to start it somehow special, normally you just click on the desktop icon)

I appreciate your help. I’m going to go ahead and mark this as closed. It is not resolved in the sense of being fixed but I reluctantly installed base Arch and then installed kde. Again thank you for your assistance.

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