I am trying to send you a showcase
Give me some time - I can't promise if this is helping...
You need to adopt parts of it.
Code:
[root@sysrescue ~]# cat /proc/partitions
major minor #blocks name
8 0 209715200 sda
8 1 209584111 sda1
8 14 3072 sda14
8 15 126976 sda15
11 0 873472 sr0
11 1 4096 sr1
7 0 785932 loop0
[root@sysrescue ~]# mkdir -p /media/RESCUE
[root@sysrescue ~]# mount /dev/sda1 /media/RESCUE
# you might need to do "something something" here
# my testmox system only has one sda1 - I don't need this :)
#### [root@sysrescue ~]# mount /dev/sda1 /media/RESCUE/boot
[root@sysrescue ~]# mount -t proc proc /media/RESCUE/proc
[root@sysrescue ~]# mount -t sysfs sys /media/RESCUE/sys
[root@sysrescue ~]# mount -o bind /dev /media/RESCUE/dev
[root@sysrescue ~]# mount -o bind /run /media/RESCUE/run
# jump in chroot
[root@sysrescue ~]# chroot /media/RESCUE
# validate that we have somethinghere
# we need /boot stuff
root@sysrescue:/# ls /boot
config-6.5.13-5-pve grub pve vmlinuz-6.5.13-5-pve
config-6.8.4-2-pve initrd.img-6.5.13-5-pve System.map-6.5.13-5-pve vmlinuz-6.8.4-2-pve
efi initrd.img-6.8.4-2-pve System.map-6.8.4-2-pve
# we need stuff in /etc that is plausible
root@sysrescue:/# cat /etc/hostname
testmox.something.lan
# something in /bin must also be present
root@sysrescue:/# ls /bin | wc -l
1681
root@sysrescue:/# proxmox-boot-tool kernel list
Manually selected kernels:
None.
Automatically selected kernels:
6.5.13-5-pve
6.8.4-2-pve
# pinning 6.5
root@sysrescue:/# proxmox-boot-tool kernel pin 6.5.13-5-pve
Setting '6.5.13-5-pve' as grub default entry and running update-grub.
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.4-2-pve
Found initrd image: /boot/initrd.img-6.8.4-2-pve
Found linux image: /boot/vmlinuz-6.5.13-5-pve
Found initrd image: /boot/initrd.img-6.5.13-5-pve
done
root@sysrescue:/# exit
[root@sysrescue ~]# reboot