Patch for win10-x64

The place for development of / with / for opsi.
Post your API questions here!
HKoehler
Beiträge: 2
Registriert: 09 Jan 2020, 15:53

Patch for win10-x64

Beitragvon HKoehler » 09 Jan 2020, 16:35

Hello,

I fixed the following issue:
viewtopic.php?f=6&t=11534
viewtopic.php?f=7&t=10728

When booting opsi-linux-bootimage from a USB drive, both parted and partprobe throw errors if the device's block size (almost always 512 Bytes) does not match the file system's block size (almost always 2 KiB in the case of ISO9660). Solution: Use blkid and blockdev instead.

Patch for /var/lib/opsi/depot/win10-x64/setup.py:

Code: Alles auswählen

937c937
<                              fdiskexitcode = os.system('parted %s print | grep "Partition Table: gpt" >> /dev/null 2>&1' % (aktdisk.device))
---
>                              fdiskexitcode = os.system('blkid -s PTTYPE %s | grep -qF gpt' % (aktdisk.device))
974c974
<                              execute(u'%s %s' % (which('partprobe'),aktdisk.device))
---
>                              execute(u'%s --rereadpt %s' % (which('blockdev'),aktdisk.device))
1415c1415
<                        fdiskexitcode = os.system('parted %s print | grep "Partition Table: gpt" >> /dev/null 2>&1' % (aktdisk.device))
---
>                        fdiskexitcode = os.system('blkid -s PTTYPE %s | grep -qF gpt' % (aktdisk.device))


Unfortunately I can't find this product's source code repository. Is there a proper way to submit patches for products?