Support RPM install in Containers and native on Fedora CoreOS/Silverblue and OpenSUSE MicroOS

When I run rpm -qp --scripts plexmediaserver-1.25.0.5263-f0d9679db.x86_64 it prints out all the scripts in the RPM. Looking at the one labeled as %pre, around line 250 I see this:

# Begin General validation

# We have a systemd system. Now make sure the distro and version are supported.
Distro="$(grep ^ID= /etc/os-release | awk -F= '{print $2}' | tr -d '"')"
Version="$(grep ^VERSION_ID= /etc/os-release | awk -F= '{print $2}' | tr -d '"' | awk -F. '{print $1}')"

# Validate the Distros and versions
Supported=0

[ "$Distro" = "opensuse-leap" ] && [ "$Version" -ge 15 ] && Supported=1
[ "$Distro" = "fedora"        ] && [ "$Version" -gt 26 ] && Supported=1
[ "$Distro" = "centos"        ] && [ "$Version" -gt  6 ] && Supported=1
[ "$Distro" = "redhat"        ] && [ "$Version" -gt  6 ] && Supported=1

# Exit with error if not supported Distro+Version
if [ $Supported -eq 0 ]; then

  Output "Distribution:  $Distro,  Version: $Version -  is not supported."
  Output "Supported distributions are:   openSUSE 15+, Fedora 26+, CentOS 6+, RHEL 6+"
  Output " "
  Output "Please upgrade or reinstall as appropriate."
  exit 1
fi

You only get to this block of code (according to the comments) if you’re using using systemd as your init system and have systemctl in your path.

I just realized that the checks aren’t against -eq, they’re against -gt, so that explains how it got past the points I was worried about.

May I suggest taking a breath ? :sunglasses:

That’s twice you’ve missed basic scripting.

I’m installing Fedora 36 now in another VM.

I think you missed my reply to one of those, but it’s probably better I take a break.

I redownloaded from this second link using a different browser just to be sure, but I’m getting identical md5sums between the two.

409bd22874960d953c80e98014c79116  plexmediaserver-1.25.0.5263-f0d9679db.x86_64.rpm
409bd22874960d953c80e98014c79116  plex-test1/plexmediaserver-1.25.0.5263-f0d9679db.x86_64.rpm

Let me complete spinning up this Fedora 36 Workstation VM.
(it’s running updates now)

I’ll next install Plex and again capture the output.

Here we go. Fedora 36 Workstation , updates installed.

[root@localhost-live chuck]# dnf -y install /mnt2/output-all/plexmediaserver-1.25.0.5263-f0d9679db.x86_64.rpm
Last metadata expiration check: 0:09:17 ago on Thu 26 May 2022 02:37:07 AM EDT.
Dependencies resolved.
==================================================================================================
 Package                 Architecture   Version                        Repository            Size
==================================================================================================
Installing:
 plexmediaserver         x86_64         1.25.0.5263-f0d9679db          @commandline          96 M

Transaction Summary
==================================================================================================
Install  1 Package

Total size: 96 M
Installed size: 204 M
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                          1/1 
  Running scriptlet: plexmediaserver-1.25.0.5263-f0d9679db.x86_64                             1/1 
    PlexMediaServer install: Pre-installation Validation.
    PlexMediaServer install: Pre-installation Validation complete.

  Installing       : plexmediaserver-1.25.0.5263-f0d9679db.x86_64                             1/1 
  Running scriptlet: plexmediaserver-1.25.0.5263-f0d9679db.x86_64                             1/1 
  PlexMediaServer install: 1.25.0.5263-f0d9679db - Installation starting.
  PlexMediaServer install: 1.25.0.5263-f0d9679db - Installation starting.
  PlexMediaServer install: 
  PlexMediaServer install: Now installing based on:
  PlexMediaServer install:   Installation Type:   New
  PlexMediaServer install:   Process Control:     systemd
  PlexMediaServer install:   Plex User:           plex
  PlexMediaServer install:   Plex Group:          plex
  PlexMediaServer install:   Video Group:         render
  PlexMediaServer install:   Metadata Dir:        /var/lib/plexmediaserver/Library/Application Support
  PlexMediaServer install:   Temp Directory:      /tmp 
  PlexMediaServer install:   Lang Encoding:       en_US.UTF-8
  PlexMediaServer install:   Processor:           Intel(R) Core(TM) i7-8809G CPU @ 3.10GHz
  PlexMediaServer install:   Intel i915 Hardware: Not found
  PlexMediaServer install:   Nvidia GPU card:     Not Found
  PlexMediaServer install: Completing final configuration.
Created symlink /etc/systemd/system/multi-user.target.wants/plexmediaserver.service → /usr/lib/systemd/system/plexmediaserver.service.
  PlexMediaServer install: 1.25.0.5263-f0d9679db - Installation successful.  Errors: 0, Warnings: 0

  Verifying        : plexmediaserver-1.25.0.5263-f0d9679db.x86_64                             1/1 

Installed:
  plexmediaserver-1.25.0.5263-f0d9679db.x86_64                                                    

Complete!
[root@localhost-live chuck]# ps -ef | grep -i plex
plex       17433       1 17 02:46 ?        00:00:01 /usr/lib/plexmediaserver/Plex Media Server
plex       17476   17433 24 02:46 ?        00:00:01 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-f0d9679db/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.25.0.5263-f0d9679db /usr/lib/plexmediaserver/Resources/Plug-ins-f0d9679db/System.bundle
plex       17534   17433  0 02:46 ?        00:00:00 /usr/lib/plexmediaserver/Plex Tuner Service /usr/lib/plexmediaserver/Resources/Tuner/Private /usr/lib/plexmediaserver/Resources/Tuner/Shared 1.25.0.5263-f0d9679db 32600
plex       17557   17433 15 02:46 ?        00:00:00 Plex Plug-in [com.plexapp.agents.opensubtitles] /usr/lib/plexmediaserver/Resources/Plug-ins-f0d9679db/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.25.0.5263-f0d9679db /usr/lib/plexmediaserver/Resources/Plug-ins-f0d9679db/OpenSubtitles.bundle
plex       17686   17433 22 02:46 ?        00:00:00 Plex Plug-in [com.plexapp.agents.plexthememusic] /usr/lib/plexmediaserver/Resources/Plug-ins-f0d9679db/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.25.0.5263-f0d9679db /usr/lib/plexmediaserver/Resources/Plug-ins-f0d9679db/PlexThemeMusic.bundle
plex       17765   17433 44 02:46 ?        00:00:00 Plex Plug-in [com.plexapp.agents.themoviedb] /usr/lib/plexmediaserver/Resources/Plug-ins-f0d9679db/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.25.0.5263-f0d9679db /usr/lib/plexmediaserver/Resources/Plug-ins-f0d9679db/TheMovieDB.bundle
plex       17772   17433 34 02:46 ?        00:00:00 Plex Plug-in [tv.plex.agents.movie] /usr/lib/plexmediaserver/Resources/Plug-ins-f0d9679db/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.25.0.5263-f0d9679db /usr/lib/plexmediaserver/Resources/Plug-ins-f0d9679db/PlexMovieNew.bundle
plex       17844   17433 71 02:46 ?        00:00:00 Plex Plug-in [tv.plex.agents.music] /usr/lib/plexmediaserver/Resources/Plug-ins-f0d9679db/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.25.0.5263-f0d9679db /usr/lib/plexmediaserver/Resources/Plug-ins-f0d9679db/PlexMusic.bundle
plex       17852   17433 67 02:46 ?        00:00:00 Plex Plug-in [tv.plex.agents.series] /usr/lib/plexmediaserver/Resources/Plug-ins-f0d9679db/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.25.0.5263-f0d9679db /usr/lib/plexmediaserver/Resources/Plug-ins-f0d9679db/PlexSeries.bundle
root       17892    2598  0 02:46 pts/0    00:00:00 grep --color=auto -i plex
[root@localhost-live chuck]# 

====================================

[root@localhost-live chuck]# cat /tmp/plexinstaller.log
# Plex Media Server installation configuration info:  Thu May 26 02:46:30 AM EDT 2022
Systemd=1
Custom=0
LinuxContainer=0
NewInstall=1
HaveOverride=0
OverrideFile=""
PlexUser="plex"
PlexGroup="plex"
VideoGroup="render"
AppSuppDir="/var/lib/plexmediaserver/Library/Application Support"
PlexTempDir="/tmp"
LangEncoding="en_US.UTF-8"
ExistingVersion=0
HaveHardware=1
HaveTranscoderPref=0
NeedUser=1
NeedGroup=1
NeedVideo=1
Verbose=1
Running=0
Errors=0
Warnings=0
HaveIntel=1
HaveIntelCore=1
HaveIntelXeon=0
Havei915=0
HaveNvidia=0
CPUSKU=8809
NeedOpenCL=0
NeedBeignet=0
NeedIntelCompute=0
HaveIntelGmmlib=0
HaveIntelIGCCore=0
HaveIntelIGCOpenCL=0
HaveIntelOpenCL=0
HaveIntelOCLoc=
HaveIntelZeroGPU=0
HaveIntelCompute=0
HaveBeignet=0
HaveOpenCL=0
Platform="VMware7,1"
Processor="Intel(R) Core(TM) i7-8809G CPU @ 3.10GHz"
Distro="Fedora Linux 36 (Workstation Edition)"
Kernel="Linux localhost-live 5.17.5-300.fc36.x86_64 #1 SMP PREEMPT Thu Apr 28 15:51:30 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux"
Memory="7944 1838 1530"
[root@localhost-live chuck]# 

[chuck@lizum git.2034]$ 

Fedora CoreOS would be an entirely new platform.

While I’m sure it can be accomplished, the question I’m going to be asked is:

“How many customers want it?”

With the “updated” Fedora workstation packaging complete but never released due to lack of response, justifying the time / effort is going to be a hard sell.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.