mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-06-15 04:47:00 +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
|
else
|
||||||
echo " ✗ update-initramfs failed (system still boots; re-run manually)"
|
echo " ✗ update-initramfs failed (system still boots; re-run manually)"
|
||||||
fi
|
fi
|
||||||
|
if command -v proxmox-boot-tool >/dev/null 2>&1; then
|
||||||
|
proxmox-boot-tool refresh 2>&1 | tail -3 || true
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "Skipping update-initramfs (restore didn't touch modules/initramfs-tools/crypttab)"
|
echo "Skipping update-initramfs (restore didn't touch modules/initramfs-tools/crypttab)"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1070,6 +1070,7 @@ run_nvidia_installer() {
|
|||||||
if [[ "${NOUVEAU_STILL_LOADED:-false}" == "true" ]]; then
|
if [[ "${NOUVEAU_STILL_LOADED:-false}" == "true" ]]; then
|
||||||
msg_info "$(translate 'Rebuilding initramfs to apply nouveau blacklist before installation...')"
|
msg_info "$(translate 'Rebuilding initramfs to apply nouveau blacklist before installation...')"
|
||||||
update-initramfs -u -k all >>"$LOG_FILE" 2>&1 || true
|
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
|
# Try one more time to unload nouveau after initramfs rebuild
|
||||||
modprobe -r nouveau 2>/dev/null || true
|
modprobe -r nouveau 2>/dev/null || true
|
||||||
sleep 1
|
sleep 1
|
||||||
@@ -1524,6 +1525,7 @@ main() {
|
|||||||
|
|
||||||
msg_info "$(translate 'Updating initramfs for all kernels...')"
|
msg_info "$(translate 'Updating initramfs for all kernels...')"
|
||||||
update-initramfs -u -k all >>"$LOG_FILE" 2>&1 || true
|
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_ok "$(translate 'initramfs updated.')"
|
||||||
|
|
||||||
msg_info2 "$(translate 'Checking NVIDIA driver status with nvidia-smi')"
|
msg_info2 "$(translate 'Checking NVIDIA driver status with nvidia-smi')"
|
||||||
@@ -1566,6 +1568,7 @@ main() {
|
|||||||
|
|
||||||
msg_info "$(translate 'Updating initramfs for all kernels...')"
|
msg_info "$(translate 'Updating initramfs for all kernels...')"
|
||||||
update-initramfs -u -k all >>"$LOG_FILE" 2>&1 || true
|
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_ok "$(translate 'initramfs updated.')"
|
||||||
|
|
||||||
restart_prompt
|
restart_prompt
|
||||||
|
|||||||
@@ -1214,6 +1214,7 @@ switch_to_vm_mode() {
|
|||||||
if [[ "$HOST_CONFIG_CHANGED" == "true" ]]; then
|
if [[ "$HOST_CONFIG_CHANGED" == "true" ]]; then
|
||||||
msg_info "$(translate 'Updating initramfs (this may take a minute)...')"
|
msg_info "$(translate 'Updating initramfs (this may take a minute)...')"
|
||||||
update-initramfs -u -k all >>"$LOG_FILE" 2>&1
|
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"
|
msg_ok "$(translate 'initramfs updated')" | tee -a "$screen_capture"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -1285,6 +1286,7 @@ switch_to_lxc_mode() {
|
|||||||
if [[ "$HOST_CONFIG_CHANGED" == "true" ]]; then
|
if [[ "$HOST_CONFIG_CHANGED" == "true" ]]; then
|
||||||
msg_info "$(translate 'Updating initramfs (this may take a minute)...')"
|
msg_info "$(translate 'Updating initramfs (this may take a minute)...')"
|
||||||
update-initramfs -u -k all >>"$LOG_FILE" 2>&1
|
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"
|
msg_ok "$(translate 'initramfs updated')" | tee -a "$screen_capture"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1040,6 +1040,7 @@ switch_to_vm_mode() {
|
|||||||
if [[ "$HOST_CONFIG_CHANGED" == "true" ]]; then
|
if [[ "$HOST_CONFIG_CHANGED" == "true" ]]; then
|
||||||
msg_info "$(translate 'Updating initramfs (this may take a minute)...')"
|
msg_info "$(translate 'Updating initramfs (this may take a minute)...')"
|
||||||
update-initramfs -u -k all >>"$LOG_FILE" 2>&1
|
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"
|
msg_ok "$(translate 'initramfs updated')" | tee -a "$screen_capture"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -1111,6 +1112,7 @@ switch_to_lxc_mode() {
|
|||||||
if [[ "$HOST_CONFIG_CHANGED" == "true" ]]; then
|
if [[ "$HOST_CONFIG_CHANGED" == "true" ]]; then
|
||||||
msg_info "$(translate 'Updating initramfs (this may take a minute)...')"
|
msg_info "$(translate 'Updating initramfs (this may take a minute)...')"
|
||||||
update-initramfs -u -k all >>"$LOG_FILE" 2>&1
|
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"
|
msg_ok "$(translate 'initramfs updated')" | tee -a "$screen_capture"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ RETURN_SCRIPT="$LOCAL_SCRIPTS/menus/menu_post_install.sh"
|
|||||||
BASE_DIR="/usr/local/share/proxmenux"
|
BASE_DIR="/usr/local/share/proxmenux"
|
||||||
UTILS_FILE="$BASE_DIR/utils.sh"
|
UTILS_FILE="$BASE_DIR/utils.sh"
|
||||||
TOOLS_JSON="$BASE_DIR/installed_tools.json"
|
TOOLS_JSON="$BASE_DIR/installed_tools.json"
|
||||||
VENV_PATH="/opt/googletrans-env"
|
|
||||||
|
|
||||||
if [[ -f "$UTILS_FILE" ]]; then
|
if [[ -f "$UTILS_FILE" ]]; then
|
||||||
source "$UTILS_FILE"
|
source "$UTILS_FILE"
|
||||||
@@ -642,6 +641,7 @@ uninstall_vfio_iommu() {
|
|||||||
msg_info "$(translate 'Updating initramfs (this may take a minute)...')"
|
msg_info "$(translate 'Updating initramfs (this may take a minute)...')"
|
||||||
|
|
||||||
update-initramfs -u -k all >/dev/null 2>&1 || true
|
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")"
|
msg_ok "$(translate "IOMMU/VFIO configuration reverted")"
|
||||||
register_tool "vfio_iommu" false
|
register_tool "vfio_iommu" false
|
||||||
@@ -718,6 +718,7 @@ uninstall_amd_fixes() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
update-initramfs -u -k all >/dev/null 2>&1 || true
|
update-initramfs -u -k all >/dev/null 2>&1 || true
|
||||||
|
proxmox-boot-tool refresh >/dev/null 2>&1 || true
|
||||||
else
|
else
|
||||||
msg_ok "$(translate "KVM MSR options not present, nothing to revert")"
|
msg_ok "$(translate "KVM MSR options not present, nothing to revert")"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user