Closed graybush closed 1 year ago
So what's in:
[Errno 2] No such file or directory: '/var/lib/ipa-client/sysrestore/sysrestore.state'
The ipa-client-install command failed. See /var/log/ipaclient-install.log for more information
?
Is it installed by the RPM or setup somewhere else?
If you're using a custom image, you must provide a link to the Containerfile you used to build it otherwise we can't know what you're doing:
ostree-unverified-registry:ghcr.io/graybush/ublue-zotac:pr-7
So what's in:
[Errno 2] No such file or directory: '/var/lib/ipa-client/sysrestore/sysrestore.state' The ipa-client-install command failed. See /var/log/ipaclient-install.log for more information
?
Is it installed by the RPM or setup somewhere else?
On a stock silverblue 37 system after layering in the freeipa-client
package and rebooting, but before setting up the IPA client, the /var/lib/ipa-client/sysrestore/
exists but there is no sysrestore.state
file.
[root@fedora ~]# ls -la /var/lib/ipa-client/sysrestore/
total 0
drwxr-xr-x. 1 root root 0 Mar 6 07:38 .
drwxr-xr-x. 1 root root 26 Mar 6 07:38 ..
I am not sure if this path is setup by the RPM or somewhere else.
If you're using a custom image, you must provide a link to the Containerfile you used to build it otherwise we can't know what you're doing:
ostree-unverified-registry:ghcr.io/graybush/ublue-zotac:pr-7
I added the Containerfiles to the description and here is a link to the built container. https://github.com/graybush/ublue-zotac/pkgs/container/ublue-zotac/74955122?tag=pr-7
Does it work if you create this directory before calling ipa-client-install --mkhomedir
?
This is likely a missing tpmfiles.d
config file missing in the freeipa package to create it on boot if it does not exists.
Yes, if I manually create /var/lib/ipa-client/sysrestore/
before calling ipa-client-install --mkhomedir
it works as expected.
Then it's a bug in the freeipa
package in Fedora. it should likely ship a tpmfiles.d
config creating all the required folders in /var
on boot as applications/daemons should not expect /var
to be populated.
Closing as this is an upstream bug.
Please report the bug there.
Describe the bug I made a custom image and with fedora 37 silverblue as the base and layered the
freeipa-client
package. The final image is made from two container files that can be found here: https://github.com/graybush/ublue-base/blob/main/Containerfile https://github.com/graybush/ublue-zotac/blob/main/Containerfile The image base isquay.io/fedora-ostree-desktops/silverblue:37
.The image builds fine and I am able successfully rebase to my custom image. When attempting to setup the IPA client it fails with:
To Reproduce Please describe the steps needed to reproduce the bug:
rpm-ostree install freeipa-client
during image creationExpected behavior I would expect to be able to successfully setup the IPA client.
OS version:
Additional context When I attempt to
rpm-ostree install freeipa-client
on a running system e.g. stock fedora silverblue or a custom image without freeipa-client already installed, the software installs and I am able to setup the IPA client software as expected.