Crashed A CentOS 8 Installation.

Home » CentOS » Crashed A CentOS 8 Installation.
CentOS 4 Comments

Hi,

Note: Please do this on a test VM.

My issue:

I took the output of the following command

$ yum list installed | xargs -n3 | column -t | tail -n +3 |cut -d’ ‘ -f1 >
packages.list

from a CentOS 7.7 Installation.

and did

$ dnf install $(cat packages.list) –setopt=strict=0

on Freshly installed Minimal CentOS 8 VM.

When I reboot I get

Failed to switch root: Specified switch root path /sysroot does not seem to be an OS tree. os-release file is missing.

What am I doing wrong?

packages.list attached

thanks

4 thoughts on - Crashed A CentOS 8 Installation.

  • Tested, and yes, this happens after a reboot, grub2 isn’t giving the initrd a root disk to switch to.

    I had to edit the grub.cfg and add a single line, set default_kernelopts=”…”

    (using what was GRUB_CMDLINE_LINUX= was set in /etc/default/grub)

    I’m not exactly sure which package that was installed that caused this.

  • Create a snapshot of clean VM and divide that list in 10 pieces and install them one at the time and reboot afterwards. If VM boots, create another snapshot. When it fails, reverse to previous snaphot and divide that segment into 5-10 smaller pieces, rinse and repeat.

  • Hi,

    The mistake was EFI.

    The source CentOS 7.7 machine was EFI boot.

    and the destination CentOS 8 VM was non EFI.

    Made a VM snapshot and wrote a script to install the packages one by one and reboot each time.

    The VM crashed at

    grub2-efi-x64.x86_64

    thanks.