Seite 1 von 1

Patch for win10-x64

Verfasst: 09 Jan 2020, 16:35
von HKoehler
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?

Re: Patch for win10-x64

Verfasst: 01 Apr 2020, 14:20
von m.radtke
Hi

sorry for being so late.
I am currently implementing your changes in the NT6 netboot products and will test them afterwards.

if they succeed they will be released with the upcoming release.

Cheers
Mathias