Skip to content

Commit 0f0e299

Browse files
committed
Remove -b from findmnt command. Wheezy's findmnt does not have it.
1 parent 24f1d5f commit 0f0e299

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rpi-clone

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
version=2.0.16
3+
version=2.0.17
44

55
# auto run grub-install if grub detected
66
grub_auto=1
@@ -525,7 +525,7 @@ src_disk_size=$(echo "$src_partition_table" \
525525
line=$(fdisk -l /dev/$src_disk | grep "Disk identifier:")
526526
src_disk_ID=${line#*x}
527527

528-
src_mount_table=$(findmnt -o source,target -n -l -b \
528+
src_mount_table=$(findmnt -o source,target -n -l \
529529
| grep -e "^/dev/$src_disk" -e "^$src_root_dev" | tr -s " ")
530530
n_mounts=$(echo "$src_mount_table" | wc -l)
531531

@@ -923,7 +923,7 @@ dst_disk_size=$(echo "$dst_partition_table" \
923923
| grep "^/dev/$dst_disk" | cut -d ":" -f 2 | tr -d 's')
924924
dst_root_dev=/dev/${dst_part_base}${root_part_num}
925925

926-
dst_mount_table=$(findmnt -o source,target -n -l -b \
926+
dst_mount_table=$(findmnt -o source,target -n -l \
927927
| grep "^/dev/$dst_disk" | tr -s " ")
928928

929929
dst_fdisk_table=$(fdisk -l /dev/$dst_disk | grep "^/dev/")

0 commit comments

Comments
 (0)