Prepare, configure, and manage Firecracker microVMs in seconds!
virtualization linux microvm firecracker

fix installer script

+24 -2
+24 -2
install.sh
··· 104 104 105 105 $SUDO cp $HOME/.firecracker/release-${VERSION}-${ARCH}/snapshot-editor /usr/local/bin/snapshot-editor 106 106 107 + 108 + function detect_os() { 109 + # Determine the operating system 110 + OS=$(uname -s) 111 + if [ "$OS" = "Linux" ]; then 112 + # Determine the CPU architecture 113 + ARCH=$(uname -m) 114 + if [ "$ARCH" = "aarch64" ]; then 115 + ASSET_NAME="aarch64-unknown-linux-gnu.tar.gz" 116 + elif [ "$ARCH" = "x86_64" ]; then 117 + ASSET_NAME="_x86_64-unknown-linux-gnu.tar.gz" 118 + else 119 + echo "Unsupported architecture: $ARCH" 120 + exit 1 121 + fi 122 + else 123 + echo "Unsupported operating system: $OS" 124 + echo "This script only supports Linux." 125 + exit 1 126 + fi; 127 + } 128 + 107 129 detect_os 108 130 109 131 RELEASE_URL="https://api.github.com/repos/tsirysndr/fireup/releases/latest" 110 132 111 - DOWNLOAD_URL=$(curl -sSL "$RELEASE_URL" | grep -o "browser_download_url.*fireup-.*$ASSET_NAME\"" | cut -d ' ' -f 2) 133 + DOWNLOAD_URL=$(curl -sSL "$RELEASE_URL" | grep -o "browser_download_url.*fireup_.*$ASSET_NAME\"" | cut -d ' ' -f 2) 112 134 113 135 DOWNLOAD_URL=`echo $DOWNLOAD_URL | tr -d '\"'` 114 136 ··· 145 167 You can now run the following command to start using Fireup: 146 168 ${CYAN}fireup${NO_COLOR} 147 169 148 - EOF 170 + EOF