File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
## rpi-clone
2
- Latest version: 2.0.21
2
+ Latest version: 2.0.22
3
3
4
4
Version 2 is a complete rewrite with improved capability over
5
5
the original. See the examples below.
@@ -111,6 +111,7 @@ usage: sys-clone sdN {-v|--verbose} {-f|--force-initialize} {-f2}
111
111
{-L|--label-partitions label} {-l|--leave-sd-usb-boot}
112
112
{-a|--all-sync} {-F|--Force-sync} {-x} {-V|--version}
113
113
{--convert-fstab-to-partuuid}
114
+ {--exclude=PATTERN} {--exclude-from=FILE}
114
115
115
116
-v - verbose rsync, list all files as they are copied.
116
117
-f - force initialize the destination disk by imaging the booted disk
@@ -137,8 +138,8 @@ usage: sys-clone sdN {-v|--verbose} {-f|--force-initialize} {-f2}
137
138
the custom list will be synced instead of the default of all
138
139
mounted directories. The root directory is always synced.
139
140
Not for when initializing.
140
- -L lbl - label for ext type partitions. If 'lbl' ends with # , replace
141
- the # with a partition number and label all ext partitions.
141
+ -L lbl - label for ext type partitions. If 'lbl' ends with '#' , replace
142
+ the '#' with a partition number and label all ext partitions.
142
143
Otherwise apply label to root partition only.
143
144
-l - leave SD card to USB boot alone when cloning to SD card mmcblk0
144
145
from a USB boot. This preserves a SD card to USB boot setup
Original file line number Diff line number Diff line change 8
8
# https://github.com/billw2/rpi-clone
9
9
10
10
11
- version=2.0.21
11
+ version=2.0.22
12
12
13
13
# auto run grub-install if grub detected
14
14
grub_auto=1
@@ -583,8 +583,8 @@ get_src_disk()
583
583
584
584
# ==== source (booted) disk info and default mount list
585
585
#
586
- src_boot_dev=` findmnt /boot -o source -n`
587
- src_root_dev=` findmnt / -o source -n`
586
+ src_boot_dev=` findmnt /boot -o source -n | grep " /dev/ " `
587
+ src_root_dev=` findmnt / -o source -n | grep " /dev/ " `
588
588
SD_slot_boot=0
589
589
SD_slot_dst=0
590
590
src_part_base=" "
You can’t perform that action at this time.
0 commit comments