1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

guix-install.sh: Check if ~/.guix-profile exists properly.

Currently the check only looks if ~/.guix-profile symlink exists.
That, however, is not sufficient. This file might be created prior to creation
of the first generation of user's profile.

So we should be checking that the profile does have the file we're looking for
- etc/profile. This is the same way how /etc/profile solves this on Guix System.

* etc/guix-install.sh (sys_create_init_profile): Properly check if
~/.guix-profile exists.

Change-Id: I1a650cb5b845ca96705361e332409c3b49000057
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Merges: #5123
This commit is contained in:
Rutherther
2025-12-25 22:45:15 +01:00
parent b7a291a3c7
commit 175a8d86c9

View File

@@ -799,7 +799,7 @@ export MANPATH="$GUIX_PROFILE/share/man:${MANPATH:-}"
# User's default profile, if it exists # User's default profile, if it exists
GUIX_PROFILE="$HOME/.guix-profile" GUIX_PROFILE="$HOME/.guix-profile"
if [ -L "$GUIX_PROFILE" ]; then if [ -f "$GUIX_PROFILE/etc/profile" ]; then
. "$GUIX_PROFILE/etc/profile" . "$GUIX_PROFILE/etc/profile"
# see info '(guix) Application Setup' # see info '(guix) Application Setup'