A
A
ADOLF88HITLER2013-02-03 22:55:13
linux
ADOLF88HITLER, 2013-02-03 22:55:13

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

2 answer(s)
M
mik_os, 2013-02-04
@ADOLF88HITLER

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

@
@ntkt, 2013-02-03
_

Only self-written crutches using FUSE come to mind, ready-made solutions somehow don’t even google.
We take something like this as a basis:
www.matthewgkeller.com/software/rofs.c.txt
and joyfully return 0 in all write callbacks. I
predict a drop in performance.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question