Skip to content

Commit 6e869a5

Browse files
committed
Fixed bookworm issue billw2#168
1 parent fff1e04 commit 6e869a5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

rpi-clone

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ qecho()
224224
echo "$@"
225225
fi
226226
}
227-
227+
228228
qprintf()
229229
{
230230
if ((!quiet))
@@ -971,7 +971,7 @@ then
971971
cp $fstab_tmp $fstab
972972
printf "Your original fstab is backed up to $fstab_save\n"
973973

974-
cmdline_txt=/boot/cmdline.txt
974+
cmdline_txt=$(realpath /boot/cmdline.txt)
975975
cmdline_save=$cmdline_txt.${PGM}-save
976976
if [ -f $cmdline_txt ] && grep -q "$src_root_dev" $cmdline_txt
977977
then
@@ -1338,7 +1338,7 @@ Use -U for unattended even if initializing.
13381338

13391339
readable_MiB $((last_part_sectors + 7812)) "512" image_space_readable
13401340

1341-
echo "== Initialize: IMAGE partition table - $reason =="
1341+
echo "== Initialize: IMAGE partition table - $reason =="
13421342
print_image_actions
13431343
print_options
13441344

@@ -1530,7 +1530,7 @@ Use -U for unattended even if initializing.
15301530
else
15311531
src_sync_part[p]=1
15321532
fi
1533-
fi
1533+
fi
15341534
else
15351535
printf " => dd if=${src_device[$p]} of=$dst_dev bs=1M ..."
15361536
dd if=${src_device[$p]} of=$dst_dev bs=1M &>> /tmp/$PGM-output
@@ -1730,7 +1730,7 @@ qecho ""
17301730
# Fix PARTUUID or device name references in cmdline.txt and fstab
17311731
#
17321732
fstab=${clone}/etc/fstab
1733-
cmdline_txt=${clone}/boot/cmdline.txt
1733+
cmdline_txt=$(realpath ${clone}/boot/cmdline.txt)
17341734

17351735
if [ -f $cmdline_txt ]
17361736
then
@@ -1814,7 +1814,7 @@ qprintf " Start - %s End - %s Elapsed Time - %d:%02d\n" \
18141814
if ((!unattended))
18151815
then
18161816
echo -n $"
1817-
Cloned partitions are mounted on $clone for inspection or customizing.
1817+
Cloned partitions are mounted on $clone for inspection or customizing.
18181818
18191819
Hit Enter when ready to unmount the /dev/$dst_disk partitions ..."
18201820

0 commit comments

Comments
 (0)