Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
Fix generated json for manual partitioning
Browse files Browse the repository at this point in the history
  • Loading branch information
axtloss authored and Michal committed Sep 10, 2022
1 parent 6cb5ee1 commit a99a1c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/classes/partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ def __init__(self, partition, mountpoint, filesystem, size):
self.size = size

def generate_jade_entry(self):
return self.mountpoint+":"+self.partition[5:]+":"+self.filesystem
return "/mnt"+self.mountpoint+":/dev/"+self.partition[5:]+":"+self.filesystem


5 changes: 3 additions & 2 deletions src/utils/disks.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ def get_disk_size(disk: str):
return str(math.floor(int(size)/1000**3))+" GB"

def get_uefi():
output = CommandUtils.check_output(['-d', '/sys/firmware/efi'])
return "BIOS" if output == "0" else "UEFI"
command=subprocess.run(["bash", "-c", "bash -- /app/share/jade-gui/jade_gui/scripts/checkEFI.sh"], capture_output=True)
isEfi=True if command.stdout.decode('utf-8').strip('\n') == "UEFI" else False
return isEfi

def get_disk_type(disk: str):
output = CommandUtils.check_output(['lsblk', '-d', '-o', 'rota', disk])
Expand Down

0 comments on commit a99a1c0

Please sign in to comment.