Everywhere I looked claimed this is impossible. Not only it is possible, it also works perfectly and it's not even that much of a hassle!
- Create the LDM setup on Windows
- Partition the array and format ext4 on Windows
- Install Linux including /home on non-LDM contiguous partitions
- Install
libldm - Configure fstab
- Configure systemd
- Copy user directories
- Reboot
- Delete old
/home - Using a live environment merge the
rootpartition and the old/homepartition
Different partitions on contiguous space
Install libldm using the package manager of your distro, refer to this Arch Wiki page for further information setting libldm up.
You must specify the partition by UUID in fstab, the line should look like this, of course according to your own needs:
UUID=1b809ffc-8629-4c46-9ac5-74429d89a960 /home ext4 defaults,noatime 0 2
As you can see, once LDMTool is running the system will transparently view the partition as normal. Don't forget to disable the old /home partition before rebooting.
TODO: How in tarnation do I obtain said UUID?
Edit the home.mount unit on systemd:
systemctl edit home.mount
Need to add After=ldmtool.service to the list of dependencies:
### Editing /etc/systemd/system/home.mount.d/override.conf
### Anything between here and the comment below will become the new contents of the file
[Unit]
Documentation=man:fstab(5) man:systemd-fstab-generator(8)
SourcePath=/etc/fstab
Requires=systemd-fsck@dev-disk-by\x2duuid-1b809ffc\x2d8629\x2d4c46\x2d9ac5\x2d74429d89a960.service
After=systemd-fsck@dev-disk-by\x2duuid-1b809ffc\x2d8629\x2d4c46\x2d9ac5\x2d74429d89a960.service
After=blockdev@dev-disk-by\x2duuid-1b809ffc\x2d8629\x2d4c46\x2d9ac5\x2d74429d89a960.target
After=ldmtool.service
[Mount]
Where=/home
What=/dev/dm-1
Type=ext4
Options=defaults,noatimeIt has to be identified by its DEVICE PATH, using UUID will NOT work.