main
main copied to clipboard
BUG: Some symlinks missing from the OCI images (Can't add printer via SMB)
Hi.
As discussed over on Discord. I've been having this wierd bug with images based on main, including itself.
If I go to CUPS admin in http://localhost:631/ there is no option Windows Printer via SAMBA under Add Printer > Other Network Printers.
This doesn't happen on a vanilla fresh install of Silverblue.
The output of rpm -qa '*samba*' is the same on both systems:
samba-common-4.17.6-0.fc37.noarch
samba-client-libs-4.17.6-0.fc37.x86_64
samba-common-libs-4.17.6-0.fc37.x86_64
samba-client-4.17.6-0.fc37.x86_64
Both systems are freshly installed side by side so I can test the differences between the two.
Output of rpm -qa --queryformat '%{NAME}\n' | sort
vanilla silverblue:37
quay.io/fedora-ostree-desktops/silverblue:37
ublue-main/silverblue:37
Vanilla Silverblue 37 and the OCI image pulled from quay should have the same packages installed, but one provides the option to add the printer and the latter doesn't.
I solved it.
I added the following line to the Containerfile from where I build my image:
RUN ln -s /usr/libexec/samba/cups_backend_smb /usr/lib/cups/backend/smb
~~Let's keep this open for now as a reminder and then see how the move to quay.io/fedora goes over the next few days and then see if the images still differ.~~
This appears to be https://github.com/coreos/rpm-ostree/issues/1614
Reopening the issue until it is solved upstream, or we come up with a way to fix the images ourselves temporarily.
Currently implementing this is my custom image. https://github.com/celsomiranda/ublue-mysocks/pull/8
https://github.com/fedora-sysv/chkconfig/pull/135 has been merged which should fix the issue.