diff --git a/deploy.sh b/deploy.sh index c1e80f1..2144f26 100755 --- a/deploy.sh +++ b/deploy.sh @@ -11,6 +11,12 @@ execute_script() { return 0 # Indicate success } +# Generate recipes and dishes before deployment (they are build products) +if ! (cd cook && make all); then + echo "Failed to generate dishes in cook/ (see 'make all' in cook/)" + exit 1 +fi + # Array of scripts scripts=( "./deploy/install-prerequisites-on-linux.sh" diff --git a/deploy/deploy-distro.sh b/deploy/deploy-distro.sh index 734e314..7194f1c 100755 --- a/deploy/deploy-distro.sh +++ b/deploy/deploy-distro.sh @@ -142,7 +142,7 @@ fi echo "You selected: $uri" # Get a list of files in "dishes" directory -mapfile -t dish_name < <(find "cook/dishes/" -maxdepth 1 -type f \( -name "virtual*" \) -printf "%f\n" | sed 's/\.[^.]*$//') +mapfile -t dish_name < <(find "cook/dishes/" -maxdepth 1 -type f \( -name "*guest-agents*" \) -printf "%f\n" | sed 's/\.[^.]*$//') # Check if there are any files if [ ${#dish_name[@]} -eq 0 ]; then @@ -191,7 +191,7 @@ fi # virt-install command with user-defined VM name virt-install \ --connect "$uri" \ - --os-variant fedora41 \ + --os-variant fedora-unknown \ --virt-type kvm \ --arch x86_64 \ --machine q35 \