Building custom image - error on rpm install

Hi all,

I am trying to build my own custom image using GitHub - ublue-os/image-template: Build your own custom Universal Blue Image! and Bazzite as the base image.

One of the apps I want to add is Omnissa Horizon Client (needed for connecting to my workplace). Omnissa provide the rpm file via their website rather than through a repo so I download it using wget and try to install it -

# horizon client
wget https://download3.omnissa.com/software/CART26FQ4_LIN64_RPMPKG_2512/Omnissa-Horizon-Client-2512-8.17.0-20187591429.x64.rpm
dnf5 install -y Omnissa-Horizon-Client-2512-8.17.0-20187591429.x64.rpm
rm Omnissa-Horizon-Client-2512-8.17.0-20187591429.x64.rpm

I have previously successfully installed this rpm as a layer in my existing Bazzite install using rpm-ostree install but, when I attempt to build my image, I get errors -

+ wget https://download3.omnissa.com/software/CART26FQ4_LIN64_RPMPKG_2512/Omnissa-Horizon-Client-2512-8.17.0-20187591429.x64.rpm
[0] Downloading 'https://download3.omnissa.com/software/CART26FQ4_LIN64_RPMPKG_2512/Omnissa-Horizon-Client-2512-8.17.0-20187591429.x64.rpm' ...
Saving 'Omnissa-Horizon-Client-2512-8.17.0-20187591429.x64.rpm'
HTTP response 200  [https://download3.omnissa.com/software/CART26FQ4_LIN64_RPMPKG_2512/Omnissa-Horizon-Client-2512-8.17.0-20187591429.x64.rpm]
+ dnf5 install -y Omnissa-Horizon-Client-2512-8.17.0-20187591429.x64.rpm
Updating and loading repositories:
Repositories loaded.
Package                 Arch   Version                 Repository        Size
Installing:
 omnissa-horizon-client x86_64 2512_8.17.0-20187591429 @commandline 335.9 MiB
Transaction Summary:
 Installing:         1 package
Total size of inbound packages is 290 MiB. Need to download 0 B.
After this operation, 336 MiB extra will be used (install 336 MiB, remove 0 B).
Running transaction
[1/3] Verify package files              100% |   0.0   B/s |   1.0   B |  00m01s
[2/3] Prepare transaction               100% |   2.0   B/s |   1.0   B |  00m00s
[3/3] Installing omnissa-horizon-client 100% | 197.3 MiB/s | 771.9 MiB |  00m04s
>>> Running %post scriptlet: omnissa-horizon-client-0:2512_8.17.0-20187591429.x8
>>> Non-critical error in %post scriptlet: omnissa-horizon-client-0:2512_8.17.0-
>>> Scriptlet output:                                                           
>>> Migrating global configurations...                                          
>>> Migrating per-user configurations...                                        
>>> Migration completed successfully.                                           
>>> prlinuxcupsppd is installed.                                                
>>> System has not been booted with systemd as init system (PID 1). Can't operat
>>> Failed to connect to system scope bus via local transport: Host is down     
>>> chcon: can't apply partial context to unlabeled file '/usr/lib/omnissa/horiz
>>> Warning: The daemon for Scanner Redirection fails to start!System has not be
>>> Failed to connect to system scope bus via local transport: Host is down     
>>> chcon: can't apply partial context to unlabeled file '/usr/lib/omnissa/horiz
>>> Warning: The daemon for SerialPort Redirection fails to start!sed: cannot re
>>>                                                                             
>>> [RPM] %post(omnissa-horizon-client-2512_8.17.0-20187591429.x86_64) scriptlet
Transaction failed: Rpm transaction failed.

Any suggestions?

Looks like that is trying to run a script after the fact with services that are not available in the build environment. Have you tried running this in distrobox? My limited searches say thats what others are doing with this package.

Yeah I did try and get it running in distrobox a few months back but no luck. Don’t remember if it was the same error.

I ended up converting that into a just recipe that I run post install