From 6e1e47d9fdac6bb4631bff1bd6e4c5fdc3437ab8 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Fri, 12 Jun 2026 20:05:17 +0200 Subject: [PATCH] update 1.2.2.2 beta --- scripts/backup_restore/apply_cluster_postboot.sh | 3 +++ scripts/gpu_tpu/nvidia_installer.sh | 3 +++ scripts/gpu_tpu/switch_gpu_mode.sh | 2 ++ scripts/gpu_tpu/switch_gpu_mode_direct.sh | 2 ++ scripts/post_install/uninstall-tools.sh | 3 ++- 5 files changed, 12 insertions(+), 1 deletion(-) diff --git a/scripts/backup_restore/apply_cluster_postboot.sh b/scripts/backup_restore/apply_cluster_postboot.sh index f2d9a139..ac3238f7 100755 --- a/scripts/backup_restore/apply_cluster_postboot.sh +++ b/scripts/backup_restore/apply_cluster_postboot.sh @@ -288,6 +288,9 @@ if [[ "$NEEDS_INITRAMFS" == "1" ]] && command -v update-initramfs >/dev/null 2>& else echo " ✗ update-initramfs failed (system still boots; re-run manually)" fi + if command -v proxmox-boot-tool >/dev/null 2>&1; then + proxmox-boot-tool refresh 2>&1 | tail -3 || true + fi else echo "Skipping update-initramfs (restore didn't touch modules/initramfs-tools/crypttab)" fi diff --git a/scripts/gpu_tpu/nvidia_installer.sh b/scripts/gpu_tpu/nvidia_installer.sh index a2ecba07..e0ff8e58 100644 --- a/scripts/gpu_tpu/nvidia_installer.sh +++ b/scripts/gpu_tpu/nvidia_installer.sh @@ -1070,6 +1070,7 @@ run_nvidia_installer() { if [[ "${NOUVEAU_STILL_LOADED:-false}" == "true" ]]; then msg_info "$(translate 'Rebuilding initramfs to apply nouveau blacklist before installation...')" update-initramfs -u -k all >>"$LOG_FILE" 2>&1 || true + proxmox-boot-tool refresh >>"$LOG_FILE" 2>&1 || true # Try one more time to unload nouveau after initramfs rebuild modprobe -r nouveau 2>/dev/null || true sleep 1 @@ -1524,6 +1525,7 @@ main() { msg_info "$(translate 'Updating initramfs for all kernels...')" update-initramfs -u -k all >>"$LOG_FILE" 2>&1 || true + proxmox-boot-tool refresh >>"$LOG_FILE" 2>&1 || true msg_ok "$(translate 'initramfs updated.')" msg_info2 "$(translate 'Checking NVIDIA driver status with nvidia-smi')" @@ -1566,6 +1568,7 @@ main() { msg_info "$(translate 'Updating initramfs for all kernels...')" update-initramfs -u -k all >>"$LOG_FILE" 2>&1 || true + proxmox-boot-tool refresh >>"$LOG_FILE" 2>&1 || true msg_ok "$(translate 'initramfs updated.')" restart_prompt diff --git a/scripts/gpu_tpu/switch_gpu_mode.sh b/scripts/gpu_tpu/switch_gpu_mode.sh index 15b42fe1..9f719fc0 100644 --- a/scripts/gpu_tpu/switch_gpu_mode.sh +++ b/scripts/gpu_tpu/switch_gpu_mode.sh @@ -1214,6 +1214,7 @@ switch_to_vm_mode() { if [[ "$HOST_CONFIG_CHANGED" == "true" ]]; then msg_info "$(translate 'Updating initramfs (this may take a minute)...')" update-initramfs -u -k all >>"$LOG_FILE" 2>&1 + proxmox-boot-tool refresh >>"$LOG_FILE" 2>&1 || true msg_ok "$(translate 'initramfs updated')" | tee -a "$screen_capture" fi } @@ -1285,6 +1286,7 @@ switch_to_lxc_mode() { if [[ "$HOST_CONFIG_CHANGED" == "true" ]]; then msg_info "$(translate 'Updating initramfs (this may take a minute)...')" update-initramfs -u -k all >>"$LOG_FILE" 2>&1 + proxmox-boot-tool refresh >>"$LOG_FILE" 2>&1 || true msg_ok "$(translate 'initramfs updated')" | tee -a "$screen_capture" fi } diff --git a/scripts/gpu_tpu/switch_gpu_mode_direct.sh b/scripts/gpu_tpu/switch_gpu_mode_direct.sh index b5652d07..e0ef87f7 100644 --- a/scripts/gpu_tpu/switch_gpu_mode_direct.sh +++ b/scripts/gpu_tpu/switch_gpu_mode_direct.sh @@ -1040,6 +1040,7 @@ switch_to_vm_mode() { if [[ "$HOST_CONFIG_CHANGED" == "true" ]]; then msg_info "$(translate 'Updating initramfs (this may take a minute)...')" update-initramfs -u -k all >>"$LOG_FILE" 2>&1 + proxmox-boot-tool refresh >>"$LOG_FILE" 2>&1 || true msg_ok "$(translate 'initramfs updated')" | tee -a "$screen_capture" fi } @@ -1111,6 +1112,7 @@ switch_to_lxc_mode() { if [[ "$HOST_CONFIG_CHANGED" == "true" ]]; then msg_info "$(translate 'Updating initramfs (this may take a minute)...')" update-initramfs -u -k all >>"$LOG_FILE" 2>&1 + proxmox-boot-tool refresh >>"$LOG_FILE" 2>&1 || true msg_ok "$(translate 'initramfs updated')" | tee -a "$screen_capture" fi } diff --git a/scripts/post_install/uninstall-tools.sh b/scripts/post_install/uninstall-tools.sh index 840f5f4a..b59972ac 100644 --- a/scripts/post_install/uninstall-tools.sh +++ b/scripts/post_install/uninstall-tools.sh @@ -30,7 +30,6 @@ RETURN_SCRIPT="$LOCAL_SCRIPTS/menus/menu_post_install.sh" BASE_DIR="/usr/local/share/proxmenux" UTILS_FILE="$BASE_DIR/utils.sh" TOOLS_JSON="$BASE_DIR/installed_tools.json" -VENV_PATH="/opt/googletrans-env" if [[ -f "$UTILS_FILE" ]]; then source "$UTILS_FILE" @@ -642,6 +641,7 @@ uninstall_vfio_iommu() { msg_info "$(translate 'Updating initramfs (this may take a minute)...')" update-initramfs -u -k all >/dev/null 2>&1 || true + proxmox-boot-tool refresh >/dev/null 2>&1 || true msg_ok "$(translate "IOMMU/VFIO configuration reverted")" register_tool "vfio_iommu" false @@ -718,6 +718,7 @@ uninstall_amd_fixes() { fi update-initramfs -u -k all >/dev/null 2>&1 || true + proxmox-boot-tool refresh >/dev/null 2>&1 || true else msg_ok "$(translate "KVM MSR options not present, nothing to revert")" fi