From 866d2f44bde8d4043a0daf8655abe03e3ad6f40f Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 29 Jan 2024 14:47:57 +0100 Subject: [PATCH] fix chroot --- tc_clone_nuc_nv_efi.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tc_clone_nuc_nv_efi.sh b/tc_clone_nuc_nv_efi.sh index 4ff9ca8..604182f 100755 --- a/tc_clone_nuc_nv_efi.sh +++ b/tc_clone_nuc_nv_efi.sh @@ -128,12 +128,12 @@ mount --bind /dev $CLONE/dev mount --bind /dev/pts $CLONE/dev/pts # GRUB EFI -chroot apt install grub-efi -chroot grub-install +chroot $CLONE apt install grub-efi +chroot $CLONE grub-install chroot $CLONE update-initramfs -u chroot $CLONE update-grub -chroot file /boot/efi/EFI/debian/grubx64.efi -chroot efibootmgr --verbose | grep debian +chroot $CLONE file /boot/efi/EFI/debian/grubx64.efi +chroot $CLONE efibootmgr --verbose | grep debian # UMOUNT umount $CLONE/dev/pts -- 2.39.5