Jes Sorensen [off-list ref] writes:
NeilBrown [off-list ref] writes:
quoted
- I have come to the conclusion that --offroot is a bad idea. We should
just make that the default. No matter whether the array is providing the
root filesystem or not, I never want systemd (or anything else) to kill
mdmon. I want it to remain in control. So the systemctl handling should
assume offroot. e.g. there should only be one .service file.
Ok I guess the question is what happens if an array is shut down in
userland, does it take mdmon down manually once it is finished with it?
We need this to happen, because otherwise we end up with a dangling
mdmon process once we reboot, if the IMSM array wasn't assembled in the
initrd.
I have been digging some more into this. Basically it looks like we can
nuke the --offroot argument and simply default to running that way.
On the bad side, we need two different .service files, one for on the
initrd and one for post system boot, due to different condition
requiremnts. The question is whether to name them the same, and just
have dracut know about the magic initrd version or if we want to try for
the two versions.
Having dracut install a special initrd version under the same name seems
the simplest from an mdadm code perspective though.
Thoughts?
Jes