0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

nixos/limine: fix the install script

This commit is contained in:
programmerlexi 2025-03-14 20:01:18 +01:00 committed by Masum Reza
parent 2cc1d33489
commit 1a830fe9d9

View file

@ -189,7 +189,7 @@ def find_mounted_device(path: str) -> str:
while not os.path.ismount(path): while not os.path.ismount(path):
path = os.path.dirname(path) path = os.path.dirname(path)
devices = [x for x in psutil.disk_partitions(all=True) if x.mountpoint == path] devices = [x for x in psutil.disk_partitions() if x.mountpoint == path]
assert len(devices) == 1 assert len(devices) == 1
return devices[0].device return devices[0].device
@ -399,6 +399,7 @@ def main():
if config('forceMbr'): if config('forceMbr'):
limine_deploy_args += '--force-mbr' limine_deploy_args += '--force-mbr'
try: try:
subprocess.run(limine_deploy_args) subprocess.run(limine_deploy_args)
except: except: