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

refactor: add support for Gentoo and Slackware package management in Tailscale setup

+16 -1
+16 -1
crates/firecracker-vm/src/tailscale.rs
··· 27 27 run_ssh_command(&key_path, &guest_ip, "apk add openrc")?; 28 28 } 29 29 30 + if config.gentoo.unwrap_or(false) { 31 + run_ssh_command(&key_path, &guest_ip, "emerge --sync")?; 32 + run_ssh_command(&key_path, &guest_ip, "emerge net-misc/curl")?; 33 + } 34 + 35 + if config.slackware.unwrap_or(false) { 36 + // run_ssh_command(&key_path, &guest_ip, "slackpkg update")?; 37 + run_ssh_command( 38 + &key_path, 39 + &guest_ip, 40 + "yes | slackpkg install nghttp2 brotli zstd libidn2 libpsl cyrus-sasl perl", 41 + )?; 42 + run_ssh_command(&key_path, &guest_ip, "update-ca-certificates --fresh")?; 43 + } 44 + 30 45 run_ssh_command( 31 46 &key_path, 32 47 &guest_ip, 33 48 "type tailscaled || curl -fsSL https://tailscale.com/install.sh | sh", 34 49 )?; 35 50 36 - if config.alpine.unwrap_or(false) { 51 + if config.alpine.unwrap_or(false) || config.slackware.unwrap_or(false) { 37 52 run_ssh_command( 38 53 &key_path, 39 54 &guest_ip,