Merge pull request #128023 from max-privatevoid/patch-1
nixos/systemd-boot: Use os.path.realpath to fully resolve symlinks
This commit is contained in:
commit
f75e2a648c
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue