Bug 27648

Summary: DrakX should not enable DM/LVM services by default after installation if not required
Product: Mageia Reporter: Aurelien Oudelet <ouaurelien>
Component: InstallerAssignee: Mageia tools maintainers <mageiatools>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal CC: thierry.vignaud
Version: Cauldron   
Target Milestone: Mageia 8   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: drakx-installer-stage2-18.45-1.mga8 CVE:
Status comment:
Bug Depends on:    
Bug Blocks: 26901    

Description Aurelien Oudelet 2020-11-22 16:40:04 CET
DrakX should not enable DM/LVM service by default after installation if not required.

When installing Mageia, if no dmraid/LVM device has been set, detected, found,
all services related to dmraid, lvm,... should be disabled.

List:
Name:                        STATE           VENDOR-PRESET
dmraid-activation.service    enabled         enabled
lvm2-monitor.service         enabled         enabled    
mdadm.service                alias           -            
mdmonitor-takeover.service   enabled         enabled      
mdmonitor.service            enabled         enabled

These unnecessary services should be disabled after installation.

Efficiency:
no more Bug 26901.
no delayed boot to look for what doesn't exist.


Assigning to Mageia Tools Maintainers.
Comment 1 Thierry Vignaud 2020-12-31 10:48:06 CET
The installer only installs lvm2 if needed.
However some other packages might pull it as dependencies…
I've a local patch for that though, which I'll test
Comment 2 Aurelien Oudelet 2021-01-08 17:54:05 CET Comment hidden (obsolete)
Comment 3 Aurelien Oudelet 2021-02-23 15:06:11 CET
I am not against having tools like lvm2, dmraid installed.

I think that only matter is to have the minimum of service launched at boot time.
I do think a solution could be to only activate such services if they are required.

dmraid-activation.service    enabled         enabled
lvm2-monitor.service         enabled         enabled    
mdadm.service                alias           -            
mdmonitor-takeover.service   enabled         enabled      
mdmonitor.service            enabled         enabled

It could be done at installation time as the "resumé" of installation purposes a list of already activated service. Per administrator-basis (the user who installs Mageia) he can already deactivate such unnecessary services but this is beyond the scope of average user.
Aurelien Oudelet 2021-02-23 15:07:34 CET

Blocks: (none) => 26901
Source RPM: drakx-installer-images-2.75-5.mga8.src.rpm => drakx-installer-stage2-18.45-1.mga8