diff options
author | Martin Thomas <m.thomas@infodas.de> | 2024-02-09 14:17:30 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2024-02-09 18:34:18 +0100 |
commit | b5d9afbce78003556c9ef88c95bba3e3440abb44 (patch) | |
tree | 5f5c2bdae31315e2908cea9a67d52ccb21779dc9 /scripts | |
parent | 49b63d5125cc7615caf773a6634a04e425b81af2 (diff) |
add means to write nvme and mmcblk devices
Signed-off-by: Martin Thomas <m.thomas@infodas.de>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/install.sh | 8 |
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 |