git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #128023 from max-privatevoid/patch-1

nixos/systemd-boot: Use os.path.realpath to fully resolve symlinks

commitf75e2a648c76976c8b2d5e9e147a1eaa0a84f3d8 authorJörg Thalheim <Mic92@users.noreply.github.com> dateThu 1 Jul 2021, 07:17 (5 years ago) parent8737aa92cf6f9e
1 file changed+1−1
nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py+1−1
nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py+1−1
@@ -61,7 +61,7 @@ def write_loader_conf(profile: Optional[str], generation: int) -> None:
6161
6262
6363def profile_path(profile: Optional[str], generation: int, name: str) -> str:
64− return os.readlink("%s/%s" % (system_dir(profile, generation), name))
64+ return os.path.realpath("%s/%s" % (system_dir(profile, generation), name))
6565
6666
6767def copy_from_profile(profile: Optional[str], generation: int, name: str, dry_run: bool = False) -> str: