Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Mar 2017 20:03:46 +0100
From:      Jan Stary <hans@stare.cz>
To:        Matthew Seaman <matthew@FreeBSD.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: cpio - Cannot extract through symlink
Message-ID:  <20170302190346.GA673@www.stare.cz>
In-Reply-To: <5e3951af-1484-0089-cbe6-2349a77ab43f@FreeBSD.org>
References:  <20170302124428.GA70192@www.stare.cz> <5e3951af-1484-0089-cbe6-2349a77ab43f@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mar 02 12:56:30, matthew@FreeBSD.org wrote:
> On 2017/03/02 12:44, Jan Stary wrote:
> > but I would very much like to avoid the unportable --insecure.
> > How is /tmp/foo supposed to get copied to $HOME 'via symlink' anyway?
> > Am I missing something obvious?
> 
> By default, there is a symlink from /home to /usr/home.  I'm not
> entirely sure why -- historical reasons, probably.

This was a default partitioning, i.e. I let the installer
use the entire disk and make up the default partitions.
(I haven;t user FreeBSD in years so I took the easy route.)

Apparently, that results in one big / partition.
The home dirs reside in /usr/home and /home is a symlink to /usr/home.
However, my $HOME is /home/hans.

So apparently, /home is not a filesystem or a directory,
it's a symlink by default. Does anybody know why?

> You can mount home directories directly as /home -- this works well, and
> it's how the system seems to be expecting things to be laid out.

Why does the installer do something else then? Is that intended?

> If you're on ZFS, it's fairly easy to just remove the symlink at /home and
> then rename ZFSes and play with mountpoints and various other properties
> to get /home directly mounted.  For UFS, so long as you have a separate
> partition for /usr/home, it's doable to re-arrange things in a similar
> way, but remember to update /etc/fstab appropriately.

I will probably reinstall with a separate /home filesystem,
but I still wonder why that is not the default.

> Or if you just want your cpio command to work, specify the destination
> as '/usr/home/hans'

Yes, that works, but is unportable.
(And I cannot use $HOME here either.)

	Thanks for the clue stick

		Jan




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170302190346.GA673>