]> git.parisson.com Git - clone-me.git/commitdiff
fix id cut
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Tue, 27 May 2025 10:28:48 +0000 (12:28 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Tue, 27 May 2025 10:28:48 +0000 (12:28 +0200)
tc_clone_nuc_nv_efi.sh
tc_clone_nuc_sda_efi.sh

index ec0c2373518cc28aae57393fa61ee6ebdbbf1949..0d5a96273460d070304e80e6ef8a9b20864fbf00 100755 (executable)
@@ -126,7 +126,7 @@ echo "UUID=$swap_uuid    none    swap    sw    0       0" >> $CLONE/etc/fstab
 echo "RESUME=UUID=$swap_uuid" > $CLONE/etc/initramfs-tools/conf.d/resume
 
 echo $ID > $CLONE/etc/hostname
-echo $ID | cut -d "-" -f 1 > $CLONE/etc/tc-id
+echo $ID | cut -d "-" -f 2 > $CLONE/etc/tc-id
 
 # CHROOT
 mount --bind /sys $CLONE/sys
index fc9552d869c9f1c15bbb7f49b43082c674c371db..cde0c4cbd4e0e9297567c9eb8b38f45496c583eb 100755 (executable)
@@ -120,7 +120,7 @@ echo "UUID=$swap_uuid    none    swap    sw    0       0" >> $CLONE/etc/fstab
 echo "RESUME=UUID=$swap_uuid" > $CLONE/etc/initramfs-tools/conf.d/resume
 
 echo $ID > $CLONE/etc/hostname
-echo $ID | cut -d "-" -f 1 > $CLONE/etc/tc-id
+echo $ID | cut -d "-" -f 2 > $CLONE/etc/tc-id
 
 # CHROOT
 mount --bind /sys $CLONE/sys