Bug 3253

Summary: Enhance installer to take care of systemd.
Product: Mageia Reporter: D Morgan <dmorganec>
Component: InstallerAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: Normal CC: mageia, mageia, marja11, pterjan, thierry.vignaud
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:
Bug Depends on:    
Bug Blocks: 2120    

Description D Morgan 2011-11-03 13:42:49 CET
In the installer some parts only handle "old" init system.

Like some functions :

sub _run_action {
    my ($service, $action) = @_;
    run_program::rooted($::prefix, "/etc/rc.d/init.d/$service", $action);
}


and some more.

This can be the root issue of X not started after mageia 2 install.
D Morgan 2011-11-03 13:43:03 CET

CC: (none) => pterjan

D Morgan 2011-11-03 13:43:16 CET

CC: (none) => mageia

D Morgan 2011-11-03 13:43:26 CET

CC: (none) => mageia

D Morgan 2011-11-03 13:45:58 CET

CC: (none) => thierry.vignaud

Comment 1 Colin Guthrie 2011-11-03 14:37:01 CET
From what I can see, the problem comes from trying to run the program inside a chroot? 

systemd works quite happily inside a chroot, but I've not really tried it myself. Thus it should be possible to run systemd from the installer and then start the services accordingly.

We may even be able to use systemd-nspawn rather than chroot, but as I don't fully understand the needs of the installer, I cannot say for sure.

Some more info on systemd and chroots:
http://0pointer.de/blog/projects/changing-roots.html
Comment 2 Marja Van Waes 2011-12-29 14:19:07 CET
@ D Morgan
@ Colin

I suppose Version should be "cauldron" instead of "1" ?

Is this bug still valid?

CC: (none) => marja11

Comment 3 Thierry Vignaud 2011-12-29 15:53:48 CET
There's been some changes but we still blindly run scripts with start, stop, restart.

Colin: patches are welcome :-)

Hardware: i586 => All
Version: 1 => Cauldron

Comment 4 Marja Van Waes 2012-03-19 12:22:00 CET
What is the last news?
Manuel Hiebel 2012-03-22 16:48:22 CET

Blocks: (none) => 2120

Comment 5 Colin Guthrie 2012-04-24 22:12:44 CEST
Patches written, reviewed and committed. Should be in next stage2 build.
Comment 6 Colin Guthrie 2012-04-24 22:12:55 CEST
Blah, closing.

Status: NEW => RESOLVED
Resolution: (none) => FIXED