Bug 25075 - split /etc/init.d/mandrake_everytime (called by mandriva-everytime.service) into multiple systemd services that can run concurrently (
Summary: split /etc/init.d/mandrake_everytime (called by mandriva-everytime.service) i...
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Base system maintainers
QA Contact:
URL:
Whiteboard: MGA7TOO
Keywords:
Depends on:
Blocks: 15230
  Show dependency treegraph
 
Reported: 2019-07-09 12:10 CEST by Christian Lohmaier
Modified: 2019-07-13 17:22 CEST (History)
1 user (show)

See Also:
Source RPM: initscripts-9.78-10.mga7.src.rpm
CVE:
Status comment:


Attachments

Description Christian Lohmaier 2019-07-09 12:10:09 CEST
Description of problem:
mandriva-everytime.service (that just calls the mandrake_everytime script) delays boot time significantly, because it is configured to run Before=basic.target, thus basically blocking any execution of startup units after local-fs target by multiple seconds. (see also bug#15230)

Version-Release number of selected component (if applicable):
mageia 7, but all basically, it is old problem.

How reproducible:
Always

Steps to Reproduce:
1. Boot to mageia
2. create boottimeline graph using
   systemd-analyze plot >/tmp/startup.svg
3. view the svg in browser/image program, see mandriva-everytime service
   blocking the boot.

And looking in the script, there's stuff in there that surely does not need to block boot to that extend, like for example updating /etc/issue - thinks like that can at least run concurrently and not sequentially.


So to fix create (at least) separate systemd units for
* updating /etc/issue
* running service_harddrake
* globetrotter/net-profile 

and preferably adjust the dependencies for it.
For example 
* there's no need for /etc/issue to block basic target, that has time til multi-user.target
* globetrotter/net-profile should be before networking, and not block whole basic task.
* not sure about harddrake, it definitely is not critical, since you can disable it completely - but being able to disable by systemd unit instead of adding some variable to global files will be nice to have anyway.
Christian Lohmaier 2019-07-09 12:10:23 CEST

Blocks: (none) => 15230

Marja Van Waes 2019-07-13 17:22:05 CEST

Assignee: bugsquad => basesystem
Version: 7 => Cauldron
CC: (none) => marja11
Whiteboard: (none) => MGA7TOO


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