Nö, 4,5 GB.
Aber: Ich habe es geschafft.
Ich habe die setup.py von Windows 7 genommen und bearbeitet, so dass OPSI eine NTFS Partition anlegt.
Ablauf:
- Setup.py bearbeitet (gefühlte 100x

) [Siehe Anhang unterhalb]
- Windows 7 - Files gegen 8er Files getauscht
- Installiert
Hinweise:
- es gibt eine neue Version von ms-sys, die das Leben wohl einfacher machen könnte
- Partition 1 war nach der Installation voll und musste erst im Setup formatiert werden
- keine unattended Installation
- Vista-Bootloader (ms-sys) arbeitet mit Windows 8
- in der neuen Setup.py ist derTeil der Partitionierung in Reihenfolge und Werten verändert
.... Leider ist "Das Kontingent für Dateianhänge bereits vollständig ausgenutzt"
Logs:
Will sie wer haben?
Setup.py (Auszug)
Code: Alles auswählen
# Create new partitiontable
disk.deletePartitionTable()
# Partition table deleted => delete all netboot product states
backend.backend_setOptions( { 'addProductPropertyStateDefaults': False } )
deletePocs = []
for poc in backend.productOnClient_getObjects(clientId = clientId):
if ((poc.productType == 'NetbootProduct') and (poc.productId != productId)) or \
((poc.productType == 'LocalbootProduct') and (poc.installationStatus == 'not_installed') and (poc.actionRequest == 'none')):
deletePocs.append(poc)
backend.productOnClient_deleteObjects(deletePocs)
# Create partitions
diskSizeM = (float(disk.size)/(1024*1024))
bootPartitionSizeM = 0
if not bootPartitionSize.startswith("0"):
# Create boot partition
disk.createPartition(start = "0M", end = bootPartitionSize, fs = "ntfs")
bootPartitionSizeM = int(bootPartitionSize.upper().replace('M', '').replace('G', '').replace('B', ''))
if (bootPartitionSize.upper().find('G') != -1):
bootPartitionSizeM *= 1024
logger.notice(u"Boot partition (%d) size is %dM" % (bootPartitionNumber, bootPartitionSizeM))
peStartM = int(diskSizeM - 10000)
boundaryM = int(diskSizeM)
if (windowsPartitionSize != "100%"):
sizeM = 0
if (windowsPartitionSize.find('%') != -1):
percent = int(windowsPartitionSize.replace('%', ''))
sizeM = int((float(percent)/100.0)*float(diskSizeM-bootPartitionSizeM))
else:
sizeM = int(windowsPartitionSize.upper().replace('M', '').replace('G', '').replace('B', ''))
if (windowsPartitionSize.upper().find('G') != -1):
sizeM *= 1024
dataSizeM = diskSizeM - sizeM
logger.notice(u"Windows partiton (%s) size is %dM, data partition (%d) size is %dM" \
% (windowsPartitionNumber, sizeM, dataPartitionNumber, dataSizeM))
if (dataSizeM <= 0):
raise Exception(u"Not enough disk space for windows partiton size %dM" % sizeM)
boundaryM = bootPartitionSizeM + sizeM
peStartM = boundaryM - 10000
# Create windows partition
disk.createPartition(start = "%dM" % bootPartitionSizeM, end = "%dM" % peStartM, fs = "ntfs")
# Create winpe partition
disk.createPartition(start = "%dM" % peStartM, end = "%dM" % boundaryM, fs = "ntfs", boot = True)
if (dataPartitionNumber > 0):
# Create data partition
disk.createPartition(start = "%dM" % boundaryM, end = "100%", fs = "ntfs")
partitions = disk.getPartitions()
# Write Master Boot Record
disk.writeMasterBootRecord(system = 'vista')
# Write Partition Boot Record
disk.writePartitionBootRecord(partition = winpePartitionNumber, fsType = 'mbrnt60 -f')
# Create fat32 filesystem on winpe partition
disk.createFilesystem(partition = winpePartitionNumber, fs = "ntfs")
if (dataPartitionNumber > 0):
# Create ntfs filesystem on data partition
disk.createFilesystem(partition = dataPartitionNumber, fs = "ntfs")
# Mount partition
disk.mountPartition(partition = winpePartitionNumber, mountpoint = target)