main icon indicating copy to clipboard operation
main copied to clipboard

BUG: Some symlinks missing from the OCI images (Can't add printer via SMB)

Open celsomiranda opened this issue 2 years ago • 4 comments

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.

celsomiranda avatar Mar 16 '23 15:03 celsomiranda

Output of rpm -qa --queryformat '%{NAME}\n' | sort

vanilla silverblue:37

silverblue.txt

quay.io/fedora-ostree-desktops/silverblue:37

quay-silverblue.txt

ublue-main/silverblue:37

ublue-main.txt

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.

celsomiranda avatar Mar 16 '23 16:03 celsomiranda

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

celsomiranda avatar Mar 17 '23 12:03 celsomiranda

~~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

castrojo avatar Mar 17 '23 12:03 castrojo

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

celsomiranda avatar Mar 22 '23 14:03 celsomiranda

https://github.com/fedora-sysv/chkconfig/pull/135 has been merged which should fix the issue.

vrothberg avatar Aug 30 '24 07:08 vrothberg