File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 10
10
# This updated code is located in a fork of Bill Wilson's git repository
11
11
# at https://github.com/geerlingguy/rpi-clone
12
12
13
- version=2.0.23-1
13
+ version=2.0.25
14
14
15
+ # prefix debug statements with line numbers when -x is used
15
16
declare -r PS4=' |${LINENO}> \011${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
16
17
17
- echo " @@@ rpi5 branch version from framp @@@"
18
- echo
19
-
20
18
# setup trusted paths for dependancies (like rsync, grub, fdisk, etc)
21
19
export PATH=" /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
22
20
@@ -297,8 +295,11 @@ rsync_file_system()
297
295
src_dir=" $1 "
298
296
dst_dir=" $2 "
299
297
300
- qprintf " => lsblk $( lsblk ) \n "
298
+ qprintf " => rsync $1 $2 $3 ... "
301
299
300
+ # make sure the partition is mounted
301
+ # sometimes it happens on RPi5 /boot is no longer mounted and then
302
+ # the cloned boot partition will be empty
302
303
if ! findmnt " $src_dir " & > /dev/null; then
303
304
if ! mount " $src_dir " ; then
304
305
echo " ??? Remount failure of $1 ."
@@ -309,8 +310,6 @@ rsync_file_system()
309
310
fi
310
311
fi
311
312
312
- qprintf " => rsync $1 $2 $3 ..."
313
-
314
313
if [ " $3 " == " with-root-excludes" ]
315
314
then
316
315
rsync $rsync_options --delete \
You can’t perform that action at this time.
0 commit comments