[root@controller ~]# cd /usr/src/
[root@controller src]# fdisk -l crtefi15g-20190112.img
Disk crtefi15g-20190112.img: 15.7 GB, 15728640000 bytes, 30720000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x55654248
Device Boot Start End Blocks Id System
crtefi15g-20190112.img1 2048 6143 2048 ef EFI (FAT-12/16/32)
crtefi15g-20190112.img2 * 6144 329727 161792 83 Linux
crtefi15g-20190112.img3 329728 29689855 14680064 8e Linux LVM
[root@controller src]# mount -oloop,offset=1048576 crtefi15g-20190112.img /mnt/efi [root@controller src]# mount -oloop,offset=3145728 crtefi15g-20190112.img /mnt/boot
[root@controller src]# sed -i 's/hd0,0/hd0,1/g' /mnt/efi/EFI/BOOT/BOOTX64.conf [root@controller src]# sed -i 's/hd0,0/hd0,1/g' /mnt/boot/grub/grub.conf
[root@controller src]# umount /mnt/{efi,boot}