Cleanup and version changes in prep for release

This commit is contained in:
Anton Hvornum 2022-05-29 11:25:28 +02:00
parent 5171458796
commit 7dbea73514
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
2 changed files with 1 additions and 11 deletions

View File

@ -4,7 +4,7 @@
# Contributor: demostanis worlds <demostanis@protonmail.com>
pkgname=archinstall
pkgver=2.4.3rc1
pkgver=2.5.0
#pkgver=$(git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g')
pkgrel=1
pkgdesc="Just another guided/automated Arch Linux installer with a twist"

View File

@ -160,16 +160,6 @@ class Partition:
def boot(self) -> bool:
output = json.loads(SysCommand(f"sfdisk --json {self.block_device.path}").decode('UTF-8'))
# Get the bootable flag from the sfdisk output:
# {
# "partitiontable": {
# "device":"/dev/loop0",
# "partitions": [
# {"node":"/dev/loop0p1", "start":2048, "size":10483712, "type":"83", "bootable":true}
# ]
# }
# }
for partition in output.get('partitiontable', {}).get('partitions', []):
if partition['node'] == self.path:
# first condition is for MBR disks, second for GPT disks