Skip to content

Commit ee05c6e

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 3449797 commit ee05c6e

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
@@ -1769,12 +1769,7 @@ fi
17691769

17701770
rm -f $clone/etc/udev/rules.d/70-persistent-net.rules
17711771

1772-
dst_root_vol_name=`e2label $dst_root_dev`
1773-
1774-
if [ "$dst_root_vol_name" = "" ]
1775-
then
1776-
dst_root_vol_name="no label"
1777-
fi
1772+
dst_root_vol_name=${dst_label[$root_part_num]}
17781773

17791774
if ((have_grub))
17801775
then

0 commit comments

Comments
 (0)