Take my home/ /home

Let’s forgot about that strange /var/lib/nethserver/home home directory path.

Do not break expectations. Let’s follow upstream settings. Come back /home :wink:

We can still bind-mount it, but …who would notice the change?

We have also a bug to fix, and it can be the right moment to do it in the right way:

What do you think?

4 Likes

In the past we decided to set it under /var, to simplify the deployment of a single-growing partition system. However home directories are seldom used, and today I’d prefer being more upstream-compliant and simplify possible migration paths to NethServer.

Edit: the single-growing partition idea is still valid with the current bind mount in /etc/fstab:

/var/lib/nethserver/home	/home	none	defaults,bind	0 0

The only thing I’d change is the home directory path, as returned by the getent system calls:

  $ getent passwd davidep
davidep:*:5123:5333:Davide Principi:/home/davidep:/bin/bash

A dedicated /home partition would be supported seamlessly! The bind mount is not executed if /home is mounted elsewhere:

3 Likes

I come from Ubuntu and I really had to search for home directories and samba shares.
If it isn’t too difficult to implement, I would say: yes please. It sure does come closer to my comfort zone.

But we must be aware what impact it will have for NethServer: Not only the local path changes, I can imagine something will change in paths for services like backup.

1 Like

Agree!! I One of the things of the DNA of *X is /home/user. :grin:

Anything that traverses the the filesystem starting at / that doesn’t exclude mounted file-systems. They will see all the files and directories twice.

There are many articles on the differences between soft-linking directories and bind-mounting them.

Unfortunately both methods have their plus and minus points.

Cheers.

How much does it cost? If it’s doable, yes please! :+1:

  • If /home is mounted elsewhere we should bind mount it instead of /var/lib/nethserver/home (swap source/dest)
  • /home must be excluded from backups

There are few things to change, but many other to test! Perhaps it’s too late to put it in ns7 Final…

Honestly we can postpone this enhancement. There’s no hurry!

1 Like

Because? If all data is in /home then it must be backupped. Or is this because it is a link mount from "/var/lib/nethserver/home and already backedup from there?

You said it! Anything under /var/lib/nethserver is in the backup by default!