Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 407277

Summary: sys-fs/mdadm: add systemd support
Product: Gentoo Linux Reporter: gerd <gerdmayer>
Component: [OLD] Core systemAssignee: Gentoo systemd Team <systemd>
Status: RESOLVED FIXED    
Severity: normal CC: alexander, base-system, nikoli, pacho
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 448882, 468898    

Description gerd 2012-03-07 12:50:42 UTC
please provide the systemd files to boot from md devices and use of md devices with systemd.
At the moment I gentoo system,that use eg. a raid1 md device, cannot use systemd 

Reproducible: Always
Comment 1 Thilo Bangert 2012-10-03 08:33:14 UTC
i have / (root) on raid1 an can boot fine with systemd - you have to get your kernel to autostart/detect the raid (MD_AUTODETECT).

would still be nice with proper systemd integration though.
thanks
Comment 2 Alexander Tsoy 2013-02-04 15:01:11 UTC
I have no problems with systemd and mdraid. udev is responsible for auto-assemble of MD arrays.
Comment 3 Alexander Tsoy 2013-02-04 15:19:48 UTC
Of course arrays with / and /usr on top of them should be assembled via initramfs or by appending "md=" options to the kernel cmdline (or MD_AUTODETECT should be enabled, but afaik this doesn't work with metadata 1.x). :)
Comment 4 Fabio Erculiani (RETIRED) gentoo-dev 2013-04-19 12:55:13 UTC
An ebuild with a working systemd unit for mdadm --monitor has been committed to the systemd-love overlay.

https://github.com/Sabayon/systemd-love/tree/master/sys-fs/mdadm
Comment 5 Alexander Tsoy 2013-05-07 20:31:20 UTC
(In reply to comment #4)
Using distro-specific files in EnvironmentFile is bad. Even fedora is moving away from this.

https://fedoraproject.org/wiki/Features/Systemd-unit-cleanup
Comment 6 Pacho Ramos gentoo-dev 2013-07-05 17:09:54 UTC
I will commit in a week if nobody disagrees (considering Alexander comment of course). Thanks
Comment 7 Doug Goldstein (RETIRED) gentoo-dev 2013-07-05 23:08:24 UTC
Once again, base-system gives a blanket nod to systemd files. We just won't maintain them or support them, we expect the systemd herd will assist here. We have enough things to worry about. In the future as herd priorities change and membership potentially changes, we might invest our time in systemd support.
Comment 8 Pacho Ramos gentoo-dev 2013-07-06 06:35:12 UTC
+  06 Jul 2013; Pacho Ramos <pacho@gentoo.org> +files/mdadm.service,
+  +files/mdadm.tmpfiles.conf, mdadm-3.2.6-r1.ebuild:
+  Install unit file (#407277, thanks to Doug and base-system herd for allowing
+  it).
+