Bug 1698119 - anaconda.rpm should remove /etc/rc.d/init.d/livesys* when uninstalled
Summary: anaconda.rpm should remove /etc/rc.d/init.d/livesys* when uninstalled
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: spin-kickstarts
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1925914 (view as bug list)
Depends On:
Blocks: 2139918
TreeView+ depends on / blocked
 
Reported: 2019-04-09 16:12 UTC by Lennart Poettering
Modified: 2023-01-14 17:57 UTC (History)
25 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-12-06 03:13:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Lennart Poettering 2019-04-09 16:12:23 UTC
After installing Fedora 30 workstation beta today I had /etc/rc.d/init.d/livesys on my install afterwards. It is not owned by an RPM. Can we maybe make this owned (ghosted) by the anaconda RPM so that these files are removed when the anaconda RPM is removed after install? I mean, these files do no good after installation and they are the only SysV/LSB scripts remaining. Alternatively maybe remove them from the RPM scriptlets on removal at least?

Comment 1 Vendula Poncova 2019-04-10 12:47:01 UTC
Anaconda doesn't provide this file. It is created in the post section of fedora-live-base.ks in fedora-kickstarts. We suggest to use a package to install this content, so it can be later uninstalled. Reassigning to spin-kickstarts.

Comment 2 Zbigniew Jędrzejewski-Szmek 2019-04-10 14:19:36 UTC
It would be great to turn this into a systemd service at the same time.

The checks for rd.live.image could be nicely turned into ConditionKernelCommandLine=rd.live.image.
Prelink configuration can be removed.

The part about disabling and stopping services should prolly be replaced by simple generator
that masks all those units on the live image...

Comment 3 Kevin Fenzi 2019-04-10 17:53:22 UTC
I'd love to have those moved to systemd units. I personally don't have the time to work on this now, but PR's welcome... happy to review. 

There's likely a lot of cruft too that we have that we don't need.

Comment 4 Adam Williamson 2019-04-11 15:43:28 UTC
I did this, once:

https://bugzilla.redhat.com/show_bug.cgi?id=739446

Bruno didn't like it, and I didn't really have motivation to redo it a different way after spending a week on that and getting it vaguely rejected.

Comment 5 Zbigniew Jędrzejewski-Szmek 2019-04-11 15:52:15 UTC
It's probably worth revisiting.

Comment 6 Ben Cotton 2020-04-30 21:44:52 UTC
This message is a reminder that Fedora 30 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 30 on 2020-05-26.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '30'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 30 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 7 Zbigniew Jędrzejewski-Szmek 2021-06-08 15:17:09 UTC
*** Bug 1925914 has been marked as a duplicate of this bug. ***

Comment 8 Christian Kujau 2021-09-23 09:25:41 UTC
Removing those (or converting it to Systemd via bug 739446) would also cut down on the number of boot warnings:

$ journalctl -b -p warning | grep -m2 livesys
Sep 21 22:43:22 host systemd-sysv-generator[837]: SysV service '/etc/rc.d/init.d/livesys' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.
Sep 21 22:43:22 host systemd-sysv-generator[837]: SysV service '/etc/rc.d/init.d/livesys-late' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.

Comment 9 Brian Lane 2022-11-29 18:40:14 UTC
Note that there is a project to move the scripts into a proper rpm - https://pagure.io/livesys-scripts

Comment 10 Neal Gompa 2022-12-06 03:13:48 UTC
This is now technically fixed by bug 2139918 as the scripts are now systemd services shipped in the livesys-scripts package.

We don't auto-remove this package yet, but the warnings are gone and we no longer require sysvinit tools on the base system anymore.

Comment 11 fschaupp 2023-01-14 17:57:53 UTC
Hey folks!

Good news to hear it got fixed!

I just stumbled across this 'issue'.
Does it mean to me, I can just simply remove this file?

Maybe unrelated, but on my installed system is anaconda still installed. Isn't it also a good idea to not have this on the installed  product? (Fedora 37 Cinnamon)

Thank you for the great job working on Fedora and supporting it!


Note You need to log in before you can comment on or make changes to this bug.