mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-06-14 20:36:59 +00:00
update 1.2.2.2 beta
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user