From ac58dd6b56b0ee076689dd286c33ab9b091f07be Mon Sep 17 00:00:00 2001
From: Manuel Thalmann <m@nuth.ch>
Date: Thu, 22 Jun 2023 17:45:27 +0200
Subject: [PATCH] Fix the resolving of the entry point

---
 profiles/DerGeret/Windows/Restore.ps1 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/profiles/DerGeret/Windows/Restore.ps1 b/profiles/DerGeret/Windows/Restore.ps1
index c1dac180..bbe95d64 100644
--- a/profiles/DerGeret/Windows/Restore.ps1
+++ b/profiles/DerGeret/Windows/Restore.ps1
@@ -1,10 +1,13 @@
 . "$PSScriptRoot/../../../scripts/Windows/Scripts/Prerequisites.ps1";
 . "$PSScriptRoot/../../../scripts/Windows/Scripts/Context.ps1";
 
+$entryPoint = "$($MyInvocation.MyCommand.Path)";
+
 $null = New-Module {
     Write-Host "Starting Restoration of Windows";
     . "$PSScriptRoot/../../../scripts/Windows/OS/Install.ps1";
     [Context]$context = [Context]::new();
-    $context.EntryPoint = "$($MyInvocation.MyCommand.Path)";
+    Write-Host "Setting entry point to $entryPoint";
+    $context.EntryPoint = "$entryPoint";
     Invoke-WindowsInstallation $context;
 }