]> git.parisson.com Git - clone-me.git/commitdiff
fix disk
authorGuillaume Pellerin <guillaume.pellerin@free.fr>
Tue, 30 Jan 2024 12:20:22 +0000 (13:20 +0100)
committerGuillaume Pellerin <guillaume.pellerin@free.fr>
Tue, 30 Jan 2024 12:20:22 +0000 (13:20 +0100)
tc_clone_nuc_nv_efi.sh
tc_clone_nuc_sda_efi.sh [changed mode: 0644->0755]

index 94d9a47148206872fc57592e611d3f29f1bb9b90..f139b5a8a9f6be6f3c5f629c6f169120661762aa 100755 (executable)
@@ -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
old mode 100644 (file)
new mode 100755 (executable)
index 6f549eb..a3232f5
@@ -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