[root@controller src]# losetup -d /dev/loop0
[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]# df -h /mnt/* Filesystem Size Used Avail Use% Mounted on /dev/loop2 150M 1.6M 140M 2% /mnt/boot /dev/loop1 2.0M 0 2.0M 0% /mnt/efi
[root@controller src]# cp -a crtefi/efi/* /mnt/efi/
[root@controller src]# cp -a crtefi/boot/* /mnt/boot/
[root@controller src]# df -h /mnt/{efi,boot}
Filesystem Size Used Avail Use% Mounted on
/dev/loop1 2.0M 264K 1.8M 14% /mnt/efi
/dev/loop2 150M 117M 26M 83% /mnt/boot
[root@controller src]# umount /mnt/{efi,boot}