Skip to content

Commit

Permalink
Merge pull request #94 from matttbe/home
Browse files Browse the repository at this point in the history
init: set the HOME env var if root
  • Loading branch information
arighi committed Mar 15, 2024
2 parents 27f75b6 + c396369 commit 23e5194
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions virtme/guest/virtme-init
Expand Up @@ -388,6 +388,8 @@ if [[ ! -n "${virtme_root_user}" ]]; then
install -d -m 0755 /tmp/roothome
export HOME=/tmp/roothome
mount --bind /tmp/roothome /root
else
export HOME=/root
fi

# $XDG_RUNTIME_DIR defines the base directory relative to which user-specific
Expand Down

0 comments on commit 23e5194

Please sign in to comment.