summary refs log tree commit diff
path: root/nixos/modules/system/boot
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2021-07-01 07:17:50 +0100
committerGitHub <noreply@github.com>2021-07-01 07:17:50 +0100
commitf75e2a648c76976c8b2d5e9e147a1eaa0a84f3d8 (patch)
tree66bb5fffdd0dc9047138442e4f179b870f6fd949 /nixos/modules/system/boot
parent8737aa93111c837104e66ff8e86a465150389d4e (diff)
parent2cf6f9e5bddd10917979dc77279a8eaf6773c7f5 (diff)
downloadnixpkgs-f75e2a648c76976c8b2d5e9e147a1eaa0a84f3d8.tar
nixpkgs-f75e2a648c76976c8b2d5e9e147a1eaa0a84f3d8.tar.gz
nixpkgs-f75e2a648c76976c8b2d5e9e147a1eaa0a84f3d8.tar.bz2
nixpkgs-f75e2a648c76976c8b2d5e9e147a1eaa0a84f3d8.tar.lz
nixpkgs-f75e2a648c76976c8b2d5e9e147a1eaa0a84f3d8.tar.xz
nixpkgs-f75e2a648c76976c8b2d5e9e147a1eaa0a84f3d8.tar.zst
nixpkgs-f75e2a648c76976c8b2d5e9e147a1eaa0a84f3d8.zip
Merge pull request #128023 from max-privatevoid/patch-1
nixos/systemd-boot: Use os.path.realpath to fully resolve symlinks
Diffstat (limited to 'nixos/modules/system/boot')
-rw-r--r--nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py b/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py
index 63e01dd054a..7134b432163 100644
--- a/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py
+++ b/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py
@@ -61,7 +61,7 @@ def write_loader_conf(profile: Optional[str], generation: int) -> None:
 
 
 def profile_path(profile: Optional[str], generation: int, name: str) -> str:
-    return os.readlink("%s/%s" % (system_dir(profile, generation), name))
+    return os.path.realpath("%s/%s" % (system_dir(profile, generation), name))
 
 
 def copy_from_profile(profile: Optional[str], generation: int, name: str, dry_run: bool = False) -> str: