You are not logged in.
Pages: 1
Hi,
I have been trying to figure out how to have fstab to bind mount, after my iscsi mount comes up.
In my fstab I got this:
UUID=e0568b08-5f27-4a52-a135-23e2343289a8a /opt/mount ext4 _netdev 0 0Which is my iscsi mount, this works without any problems on boot.
But afterwards I need to do a bind mount for this folder /opt/mount/pictures to /home/sh/pictures.
I would like to have this done on system boot as well
mount --bind /opt/mount/pictures /home/sh/picturesBeen trying this in my fstab:
/opt/mount/pictures /home/sh/pictures none bind noauto,nofail,x-systemd.requires=/opt/mount/pictures,x-systemd.automount 0 0But it ain't seems to work on boot. So what I want, is the bind part runs at last
Any good ideas how to accomplish this? ![]()
Best Regards
Soren
Offline
I'm guessing that fstab wont work as the iSCSI lun isn't mounted when it tries the bind mount. If mount -a works later, then one option may be to create a systemd unit to bind mount only when the iscsi lun is successfully mounted.
Offline
Pages: 1