Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

build-and-flash-initramfs: add apt/Ubuntu package auto-install

The oven runs Ubuntu, not Fedora. Added apt-get support for
auto-installing missing packages (wpasupplicant, busybox-static,
isc-dhcp-client, iw, alsa-utils, linux-firmware, etc.)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+22
+22
fedac/native/scripts/build-and-flash-initramfs.sh
··· 95 95 log "Installing missing packages:${PKGS_NEEDED}" 96 96 sudo dnf install -y ${PKGS_NEEDED} || err "Failed to install packages" 97 97 fi 98 + elif command -v apt-get &>/dev/null; then 99 + PKGS_NEEDED="" 100 + command -v cpio &>/dev/null || PKGS_NEEDED="${PKGS_NEEDED} cpio" 101 + command -v lz4 &>/dev/null || PKGS_NEEDED="${PKGS_NEEDED} lz4" 102 + command -v bc &>/dev/null || PKGS_NEEDED="${PKGS_NEEDED} bc" 103 + command -v perl &>/dev/null || PKGS_NEEDED="${PKGS_NEEDED} perl" 104 + command -v make &>/dev/null || PKGS_NEEDED="${PKGS_NEEDED} make" 105 + command -v curl &>/dev/null || PKGS_NEEDED="${PKGS_NEEDED} curl" 106 + command -v jq &>/dev/null || PKGS_NEEDED="${PKGS_NEEDED} jq" 107 + command -v wpa_supplicant &>/dev/null || PKGS_NEEDED="${PKGS_NEEDED} wpasupplicant" 108 + command -v dhclient &>/dev/null || PKGS_NEEDED="${PKGS_NEEDED} isc-dhcp-client" 109 + command -v iw &>/dev/null || PKGS_NEEDED="${PKGS_NEEDED} iw" 110 + command -v busybox &>/dev/null || PKGS_NEEDED="${PKGS_NEEDED} busybox-static" 111 + command -v git &>/dev/null || PKGS_NEEDED="${PKGS_NEEDED} git" 112 + [ -d /usr/share/alsa ] || PKGS_NEEDED="${PKGS_NEEDED} alsa-utils" 113 + [ -f /lib/firmware/regulatory.db ] 2>/dev/null || PKGS_NEEDED="${PKGS_NEEDED} wireless-regdb" 114 + ls /lib/firmware/iwlwifi-* &>/dev/null 2>&1 || PKGS_NEEDED="${PKGS_NEEDED} linux-firmware" 115 + if [ -n "${PKGS_NEEDED}" ]; then 116 + log "Installing missing packages (apt):${PKGS_NEEDED}" 117 + sudo apt-get update -qq 2>/dev/null || true 118 + sudo apt-get install -y -qq ${PKGS_NEEDED} 2>&1 | tail -3 || err "Failed to install packages" 119 + fi 98 120 fi 99 121 100 122 MISSING=""