Skip to content

Commit 74eb6a7

Browse files
Use previously retrieved destination root FS label
Now labels are retrieved for all destination partitions, there is no longer any point in separately retrieving the destination root label, just use the previously retrieved label.
1 parent 06abdd4 commit 74eb6a7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

rpi-clone

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1766,12 +1766,7 @@ fi
17661766

17671767
rm -f $clone/etc/udev/rules.d/70-persistent-net.rules
17681768

1769-
dst_root_vol_name=`e2label $dst_root_dev`
1770-
1771-
if [ "$dst_root_vol_name" = "" ]
1772-
then
1773-
dst_root_vol_name="no label"
1774-
fi
1769+
dst_root_vol_name=${dst_label[$root_part_num]}
17751770

17761771
if ((have_grub))
17771772
then

0 commit comments

Comments
 (0)