[systemd-devel] systemd encfs mount

Kovács Gábor gabor at splitter.hu
Sun Feb 23 16:35:11 UTC 2020


I realized that while it calls an external program for mount it need 
some more than a simple mount,
and mounted successfully an encfs calling it directly with Type=forking, 
and don't know what am I doing,
but I go to RTFM mode.

Sorry for bothering you,
Hace a nice day :)

On 2020. 02. 23. 14:39, Kovács Gábor wrote:
> Dear systemd team,
>
> I stuck with this problem, where I am unable to successfully mount an 
> encfs dir via systemd service. (in reverse mode for backup)
> A simple bind mount works, but encfs not. Seemingly everything is ok: 
> no error, zero exit status,
> the encfs command runs and give the same output if I add verbose, but 
> the mount doesn't appear.
>
> I wrote a simple test service which calls a simple shellscript.
>
> -----------------------------------------------------------------------
> /etc/systemd/system/test.service
> [Service]
> ExecStart=/root/x
> -----------------------------------------------------------------------
> /root/x
> #!/bin/bash
> echo a | encfs -S --standard --reverse /tmp/a /tmp/b
> -----------------------------------------------------------------------
>
> If I run the script by hand, it works. If i run systemctl start test, 
> it doesn't.
>
> Also tried adding an entry to fstab (with noauto) and use the mount 
> command, the result is the same: works by hand, and doesn't via service.
>
> Tried on:
> systemd 232 kernel: 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u3
> systemd 242 (242.153-3-manjaro) kernel: 5.4.18-1-MANJARO #1 SMP PREEMPT
>
> Could you help me out with this?
>
>
> Regards,
>
> Gabor.
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/systemd-devel


More information about the systemd-devel mailing list