Fix the addition of git

This commit is contained in:
Manuel Thalmann 2023-06-22 15:34:27 +02:00
parent af2e58552f
commit 77ee83d63d

View file

@ -26,7 +26,7 @@ else
bootPath="/media/boot"; bootPath="/media/boot";
dataPath="/media/data"; dataPath="/media/data";
setupLabel="winiso"; setupLabel="winiso";
gitArchive="./$buildDir/git.msi"; gitArchive="$(realpath "./$buildDir/git.msi")";
pwshArchive="./$buildDir/pwsh.zip"; pwshArchive="./$buildDir/pwsh.zip";
editionField="Edition ID"; editionField="Edition ID";
@ -43,7 +43,11 @@ else
curl -L "https://github.com/PowerShell/PowerShell/releases/download/v7.3.4/PowerShell-7.3.4-win-x64.zip" -o "$pwshArchive"; curl -L "https://github.com/PowerShell/PowerShell/releases/download/v7.3.4/PowerShell-7.3.4-win-x64.zip" -o "$pwshArchive";
fi; fi;
unzip "$pwshArchive" -d "$overlayDir/git"; mkdir -p "$overlayDir/git";
pushd "$overlayDir/git" > /dev/null;
7z x "$gitArchive";
popd > /dev/null;
unzip "$pwshArchive" -d "$overlayDir/PowerShell"; unzip "$pwshArchive" -d "$overlayDir/PowerShell";
sudo mount --mkdir "$WIN11_IMAGE_PATH" "$mountPath"; sudo mount --mkdir "$WIN11_IMAGE_PATH" "$mountPath";