LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mount nfs-home before target (https://www.linuxquestions.org/questions/linux-software-2/mount-nfs-home-before-target-933014/)

maddi 03-06-2012 08:05 AM

mount nfs-home before target
 
Hello,
I have a little problem with nfs and systemd on Opensuse 12.1
We mount our home directory via nfs and since we use fast Virtual Machines, the login screen is ready before home is mounted, so if a user wants to login he gets an error.

So it would be a good idea to create a dependency which only starts the login, when home is mounted (I don't need the machine if I have no home, and for maintenance, I boot into runlevel 3)

I tried this with creating a file home.mount with the following content:
Code:

[Unit]
Description=home
Wants=network.target rpc-statd.service
After=network.target rpc-statd.service

[Mount]
What=nas03:/home
Where=home
Type=nfs
StandardOutput=syslog
StandardError=syslog

and tried this lines in systemd-logind.service
Code:

Wants=remote-fs.target
After=remote-fs.target

Code:

Requires=home.mount

but it does not help (as you see, I am a total newbee to systemd)

Any ideas how to solve this?


All times are GMT -5. The time now is 05:29 AM.