Please note that LinuxExchange will be shutting down on December 31st, 2016. Visit this thread for additional information and to provide feedback.

i am having the following problem with an overlayfs: I can mount an overlayfs fine using the following line in my etc/fstab

none /home/student overlayfs lowerdir=/home/student,upperdir=/home/.student_rw 0 0

this works great and the mount command displays the overlayfs corretly:

 pc:~$ mount -l -t overlayfs
 none on /home/student type overlayfs (rw,lowerdir=/home/student,upperdir=/home/.student_rw)

so now when a student logs out of the machine i delete the contents of /home/.student_rw using a script - which also works fine.

the problem is that the student logging in, should find a clean home directory with the settings preconfigured in (/home/student) as the overlayfs does not touch the lowerdir folder.

the exact same approach worked very well for aufs, which are no longer supported in precise.

interestingly, the overlayfs approach works fine as long as i reboot the machine. so how can i fix this problem? for me a possible solution seems to be to let the upperdir reread the lowerdir. how would i do that?

thanks

asked 07 May '12, 08:53

badgerhill's gravatar image

badgerhill
1112
accept rate: 0%

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×81
×12

Asked: 07 May '12, 08:53

Seen: 8,151 times

Last updated: 07 May '12, 08:53

powered by OSQA