Fix the issue that proxmox-ve can not boot after install in grub2 mode.

This commit is contained in:
longpanda
2026-07-24 20:53:12 +08:00
parent 40895a09f6
commit 5903c8bf52
2 changed files with 25 additions and 0 deletions
+5
View File
@@ -17,5 +17,10 @@
#
#************************************************************************************
if $GREP -q 'rdinit=/vtoy/vtoy' /proc/cmdline; then
echo "fix rdinit" >> $VTLOG
$SED "/switch_root.*\/mnt\/.installer-mp/i\ sh $VTOY_PATH/hook/debian/pve-wa.sh /mnt/.installer-mp/sbin/unconfigured.sh" -i /init
fi
$SED "/\/sys\/block\/hd\*/i\ $BUSYBOX_PATH/sh $VTOY_PATH/hook/debian/pve-disk.sh" -i /init
$SED "s#/sys/block/hd\*#/sys/block/dm* /sys/block/hd*#" -i /init