summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMartin Thomas <m.thomas@infodas.de>2024-02-09 14:17:30 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2024-02-09 18:34:18 +0100
commitb5d9afbce78003556c9ef88c95bba3e3440abb44 (patch)
tree5f5c2bdae31315e2908cea9a67d52ccb21779dc9 /scripts
parent49b63d5125cc7615caf773a6634a04e425b81af2 (diff)
add means to write nvme and mmcblk devices
Signed-off-by: Martin Thomas <m.thomas@infodas.de>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install.sh8
1 files changed, 7 insertions, 1 deletions
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