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
Using zram in live PXE causes services with PrivateDevices=yes
to fail
#1296
Comments
I met the same issue with a homemade custom live image. |
I found out that systemd requires a writable |
I worked around this for now by dropping in an
|
Yeah ! works great ! variant: fcos
version: 1.4.0
systemd:
units:
- name: systemd-userdbd.service
dropins:
- name: tempfix.conf
contents: |
#Temp fix for https://github.com/coreos/fedora-coreos-tracker/issues/1296
[Service]
PrivateTmp=no
PrivateDevices=no |
@jlebon thinks we should be able to catch something like this by adding a |
I can't reproduce this on a recent f38 dev build I have. Could be something specific to your Ignition config, though it seems like there are quite a few things that get merged in. If you can still reproduce this, can you try to shrink it down to a minimal reproducer? |
I wonder if this is somehow specific to "real hardware"? |
My bad, you're right, it looks like it works with minimal config : variant: fcos
version: 1.5.0
ignition:
security:
tls:
certificate_authorities:
- source: http://someserver:8080/ign/cert.crt
verification:
hash: sha256-xxx
config:
merge:
- source: https://someserver:8443/ign/passwd_users_core_sshkeys.ign
storage:
filesystems:
- path: /var
device: /dev/sda
format: xfs
label: Var
wipe_filesystem: false
with_mount_unit: true
files:
- path: /etc/hostname
mode: 0644
contents:
inline: Curie and that will be https://someserver:8443/ign/passwd_users_core_sshkeys.ign merged file variant: fcos
version: 1.5.0
passwd:
users:
- name: core
ssh_authorized_keys:
- ssh-ed25519 AAAACxxxx Emeric So I will try to find the "bad" merge ! |
Got it ! variant: fcos
version: 1.5.0
storage:
files:
- path: /etc/systemd/zram-generator.conf
mode: 0644
contents:
inline: |
# This config file enables a /dev/zram0 device with the default settings
[zram0] @cheese @lump are you using zram-generator ? anything else ? |
PrivateDevices=yes
to fail
Yes thanks, I can reproduce it now. I've updated the title. |
@jlebon @dustymabe @cheese @lump |
Was there an upstream fix in systemd? |
Yes that could be this one : systemd/systemd#29343 |
ok I'll trust you guys :) |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as off-topic.
This comment was marked as off-topic.
@jlebon @dustymabe @cheese @lump I was waiting for systemd v254.9 and did tests too quickly |
@travier you marked this as |
I did try with "next" FCOS 40.20240322.1.0, systemd 255.3 and kernel 6.8 ; and now I'm sure 😉 that :
I don't know what is the confirmed fix (F40, K6.8, Stmd255) but my first clues are :
Perhaps was I a merge too soon ^^ I'll refer to this issue during upcoming test days ;) |
No worries. Thanks @Nemric. So that means we can probably just close this out then? |
Yes of course, I'll do that after test days and will follow zram tests results to validate the "fix" definitely 🤞 |
Describe the bug
With version 36.20220820.3.0 some service failed to start :
Once booted and looged in,
systemctl start systemd-userdbd.service
works fineReproduction steps
Start a diskless coreos from PXE boot
Expected behavior
No failed units at startup
System details
Ignition config
Untitled-1.zip
Additional information
The text was updated successfully, but these errors were encountered: