Rename winpe iso variable

This commit is contained in:
Manuel Thalmann 2024-07-23 18:52:57 +02:00
parent 84177ce47d
commit e6ea44a216

View file

@ -12,7 +12,7 @@ begin
set -l setupLabel "winiso-valhalla"
set -l buildDir "$(status dirname)/build"
set -l cacheDir ~/.cache/winiso-valhalla
set -l isoFile "$buildDir/win.iso"
set -l winpe "$cacheDir/winpe.iso"
set -l winPath "/media/win"
set -l winpePath "/media/winpe"
set -l valhallaPath "/media/winiso-valhalla"
@ -91,11 +91,11 @@ begin
cp -r "$dir/winfs"/* "$winpeOverlay"
mkdir -p "$(dirname "$isoFile")"
mkdir -p "$(dirname "$winpe")"
sudo mount --mkdir "$WIN11_IMAGE_PATH" "$winPath"
mkwinpeimg --iso --arch amd64 --overlay "$winpeOverlay" --windows-dir "$winPath" "$isoFile"
mkwinpeimg --iso --arch amd64 --overlay "$winpeOverlay" --windows-dir "$winPath" "$winpe"
rm -rf "$winpeOverlay"
sudo mount --mkdir "$isoFile" "$winpePath"
sudo mount --mkdir "$winpe" "$winpePath"
begin
echo "$wimFile"