Skip to content

Commit 8974424

Browse files
committed
Issue billw2#123: Errors with NVMe on Compute Module 4.
1 parent 07f536e commit 8974424

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rpi-clone

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ get_src_disk()
573573
partition=${1#/dev/}
574574
disk=${partition:: -1}
575575
num="${partition: -1}"
576-
if [[ $disk == *"mmcblk"* ]]
576+
if [[ $disk == *"mmcblk"* || $disk == *"nvme"* ]]
577577
then
578578
SD_slot_boot=1
579579
disk=${disk:0:7}
@@ -1059,7 +1059,7 @@ dst_part_base=$dst_disk
10591059

10601060
if [[ ${chk_disk: -1} =~ ^[0-9]$ ]]
10611061
then
1062-
if [[ $dst_disk == *"mmcblk"* ]]
1062+
if [[ $dst_disk == *"mmcblk"* || $dst_disk == *"nvme"* ]]
10631063
then
10641064
SD_slot_dst=1
10651065
dst_part_base=${dst_disk}p

0 commit comments

Comments
 (0)