Skip to content

Commit 628e542

Browse files
fixup! Refactor cmdline.txt with more variables
1 parent 4ac8fad commit 628e542

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rpi-clone

+1-1
Original file line numberDiff line numberDiff line change
@@ -1812,7 +1812,7 @@ then
18121812
if grep -q "$src_disk_ID" "${clone}${cmdline_txt}"
18131813
then
18141814
qecho "Editing $cmdline_txt PARTUUID to use $dst_disk_ID"
1815-
sed -i "s/${src_disk_ID}/${dst_disk_ID}/" "$cmdline_txt"
1815+
sed -i "s/${src_disk_ID}/${dst_disk_ID}/" "${clone}${cmdline_txt}"
18161816
elif [ "${src_fsuuid[root_part_num]}" != "" ] && grep -q "${src_fsuuid[root_part_num]}" "${clone}${cmdline_txt}"
18171817
then
18181818
new_fsuuid=${dst_fsuuid[root_part_num]}

0 commit comments

Comments
 (0)