You are not logged in.

#1 2025-05-15 09:18:40

pemattern
Member
Registered: 2025-05-15
Posts: 2

[SOLVED] How to run mkarchiso without confirmation in docker container

I'm trying to use archiso within a docker container to build ISOs in a CI Pipeline.

Everything seems to be working as expected, except that pacman is asking for confirmation to install packages. Since I want to run this as a CI Pipeline, I can't manually confirm.
I know about pacman's --noconfirm option, but I don't know how to force mkarchiso to use that flag.

Any other ideas?

Thank you!

Last edited by pemattern (2025-05-15 13:43:03)

Offline

#2 2025-05-15 11:34:19

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 678

Re: [SOLVED] How to run mkarchiso without confirmation in docker container

mkarchiso uses pacstrap which runs pacman with the --noconfirm option by default. You shouldn't be seeing any prompts.

Offline

#3 2025-05-15 13:42:06

pemattern
Member
Registered: 2025-05-15
Posts: 2

Re: [SOLVED] How to run mkarchiso without confirmation in docker container

Thank you. I confirmed this, no conformation is needed to run mkarchiso. However, it appears that an interactive shell (i.e. one with a stdin) is still required when using the --noconfirm option with pacman.

Hence, the docker container must be run in interactive mode.

Offline

Board footer

Powered by FluxBB