Commit 1a830fe9 authored by programmerlexi's avatar programmerlexi Committed by Masum Reza
Browse files

nixos/limine: fix the install script

parent 2cc1d334
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -189,7 +189,7 @@ def find_mounted_device(path: str) -> str:
    while not os.path.ismount(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
    return devices[0].device
@@ -399,6 +399,7 @@ def main():

        if config('forceMbr'):
            limine_deploy_args += '--force-mbr'

        try:
            subprocess.run(limine_deploy_args)
        except: