You are not logged in.

#1 2017-09-26 07:00:57

theonlylawislove
Member
Registered: 2015-01-05
Posts: 38

[Solved] file not found: `fsck.overlay' when running mkinitcpio

First, a little background.

I am using the bootstrap files system, arch-chrooting into it, installing base, and running mkinitcpio.

This works when I run it locally on my Arch system, as expected.

For reasons that would take a little more time to explain, I also need to execute this procedure within a docker container. When running with --privileged in docker, arch-chroot and stuff should be have similar as if I was running it locally. For the most part, this is true, except for mkinitcpio.

Here is two output files. One running on host, one running through docker. Also included is a diff to help highlight the differences.

https://gist.github.com/pauldotknopf/d4 … d16b9466ec

My mkinitcpio.conf and preset is default, no changes.

Why do I get this fsck.overlay error? Also, why isn't ext4 support being added to the initcpio? I imagine because the cpio didn't finish building.

Last edited by theonlylawislove (2017-09-27 16:41:50)

Offline

#2 2017-09-27 08:51:59

theonlylawislove
Member
Registered: 2015-01-05
Posts: 38

Re: [Solved] file not found: `fsck.overlay' when running mkinitcpio

Turns out that "autodetect" was causing the problems.

https://git.archlinux.org/mkinitcpio.gi … autodetect

Particularly, this line.

    # detect filesystem for root
    if rootfstype=$(findmnt -uno fstype -T '/'); then
        add_if_avail "$rootfstype"
    else
        error "failed to detect root filesystem"
        fs_autodetect_failed=1
    fi

Since docker uses the overlay system, the autodetect script was trying to add it as a module.

Removing the autodetect fixed it. Now, mkinitcpio is deterministic, regardless of the platform it is run on.

Offline

#3 2017-09-27 15:11:41

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] file not found: `fsck.overlay' when running mkinitcpio

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB