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

fix installer script

+24 -2
+24 -2
install.sh
··· 104 105 $SUDO cp $HOME/.firecracker/release-${VERSION}-${ARCH}/snapshot-editor /usr/local/bin/snapshot-editor 106 107 detect_os 108 109 RELEASE_URL="https://api.github.com/repos/tsirysndr/fireup/releases/latest" 110 111 - DOWNLOAD_URL=$(curl -sSL "$RELEASE_URL" | grep -o "browser_download_url.*fireup-.*$ASSET_NAME\"" | cut -d ' ' -f 2) 112 113 DOWNLOAD_URL=`echo $DOWNLOAD_URL | tr -d '\"'` 114 ··· 145 You can now run the following command to start using Fireup: 146 ${CYAN}fireup${NO_COLOR} 147 148 - EOF
··· 104 105 $SUDO cp $HOME/.firecracker/release-${VERSION}-${ARCH}/snapshot-editor /usr/local/bin/snapshot-editor 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 + 129 detect_os 130 131 RELEASE_URL="https://api.github.com/repos/tsirysndr/fireup/releases/latest" 132 133 + DOWNLOAD_URL=$(curl -sSL "$RELEASE_URL" | grep -o "browser_download_url.*fireup_.*$ASSET_NAME\"" | cut -d ' ' -f 2) 134 135 DOWNLOAD_URL=`echo $DOWNLOAD_URL | tr -d '\"'` 136 ··· 167 You can now run the following command to start using Fireup: 168 ${CYAN}fireup${NO_COLOR} 169 170 + EOF