mirror of
				https://github.com/dockur/windows.git
				synced 2025-10-27 03:15:49 +00:00 
			
		
		
		
	feat: Move TPM emulator (#49)
This commit is contained in:
		
							parent
							
								
									4a8f55ec58
								
							
						
					
					
						commit
						5a56b717c4
					
				
					 3 changed files with 1 additions and 9 deletions
				
			
		|  | @ -23,10 +23,6 @@ if [[ "${DISPLAY,,}" == "web" ]]; then | |||
|   nginx -e stderr | ||||
| fi | ||||
| 
 | ||||
| mkdir -p /dev/shm/emulated_tpm | ||||
| swtpm socket -t -d --tpmstate dir=/dev/shm/emulated_tpm --ctrl \ | ||||
|   type=unixio,path=/dev/shm/emulated_tpm/swtpm-sock --log level=1 --tpm2 | ||||
| 
 | ||||
| info "Booting Windows using $VERS..." | ||||
| 
 | ||||
| [[ "$DEBUG" == [Yy1]* ]] && set -x | ||||
|  |  | |||
|  | @ -5,9 +5,6 @@ set -Eeuo pipefail | |||
| : "${EXTERNAL:="N"}" | ||||
| : "${VERSION:="win11x64"}" | ||||
| 
 | ||||
| ARGUMENTS="-chardev socket,id=chrtpm,path=/dev/shm/emulated_tpm/swtpm-sock $ARGUMENTS" | ||||
| ARGUMENTS="-tpmdev emulator,id=tpm0,chardev=chrtpm -device tpm-tis,tpmdev=tpm0 $ARGUMENTS" | ||||
| 
 | ||||
| [[ "${VERSION,,}" == "http"* ]] && EXTERNAL="Y" | ||||
| 
 | ||||
| [[ "${VERSION,,}" == "11" ]] && VERSION="win11x64" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Kroese
						Kroese