centos8‘grub.cfg

Bug #1859572 reported by magnate
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
Confirmed
Undecided
Unassigned

Bug Description

when I finish the ironic qcow2 image based on centos8 or redhat8,the image can not start because initrd fails to switch root。in fact, root should be recogized by label .
 I look at the grub.cfg and find that root is recogized by uuid in switch processes。
 so I slove the problem 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

magnate (magnate)
description: updated
description: updated
magnate (magnate)
Changed in diskimage-builder:
status: New → Confirmed
magnate (magnate)
description: updated
description: updated
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.