From b5d9afbce78003556c9ef88c95bba3e3440abb44 Mon Sep 17 00:00:00 2001 From: Martin Thomas Date: Fri, 9 Feb 2024 14:17:30 +0100 Subject: add means to write nvme and mmcblk devices Signed-off-by: Martin Thomas --- scripts/install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/install.sh b/scripts/install.sh index a549ae23d..867a4154f 100755 --- a/scripts/install.sh +++ b/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 -- cgit v1.2.3