@@ -224,7 +224,7 @@ qecho()
224
224
echo " $@ "
225
225
fi
226
226
}
227
-
227
+
228
228
qprintf ()
229
229
{
230
230
if (( ! quiet))
971
971
cp $fstab_tmp $fstab
972
972
printf " Your original fstab is backed up to $fstab_save \n"
973
973
974
- cmdline_txt=/boot/cmdline.txt
974
+ cmdline_txt=$( realpath /boot/cmdline.txt)
975
975
cmdline_save=$cmdline_txt .${PGM} -save
976
976
if [ -f $cmdline_txt ] && grep -q " $src_root_dev " $cmdline_txt
977
977
then
@@ -1338,7 +1338,7 @@ Use -U for unattended even if initializing.
1338
1338
1339
1339
readable_MiB $(( last_part_sectors + 7812 )) " 512" image_space_readable
1340
1340
1341
- echo " == Initialize: IMAGE partition table - $reason =="
1341
+ echo " == Initialize: IMAGE partition table - $reason =="
1342
1342
print_image_actions
1343
1343
print_options
1344
1344
@@ -1530,7 +1530,7 @@ Use -U for unattended even if initializing.
1530
1530
else
1531
1531
src_sync_part[p]=1
1532
1532
fi
1533
- fi
1533
+ fi
1534
1534
else
1535
1535
printf " => dd if=${src_device[$p]} of=$dst_dev bs=1M ..."
1536
1536
dd if=${src_device[$p]} of=$dst_dev bs=1M & >> /tmp/$PGM -output
@@ -1730,7 +1730,7 @@ qecho ""
1730
1730
# Fix PARTUUID or device name references in cmdline.txt and fstab
1731
1731
#
1732
1732
fstab=${clone} /etc/fstab
1733
- cmdline_txt=${clone} /boot/cmdline.txt
1733
+ cmdline_txt=$( realpath $ {clone} /boot/cmdline.txt)
1734
1734
1735
1735
if [ -f $cmdline_txt ]
1736
1736
then
@@ -1814,7 +1814,7 @@ qprintf " Start - %s End - %s Elapsed Time - %d:%02d\n" \
1814
1814
if (( ! unattended))
1815
1815
then
1816
1816
echo -n $"
1817
- Cloned partitions are mounted on $clone for inspection or customizing.
1817
+ Cloned partitions are mounted on $clone for inspection or customizing.
1818
1818
1819
1819
Hit Enter when ready to unmount the /dev/$dst_disk partitions ..."
1820
1820
0 commit comments