-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not install os-extensions on first boot with rpm-ostree install --apply-live --cache-only --allow-inactive ... #1274
Comments
Any chance you have a copy of your Butane/Ignition config you're willing to share? |
Sure thing though I should note that I hopped on the server and tried a few variations on the systemd unit file in case it was starting too soon. To be clear this unit file fails when I run it manually after boot but the command runs fine on the cli. I've also tried with hard coded stamp files and without the --apply-live flag
|
Where do the files in |
I think
Should probably be
IOW the |
To get the rpms in the correct place I :
|
This is an amazing catch. I could have sworn I tried this with a specific RPM in the command once and still go the same error. I must have had another typo when I tested it. Thanks so much. Do you think its worth adding to the docs to help folks manage adding custom rpms in the same way ? |
No problem. Glad we figured it out.
The reason the existing docs don't use As far as enhancing the docs for this specific use case, I'm not really sure. We do want to make the UX better for layering packages and I imagine that could also include making it easier to "pre-load" content at the Not sure if we want to take this approach specifically and add it to our docs. While it does work, it's a bit cumbersome and we should probably try to serve this use case in a less painful way. |
I agree. This is cumbersome. I'd love for there to be a better way. I probably don't have the skill to make that better way a reality but if folks change there mind I'm happy to write the docs. Its particularly cumbersome when you need the layering to get networking working |
BLUF: I'm trying to install some local RPMs on my Raspberry Pi at fist boot and I was directed at the os-extentions / layering docs here. I'm experiencing issues running rpm-ostree install from systemd while the same command works on the cli after boot. Sorry if this is the wrong place but I figure others might try the docs and have an issue too. I also think there is a bigger pattern here around how to customize the install. Most solutions focus on connected workflows. I know there is work to make creating a custom coreos image easier so to be fair this is more of a stop gap I'm hoping. Using a remote zezere server is out for me since I can't use it for unattended installs. Thanks for your patience.
Some history:
Initial thread on fedora discussion: https://discussion.fedoraproject.org/t/fedora-coreos-and-wifi/38550
Similar request to add wifi that I commented on (was rejected and thats fine); #862
Suggested solution: #862 (comment)
Another suggested solution that isn't quite fully realized yet so you'll hit a dead end when trying to use a custom made podman image with coreos-installer: coreos/layering-examples#14 (comment)
Latest Ask Fedora Post specifically about this issue: https://ask.fedoraproject.org/t/rpm-ostree-layering-not-working-when-running-from-a-systemd-unit-file/25161
System:
Fedora CoreOS 36
RPi4
Installing the follwing packages
NetworkManager-wifi-1.36.4-1.fc36.aarch64.rpm
iw-59-4.fc36.aarch64.rpm
wireless-regdb-2021.08.28-2.fc36.noarch.rpm
wpa_supplicant-2.10-4.fc36.aarch64.rpm
What I tried:
My latest attempt is focused on using a systemd unit file to run rpm-ostree to install some local rpms similar to this: Adding OS extensions to the host system :: Fedora Docs. The only difference is for my exec I’m using rpm-ostree install --apply-live --cache-only --allow-inactive --idempotent /var/tmp/$localfile.rpm.
I’ve tried chaing exec start to hard code the timestamp name.
I’ve tried editing the rpm-ostree install command to contain a specific file in /var/tmp (which does exist).
I’ve tried with and without the “before zincatai” line
I’ve tried running by rebooting
I’ve tried running using systemctl start $service and the errors are the same when i do that
My systemd unit file:
What happens:
What I want to happen:
I need this to run as a one shot on first boot though to get my wifi tools installed to enable unattended setup.
The text was updated successfully, but these errors were encountered: