Recover from panic screen - dcasota/photonos-scripts GitHub Wiki

During some Ph5 make builds a panic screen happened after a reboot.

Here a recipe to process:

  • Boot from a Photon OS install iso.
  • switch to tty2 and log-in with root
  • Phase 1: execute the following commands. Assuming /dev/sda3 is the boot and root partition.
    fsck -f /dev/sda3
    mkdir /mnt2
    mount /dev/sda3 /mnt2
    mount --bind /dev /mnt2/dev
    mount --bind /proc /mnt2/proc
    mount --bind /sys /mnt2/sys
    mount --bind /run /mnt2/run
    chroot /mnt2 /bin/bash
    
  • Phase 2: execute now the following commands.
    tdnf install grub2-pc
    tdnf update -y
    dracut -f --regenerate-all
    grub2-mkconfig -o /boot/grub/grub.cfg
    exit
    
  • Phase 3: execute now the following commands.
    cd /
    umount  /mnt2/{dev,proc,sys,run}
    umount /mnt2
    reboot -f
    

With this, the recover should have been processed.