Problems with /home mount on a btrfs subvolume - systemd
Hello Guys;
I have been trying for the last day or so to get this working on my gentoo system.
I am currently using systemd as the runtime init system. My system has an encrypted root and home partitions that are sitting on a btrfs file system as subvolumes. In order to get this working I had to create a custom initramfs image. I attempted to use dracut but it simply hangs at boot and never prompts for the password.
The system will with my current initram mount root just fine however when I try and set my /home as auto mount systemd will try and start the dev-map-rootpool.device and fail. It fails because cryptsetup has already created the correct devices in /dev/mapper for the btrfs file system. Because / and /home are on the same physical device /dev/mapper/rootpool, and my initram does not include systemd the device is seen as down.
So my question is if there is a way to setup my init in my intramfs to pass on notification to systemd that the device is up? I have tried to move /dev and /proc and even /sys to the running system from the startup environment but to no avail.
I am also unable to just mount /home in the initram as when systemd starts it will see that home.device is attached to a down device and then unmount it.... This also goes for trying to make a custom .start file in /etc/local.d.
I would rather not try and embed systemd into my initramfs as doing so I am sure is painful in the small startup environment but I fear this is the only option. I have looked around online extensively and cant find good info on how to accomplish this the only info I can find is from freedesktop which simply states to imbed systemd into your initram.
|