Package: nbd-client
Version: 1:3.18-1
Severity: normal

I have

nbd1 IP NAME

in /etc/nbdtab

I have

/dev/nbd1 /mountpoint ext4 _netdev,errors=remount-ro 0 0

in /etc/fstab

So I can do nbd-client nbd1, and get mounted /mountpoint.


But it is not started automatically after reboot.

OK, I've created /etc/systemd/system/dev-nbd1.device.requires
and symlinked [email protected] here:
ln -s /lib/systemd/system/[email protected] 
/etc/systemd/system/dev-nbd1.device.requires/

But it is still not started automatically after reboot, as %i in
[email protected] is dev-nbd1 and not nbd1 and nbd-client cat't init
dev-nbd1.

So I've created nbd1.service in the /etc/systemd/system, replaced %i
with nbd1 and symlinked it into /etc/systemd/system/dev-nbd1.device.requires

And only now I got /mountpoint mounted after reboot.

Reply via email to