Answer the question
In order to leave comments, you need to log in
Reset user profile after reboot?
There is a fleet of diskless workstations that run Ubuntu via PXE.
The task was set to configure the user profile once and reset it after a reboot.
The /home/user folder is NFS mounted. But if you mount read-only, then some programs do not start normally, as they try to write to the profile.
As a temporary solution, I made it so that when the system boots, the profile is mounted in tmpfs and pumped out of the network. But the download is taking too long.
Can eat any normal decision for such things?
Answer the question
In order to leave comments, you need to log in
Use unionfs . This fs allows you to create a multi-level mount point with something like this:
0 - RO - your nfs home
1 - RW - tmpfs
All this will be displayed in / home / user. Writing will only occur in level 1. An example
mount command:
mount -t unionfs -o cow /home/user_tmpfs=rw:/home/user_nfs=ro /home/user
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question