You are not logged in.

#1 2024-01-02 12:38:28

starfry
Member
From: Surrey, UK
Registered: 2010-08-18
Posts: 230

[SOLVED] Archiso boot script: wait for keyring, etc, to be ready

I have a scripted install that uses the Arch ISO with its "script" option as a launch platform. I need my script to wait until the booted iso environment is ready, in particular that its keyring is set up.

I could watch the journal for "A start job for unit archlinux-keyring-wkd-sync.timer has finished successfully" but that feels wrong...

I'd like my script to wait until the system it's running on is ready.

What's the correct way to do this, if there is one ?

Last edited by starfry (2024-01-02 16:04:03)

Offline

#2 2024-01-02 12:59:29

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

Re: [SOLVED] Archiso boot script: wait for keyring, etc, to be ready

archlinux-keyring-wkd-sync.timer won't always trigger. You may want to watch for pacman-init.service instead.
E.g.:

while ! systemctl -q is-active pacman-init.service; do sleep 1; done

Offline

#3 2024-01-02 16:03:47

starfry
Member
From: Surrey, UK
Registered: 2010-08-18
Posts: 230

Re: [SOLVED] Archiso boot script: wait for keyring, etc, to be ready

Thanks, that works for me smile

Offline

Board footer

Powered by FluxBB