File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ usage: $PGM sdN {-v|--verbose} {-f|--force-initialize} {-f2}
98
98
{-L|--label-partitions label} {-l|--leave-sd-usb-boot}
99
99
{-a|--all-sync} {-F|--Force-sync} {-x} {-V|--version}
100
100
{--convert-fstab-to-partuuid}
101
+ {--exclude=PATTERN} {--exclude-from=FILE}
101
102
102
103
-v - verbose rsync, list all files as they are copied.
103
104
-f - force initialize the destination disk by imaging the booted disk
@@ -290,6 +291,7 @@ rsync_file_system()
290
291
if [ " $3 " == " with-root-excludes" ]
291
292
then
292
293
rsync $rsync_options --delete \
294
+ $exclude_useropt \
293
295
$exclude_swapfile \
294
296
--exclude ' .gvfs' \
295
297
--exclude ' /dev/*' \
@@ -303,6 +305,7 @@ rsync_file_system()
303
305
$dst_dir
304
306
else
305
307
rsync $rsync_options --delete \
308
+ $exclude_useropt \
306
309
--exclude ' .gvfs' \
307
310
--exclude ' lost\+found/*' \
308
311
$src_dir \
783
786
quiet=1
784
787
rsync_options=${rsync_options} q
785
788
;;
789
+ --exclude=* |--exclude-from=* )
790
+ exclude_useropt=" ${exclude_useropt} $1 "
791
+ ;;
786
792
-s|--setup)
787
793
shift
788
794
if ! command -v $setup_command > /dev/null
You can’t perform that action at this time.
0 commit comments