Bug 2141480

Summary: 80lvmthinpool-monitor use $SYSTEMCTL instead of systemctl
Product: Red Hat Enterprise Linux 8 Reporter: ltao
Component: dracutAssignee: Pavel Valena <pvalena>
Status: CLOSED ERRATA QA Contact: Frantisek Sumsal <fsumsal>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.8CC: dtardon, fsumsal, jieli, pvalena, yiyan
Target Milestone: rcKeywords: Bugfix, EasyFix, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dracut-049-223.git20230119.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-16 09:08:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2034457    

Description ltao 2022-11-10 02:46:41 UTC
Description of problem:

dracut-049-209.git20220815.el8

80lvmthinpool-monitor module is backported from upstream, for module-setup.sh, it uses $SYSTEMCTL -q --root "$initdir" add-wants initrd.target start-thinpool-monitor.service. However $SYSTEMCTL is not suitable for rhel8, it should use systemctl instead. 

Because patch 18d36fabf5ab20404 ("feat(dracut.sh): allow overriding the systemctl command for sysroot") didn't backported to rhel8 dracut, so $SYSTEMCTL is unavailable.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 ltao 2022-11-15 07:18:06 UTC
Hi David,

Can this bz be fixed in rhel8.8? Since bz2034457 depends on this one, if the bug is planed to fixed in next release, then we will plan to defer bz2034457 to rhel8.9 as well.

Thanks,
Tao Liu

Comment 2 David Tardon 2022-11-15 08:22:15 UTC
(In reply to ltao from comment #1)
> Can this bz be fixed in rhel8.8?

I'm pretty sure it can.

Comment 3 ltao 2022-11-15 09:11:05 UTC
(In reply to David Tardon from comment #2)
> (In reply to ltao from comment #1)
> > Can this bz be fixed in rhel8.8?
> 
> I'm pretty sure it can.

OK, Thanks!

Comment 4 ltao 2022-11-29 07:26:50 UTC
Hi Pavel,

Sorry to interrupt, since bz2034457 depends on this one, and bz2034457 is a feature bug. QE wants the feature bug to be fixed as early for testing, could you please get this bz fixed before ITM14? Thanks a lot!

Thanks,
Tao Liu

Comment 5 Pavel Valena 2022-12-06 19:37:54 UTC
I've prepared a PR: https://github.com/redhat-plumbers/dracut-rhel8/pull/21

Comment 19 errata-xmlrpc 2023-05-16 09:08:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (dracut bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2994