guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 175a8d86c931a9f520d0e7f94831a55c364a32fe
Author: Rutherther <[email protected]>
AuthorDate: Thu Dec 25 22:45:15 2025 +0100
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 <[email protected]>
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'