mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 12:00:37 +02:00
fix mmc on autoprepare
This commit is contained in:
parent
b9feafee73
commit
c900c1f7f9
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ autoprepare() {
|
||||||
DOMKFS="yes"
|
DOMKFS="yes"
|
||||||
PART="${DEVICE}$(echo "${fsspec}" | tr -d ' ' | cut -f1 -d:)"
|
PART="${DEVICE}$(echo "${fsspec}" | tr -d ' ' | cut -f1 -d:)"
|
||||||
# Add check on nvme or mmc controller: Uses /dev/nvme0n1pX name scheme
|
# Add check on nvme or mmc controller: Uses /dev/nvme0n1pX name scheme
|
||||||
if echo "${DEVICE}" | grep -q "nvme" || echo "${DEVICE}" | grep -q "mmc"
|
if echo "${DEVICE}" | grep -q "nvme" || echo "${DEVICE}" | grep -q "mmc"; then
|
||||||
PART="${DEVICE}p$(echo "${fsspec}" | tr -d ' ' | cut -f1 -d:)"
|
PART="${DEVICE}p$(echo "${fsspec}" | tr -d ' ' | cut -f1 -d:)"
|
||||||
fi
|
fi
|
||||||
MP="$(echo "${fsspec}" | tr -d ' ' | cut -f2 -d:)"
|
MP="$(echo "${fsspec}" | tr -d ' ' | cut -f2 -d:)"
|
||||||
|
|
Loading…
Reference in a new issue