From 921ee58245e821b41f12210c4cda5dac3fc59acc Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Jan 05 2019 13:42:28 +0000 Subject: post: Make HOME=/var/home by default See https://github.com/coreos/fedora-coreos-config/commit/83f1bab491147e89314cef430161cad31880ec24 However, for most people this won't really help anything today because it won't take effect for users created in Anaconda, as there libuser takes the defaults from the Anaconda environment. But, this helps any subsequent users, and moves us in the right direction. --- diff --git a/post.sh b/post.sh index 39db86f..e4e7b92 100755 --- a/post.sh +++ b/post.sh @@ -10,6 +10,11 @@ for x in /etc/yum.repos.d/*modular.repo; do sed -i -e 's,enabled=[01],enabled=0,' ${x} done +# https://github.com/coreos/fedora-coreos-config/pull/18 +# AKA 83f1bab491147e89314cef430161cad31880ec24 +# Fix /home to be /var/home - software wants to canonicalize this. +sed -i -e 's,^HOME=.*,HOME=/var/home,' /etc/default/useradd + # Work around https://bugzilla.redhat.com/show_bug.cgi?id=1265295 # Also note the create-new-then-rename dance for rofiles-fuse compat if ! grep -q '^Storage=persistent' /etc/systemd/journald.conf; then