Skip to content

Commit

Permalink
update install.sh and rebuild.sh to include new host vmware
Browse files Browse the repository at this point in the history
  • Loading branch information
Mag1cByt3s committed Dec 22, 2024
1 parent b1024fb commit a68b796
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ mount --mkdir -t zfs zroot/persist /mnt/persist


while true; do
read -rp "Which host to install? (vm / t580) " HOST
read -rp "Which host to install? (kvm / vmware / t580) " HOST
case $HOST in
vm|t580 ) break;;
kvm|vmware|t580 ) break;;
* ) echo "Invalid host. Please select a valid host.";;
esac
done
Expand Down Expand Up @@ -293,7 +293,7 @@ done

# Set username based on chosen host
case $HOST in
vm )
kvm | vmware )
USER="redflake"
;;
t580 )
Expand Down Expand Up @@ -346,7 +346,7 @@ log "INFO" "Installing Red-Flake with host profile ${HOST} for user ${USER} on d
nixos-install --no-root-password --flake "${FLAKE}/${GIT_REV:-main}#$HOST" --option tarball-ttl 0

log "INFO" "Syncing disk writes..."
sync
syncvm

log "INFO" "Setting up persistence..."

Expand Down
4 changes: 2 additions & 2 deletions rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ if ! ping -c 1 github.com &> /dev/null; then
fi

while true; do
read -rp "Which host to rebuild? (vm / t580) " HOST
read -rp "Which host to rebuild? (kvm / vmware / t580) " HOST
case $HOST in
vm|t580 ) break;;
kvm|vmware|t580 ) break;;
* ) echo "Invalid host. Please select a valid host.";;
esac
done
Expand Down

0 comments on commit a68b796

Please sign in to comment.