From abc06774586f7870b1c9b07eab87bbc3967cfa92 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Wed, 30 Aug 2017 14:38:48 -0400 Subject: [PATCH] Existing install: add information about a non-separate home When /home isn't a separate partition, it's necessary to create a symlink from /var/home to /sysroot/home. --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1735a52..fa8e4e8 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,11 @@ To initialize this root, you'll need to copy over your `/etc/fstab`, `/etc/local for i in /etc/fstab /etc/default/grub /etc/locale.conf /etc/ostree/remotes.d/fedora-ws-rawhide.conf ; do cp $i /ostree/deploy/fedora/deploy/$checksum.0/$i; done ``` If you have a separate `/home` mount point, you'll need to change -that `fstab` copy to refer to `/var/home`. +that `fstab` copy to refer to `/var/home`. If you *don't* have a separate /home mount +point, then you need to make sure that a symlink will be created: +``` +echo 'L /var/home - - - - ../sysroot/home' > /ostree/deploy/fedora/deploy/$checksum.0/$i/etc/tmpfiles.d/00rpm-ostree.conf +``` You'll also need to copy your user entry from `/etc/passwd`, `/etc/group`, and `/etc/shadow` into the new `/etc/`, and add yourself to the wheel group