Browse Source

add means to write nvme and mmcblk devices

Signed-off-by: Martin Thomas <m.thomas@infodas.de>
Martin Thomas 2 months ago
parent
commit
b5d9afbce7
1 changed files with 7 additions and 1 deletions
  1. 7 1
      scripts/install.sh

+ 7 - 1
scripts/install.sh

@@ -221,7 +221,13 @@ case $ostype {
 	;;
 (Linux)
 	basedev=$tgt
-	partitionsep=""
+
+	if [[ "$tgt" == *"nvme0n1"* ]] || [[ "$tgt" == *"mmcblk"* ]]; then
+	  partitionsep="p"
+	else
+	  partitionsep=""
+	fi
+
 	if [[ $basedev = /dev/loop* ]]; then
 		(( quiet )) || print "${tgt} is a loop device"
 		partitionsep=p