From 74cb4e3752be2dabf3ba172599e0184a341a0d1e Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 30 Jan 2024 13:20:22 +0100 Subject: [PATCH] fix disk --- tc_clone_nuc_nv_efi.sh | 2 +- tc_clone_nuc_sda_efi.sh | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) mode change 100644 => 100755 tc_clone_nuc_sda_efi.sh diff --git a/tc_clone_nuc_nv_efi.sh b/tc_clone_nuc_nv_efi.sh index 94d9a47..f139b5a 100755 --- a/tc_clone_nuc_nv_efi.sh +++ b/tc_clone_nuc_nv_efi.sh @@ -130,7 +130,7 @@ mount --bind /dev/pts $CLONE/dev/pts # GRUB EFI mount -t efivarfs none $CLONE/sys/firmware/efi/efivars chroot $CLONE apt install grub-efi -chroot $CLONE grub-install $DISK +chroot $CLONE grub-install /dev/$DISK chroot $CLONE update-initramfs -u chroot $CLONE update-grub chroot $CLONE file /boot/efi/EFI/debian/grubx64.efi diff --git a/tc_clone_nuc_sda_efi.sh b/tc_clone_nuc_sda_efi.sh old mode 100644 new mode 100755 index 6f549eb..a3232f5 --- a/tc_clone_nuc_sda_efi.sh +++ b/tc_clone_nuc_sda_efi.sh @@ -7,12 +7,12 @@ OPTIND=1 # Reset in case getopts has been used previously in the shell. ROOT="/" FS_TYPE="ext4" -DISK=/dev/sda -EFI_PART="/dev/sda1" -ROOT_PART="/dev/sda2" -VAR_PART="/dev/sda3" -SWAP_PART="/dev/sda4" -HOME_PART="/dev/sda5" +DISK=sda +EFI_PART="sda1" +ROOT_PART="sda2" +VAR_PART="sda3" +SWAP_PART="sda4" +HOME_PART="sda5" while getopts m:i:p:r:s:d:f flag do @@ -130,7 +130,7 @@ mount --bind /dev/pts $CLONE/dev/pts # GRUB EFI mount -t efivarfs none $CLONE/sys/firmware/efi/efivars chroot $CLONE apt install grub-efi -chroot $CLONE grub-install $DISK +chroot $CLONE grub-install /dev/$DISK chroot $CLONE update-initramfs -u chroot $CLONE update-grub chroot $CLONE file /boot/efi/EFI/debian/grubx64.efi -- 2.39.5