Seite 1 von 1

Found WinPE Directory: %s , but it seems to be empty" % (winpeDir)

Verfasst: 19 Sep 2018, 13:24
von Hetzer123
Hallo,

ich habe ein WinPE laut der Anleitung unter Windows 10 angelegt und die Daten in den entsprechenden Ordern gelegt + Rechte gesetzt.

Wenn ich nun über die Boot CD Windows 10 64bit booten möchte, ergbit sich folgendes Log:

(1077) [5] [Sep 19 13:14:14] Product-id is 'win10' (master.py|1179)
(1078) [5] [Sep 19 13:14:14] Fetching product properties... (master.py|1215)
(1093) [5] [Sep 19 13:14:15] Fetching config states... (master.py|1243)
(1108) [5] [Sep 19 13:14:15] Requesting product license... (master.py|1260)
(1109) [5] [Sep 19 13:14:15] Using product property to get licensekey (master.py|1268)
(1111) [5] [Sep 19 13:14:15] Fetching pcpatch password... (master.py|1280)
(1133) [5] [Sep 19 13:14:20] Copying action script 'win10/setup.py' from depot to '/tmp/setup.py' (master.py|1390)
(1194) [5] [Sep 19 13:14:23] ############################################################## (setup.py|38)
(1195) [5] [Sep 19 13:14:23] initOpsiSetupLib() (opsisetuplib.py|30)
(1196) [5] [Sep 19 13:14:23] OpsiSetupLib $Revision$ (opsisetuplib.py|31)
(1197) [5] [Sep 19 13:14:23] OpsiSetupLib $Date$ (opsisetuplib.py|32)
(1198) [5] [Sep 19 13:14:23] nt6.py (setup.py|40)
(1199) [5] [Sep 19 13:14:23] ############################################################## (setup.py|42)
(1200) [5] [Sep 19 13:14:23] Installing Product: win10_- on bitpc140.bit.st-elisabeth.de (setup.py|50)
(1201) [5] [Sep 19 13:14:23] ############################################################## (setup.py|53)
(1209) [5] [Sep 19 13:14:23] Installed opsi-script: opsi-winst_4.12.0.25 (setup.py|63)
(1211) [5] [Sep 19 13:14:23] try to load efivars module: modprobe efivars (opsisetuplib.py|490)
(1216) [5] [Sep 19 13:14:23] we are not running in uefi mode (opsisetuplib.py|494)
(1217) [5] [Sep 19 13:14:23] We install to disk (setup.py|77)
(1218) [5] [Sep 19 13:14:23] useRaid1 is False (setup.py|209)
(1219) [5] [Sep 19 13:14:23] preserve_winpe_partition is False (setup.py|214)
(1220) [5] [Sep 19 13:14:23] preserve_winpe_partition is False (setup.py|218)
(1221) [5] [Sep 19 13:14:23] Using installfiles_dir: installfiles (setup.py|225)
(1222) [5] [Sep 19 13:14:23] winpe_debug_cmd_exe = False (setup.py|249)
(1223) [5] [Sep 19 13:14:23] We use as administrator: Administrator (setup.py|326)
(1224) [2] [Sep 19 13:14:24] Traceback: (Logger.py|757)
(1225) [2] [Sep 19 13:14:24] File "/usr/local/bin/master.py", line 1471, in <module>
(1226) execfile(actionScript)
(1227) (Logger.py|757)
(1228) [2] [Sep 19 13:14:24] File "/tmp/setup.py", line 338, in <module>
(1229) raise Exception(u"Found WinPE Directory: %s , but it seems to be empty" % (winpeDir))
(1230) (Logger.py|757)
(1231) [2] [Sep 19 13:14:24] ==>>> Found WinPE Directory: winpe , but it seems to be empty (master.py|1519)


Vielleicht ist es ein simpler Fehler, hat jemand eine Idee?

Re: Found WinPE Directory: %s , but it seems to be empty" % (winpeDir)

Verfasst: 19 Sep 2018, 15:10
von hobbyist
Heißt das angepasste WIM-File "boot.wim" und liegt unter winpe\sources?
Vermutlich schon, aber es wäre ja das naheliegendste diese Frage zu stellen.

Viele Grüße

Re: Found WinPE Directory: %s , but it seems to be empty" % (winpeDir)

Verfasst: 19 Sep 2018, 15:21
von Hetzer123
Die Datei heißt "boot.wim", ich habe die neuste Version der Boot CD + neuste OPSI Version.

Re: Found WinPE Directory: %s , but it seems to be empty" % (winpeDir)

Verfasst: 19 Sep 2018, 18:55
von hobbyist
Hetzer123 hat geschrieben:Die Datei heißt "boot.wim", ich habe die neuste Version der Boot CD + neuste OPSI Version.
UEFI-Installation? In welchem Pfad liegt die boot.wim genau? Boot CD und die OPSI-Version sollten da in meinen Augen eher eine nebensächliche Rolle spielen, aber gut zu wissen.

Re: Found WinPE Directory: %s , but it seems to be empty" % (winpeDir)

Verfasst: 20 Sep 2018, 07:54
von Hetzer123
Die Boot CD bringt die Meldung "We are not running in uefi mode"

Die boot.wim liegt unter /var/lib/opsi/Depot/win10-x64/winpe

Es wurde wie folgt vorgegangen:
"%ProgramFiles%\Windows AIK\Tools\PETools\copype.cmd" amd64 C:\winpe
"%ProgramFiles%\Windows AIK\Tools\amd64\imagex.exe" /mountrw "C:\winpe\winpe.wim" 1 "C:\winpe\mount"
echo c:\opsi\startnet.cmd > "C:\winpe\mount\Windows\System32\startnet.cmd"
"%ProgramFiles%\Windows AIK\Tools\amd64\imagex.exe" /commit /unmount "C:\winpe\mount" move "C:\winpe\winpe.wim" "C:\winpe\ISO\sources\boot.wim"

opsi-setup --set-rights /var/lib/opsi/depot/win10-x64/winpe

Re: Found WinPE Directory: %s , but it seems to be empty" % (winpeDir)

Verfasst: 20 Sep 2018, 11:50
von n.wenselowski
Hetzer123 hat geschrieben:Es wurde wie folgt vorgegangen:
"%ProgramFiles%\Windows AIK\Tools\PETools\copype.cmd" amd64 C:\winpe
"%ProgramFiles%\Windows AIK\Tools\amd64\imagex.exe" /mountrw "C:\winpe\winpe.wim" 1 "C:\winpe\mount"
echo c:\opsi\startnet.cmd > "C:\winpe\mount\Windows\System32\startnet.cmd"
"%ProgramFiles%\Windows AIK\Tools\amd64\imagex.exe" /commit /unmount "C:\winpe\mount" move "C:\winpe\winpe.wim" "C:\winpe\ISO\sources\boot.wim"
Wurden die Files auch auf den opsi-Server kopiert?

Re: Found WinPE Directory: %s , but it seems to be empty" % (winpeDir)

Verfasst: 20 Sep 2018, 12:26
von Hetzer123
Hallo,

ja via Winscp über putty findet sich die Datei ebenfalls.

Re: Found WinPE Directory: %s , but it seems to be empty" % (winpeDir)

Verfasst: 20 Sep 2018, 13:06
von hobbyist
Hetzer123 hat geschrieben:Die Boot CD bringt die Meldung "We are not running in uefi mode"
Die boot.wim liegt unter /var/lib/opsi/Depot/win10-x64/winpe
Deswegen habe ich gefragt. Die boot.wim gehört unter /winpe/sources
Hetzer123 hat geschrieben: move "C:\winpe\winpe.wim" "C:\winpe\ISO\sources\boot.wim"
Weil mit diesem Befehl hast Du sie ja in Sources verschoben. Und im Depot unter winpe liegt dann der Inhalt des ISOs.

Re: Found WinPE Directory: %s , but it seems to be empty" % (winpeDir)

Verfasst: 20 Sep 2018, 15:28
von Hetzer123
Hey Hobbyist,

danke ich habe mich wohl in der Anleitung falsch orientiert!

Re: Found WinPE Directory: %s , but it seems to be empty" % (winpeDir)

Verfasst: 12 Jun 2025, 11:59
von Infotech
Hello,

No, it was done by opsi-automatically:
https://docs.opsi.org/opsi-docs-en/5/cl ... endpe-opsi

````````````````````````````````````````````````````````
To create the WinPE automatically using opsi, follow these steps:

Install the opsi-winpe package on the opsi-server:
opsi-package-updater -v install opsi-winpe.

Set the localboot product opsi-winpe for the Windows client to once. If required, choose x86 instead of x64 in the product properties at the bottom right. Save the changes by right-clicking and selecting Save.

If you need to integrate drivers for mass storage devices such as hard disks, refer to the section Extending the WinPE with opsi.

Trigger the installation event for the client. This can be done either by right-clicking and selecting on-demand or by rebooting the client.

Next, move or copy the contents of the newly created directory C:\winpe_<ARCH>\media\ on the client to the existing directory of the operating system to be installed, which is located at \\opsiserver\opsi_depot_rw\<operating system>\winpe\. Replace <ARCH> with either x86 for 32 bit or amd64 for 64 bit architecture.

To finalize the process, run the command opsi-set-rights on the opsi server:

opsi-set-rights