Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 407277 - sys-fs/mdadm: add systemd support
Summary: sys-fs/mdadm: add systemd support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: install-systemd-unit systemd-love
  Show dependency tree
 
Reported: 2012-03-07 12:50 UTC by gerd
Modified: 2013-07-06 06:35 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).
+