arch-install-scripts icon indicating copy to clipboard operation
arch-install-scripts copied to clipboard

pacstrap fails when running in a (privileged) Podman (which is like Docker) container on Fedora

Open vorburger opened this issue 2 years ago • 1 comments

https://wiki.archlinux.org/index.php?title=Install_Arch_Linux_via_Docker fails when following those instructions on a Fedora host:

$ podman run --privileged -it --rm --volume "/tmp/pacstrap:/target" archlinux
# pacman -Syu arch-install-scripts
# pacstrap /target base
==> Creating install root at /target
mount: /target/dev: permission denied.
       dmesg(1) may have more information after failed mount system call.
==> ERROR: failed to setup chroot /target

This isn't blocking me, as I can run pacstrap directly on a Fedora host, but I thought it may be useful to at least record this here.

vorburger avatar Sep 10 '22 14:09 vorburger

Also added this to https://wiki.archlinux.org/title/Talk:Install_Arch_Linux_via_Docker in case anyone else searches the Wiki for this.

vorburger avatar Sep 10 '22 14:09 vorburger

Can you include the output of dmesg? Have you tried adding -N?

Forty-Bot avatar Oct 22 '22 01:10 Forty-Bot

Can you include the output of dmesg?

It doesn't show any new entries when this happens.

Have you tried adding -N?

[root@84146d41d510 /]# pacstrap -N /target base
unshare: no line matching user "root" in /etc/subuid: Success

But to be honest I currently don't really need this (anymore) myself... do you want to keep this open anyway, or close?

vorburger avatar Oct 22 '22 21:10 vorburger