You are not logged in.
Pages: 1
I know this is not exactly a standard setup, but I have a RAID1 array hosting my home and swap partitions among other things (my root drive is small enough that I prefer having the swap on the larger raid disks). The RAID array is an intel fakeraid and it is managed by mdadm, to keep it working on the windows installation I also have.
During boot, mdmonitor starts on-demand when the home partition gets mounted. Unfortunately the same doesn't happen when swap wants to get mounted, so the swap unit fails because it doesn't find the partition to mount.
I've tried to modify the mdmonitor.service file adding the Before=swap.target but it makes no difference whatsoever. mdmonitor is still only started before the home partition is mounted.
Right now I created a manual swap unit for my swap partition and I configured it to run after the multi-user target. It works fine, but systemd complains that the swap target needs to be skipped due to a dependency cicle (which is true, to be fair).
Is there a smarter or more elegant way to solve this, not resulting in an error line every time I boot?
Thanks in advance!
Offline
Pages: 1