Open kumy opened 2 years ago
Debian package lvm2
provides this system unit;
Solved by sudo apt install lvm2
folder2ram does not really need that service, it's in the systemd unit because it's supposed to start after it, if it exists. I'll have to check if there is a way to make it required only if existing
I have the same problem using folder2ram on a small VPS (it reduces load). I don't think that installing lvm2 on a VPS is a good idea.
The installation of folder2ram_startup works even without blk-availability. But the start of the folder2ram_shutdown fails with unresolved dependency.
The folder2ram_shutdown.service is responsible of writing the data back on disk when the system shuts down or reboots, you need to have that active and OK.
if you don't want to install lvm2, you need to edit (as root/sudo) /usr/lib/systemd/system/folder2ram_shutdown.service to remove the following lines After=blk-availability.service BindsTo=blk-availability.service
then run (as root/sudo) systemctl daemon-reload to make systemd notice the changed file then run (as root/sudo) systemctl start folder2ram_shutdown.service to start the service again and should not give errors now.
I'm sorry about this limitation, the main users of this script are on OpenMediaVault (and I use OpenSUSE) where lvm2 is installed by default. I will probably have to implement logic to detect if blk-availability.service service is available on install time so it can write the right systemd service file.
I was trying to install and configure this on a raspberry. But it fails when starting the shutdown service.
I'm running
Raspbian GNU/Linux 10