Comment 0 for bug 1859572

Revision history for this message
magnate (magnate) wrote :

  when I finish the ironic qcow2 image based on centos8,the image can start because initrd fails to switch root。
 I look at the grub.cfg and find that root is recogized by uuid in switch processes。
 so I slove the probelm by following steps:
 qemu-img convert -f qcow2 -O raw centos8-baremetal.qcow2 centos8-baremetal.qcow2
 losetup -f # result: /dev/loop0
 losetup /dev/loop0 centos8-baremetal.raw
 kpartx -av /dev/loop0
 ls -l /dev/mapper/loop0p*
 mount /dev/mapper/loop0p1 /mnt
 edit grub.cfg:
  root=LABEL=cloudimg-rootfs
  not
  root=uuid=fbfd1e91-049d-449f-9a56-c351d5823103