LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-06-2012, 09:05 AM   #1
maddi
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Rep: Reputation: 0
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS mount is mounting my home directory, not the real directories? brianpbarnes Linux - Software 7 12-29-2009 03:35 PM
Fully asynchronous NFS-like protocol to mount home dirs caveden Linux - Networking 3 10-04-2009 05:59 PM
mount.nfs: mount to NFS server 'jesse' failed: timed out, retrying keupie Linux - Networking 3 06-05-2009 08:03 PM
auto mount to nfs home dir when user login to nis client lijianatusa Linux - Newbie 4 02-26-2009 12:38 AM
NFS mount mount.nfs: access denied by server while mounting knockout_artist Linux - Newbie 2 11-26-2008 03:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration