From 175a8d86c931a9f520d0e7f94831a55c364a32fe Mon Sep 17 00:00:00 2001 From: Rutherther Date: Thu, 25 Dec 2025 22:45:15 +0100 Subject: [PATCH] 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 Merges: #5123 --- etc/guix-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/guix-install.sh b/etc/guix-install.sh index 642a89548c..de0a916e65 100755 --- a/etc/guix-install.sh +++ b/etc/guix-install.sh @@ -799,7 +799,7 @@ export MANPATH="$GUIX_PROFILE/share/man:${MANPATH:-}" # User's default profile, if it exists GUIX_PROFILE="$HOME/.guix-profile" -if [ -L "$GUIX_PROFILE" ]; then +if [ -f "$GUIX_PROFILE/etc/profile" ]; then . "$GUIX_PROFILE/etc/profile" # see info '(guix) Application Setup'