diff --git a/README.md b/README.md index a573059..f1fafba 100644 --- a/README.md +++ b/README.md @@ -595,14 +595,16 @@ After everything has been installed and preconfigured in the **chrooted** enviro ```shell ( - cd isolinux && \ - dd if=/dev/zero of=efiboot.img bs=1M count=10 && \ - sudo mkfs.vfat efiboot.img && \ - mkdir efi && \ - sudo mount efiboot.img efi && \ - sudo grub-install --efi-directory=efi --uefi-secure-boot --removable --no-nvram && \ - sudo umount efi && \ - rm -rf efi + cd isolinux && \ + dd if=/dev/zero of=efiboot.img bs=1M count=10 && \ + sudo mkfs.vfat efiboot.img && \ + LOOP_DEVICE=`losetup --find --show $PWD/efiboot.img` && \ + mkdir efi && \ + sudo mount $LOOP_DEVICE efi && \ + sudo grub-install --efi-directory=efi --uefi-secure-boot --removable --no-nvram $LOOP_DEVICE && \ + sudo umount $LOOP_DEVICE && \ + sudo losetup --detach $LOOP_DEVICE && \ + rm -rf efi ) ```