update 1.2.2.2 beta

This commit is contained in:
MacRimi
2026-06-12 20:05:17 +02:00
parent 761357b737
commit 6e1e47d9fd
5 changed files with 12 additions and 1 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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