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
f00578bcfa
commit
b9feafee73
1 changed files with 4 additions and 3 deletions
|
@ -274,7 +274,6 @@ autoprepare() {
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
# reread partitiontable for kernel
|
# reread partitiontable for kernel
|
||||||
DIALOG --infobox "Waiting 15 seconds for ${DEVICE} to initialize ..." 0 0
|
|
||||||
partprobe "${DEVICE}"
|
partprobe "${DEVICE}"
|
||||||
printk on
|
printk on
|
||||||
## wait until /dev initialized correct devices
|
## wait until /dev initialized correct devices
|
||||||
|
@ -309,8 +308,10 @@ autoprepare() {
|
||||||
for fsspec in ${FSSPECS}; do
|
for fsspec in ${FSSPECS}; do
|
||||||
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 controller: Uses /dev/nvme0n1pX name scheme
|
# Add check on nvme or mmc controller: Uses /dev/nvme0n1pX name scheme
|
||||||
echo "${DEVICE}" | grep -q "nvme" && PART="${DEVICE}p$(echo "${fsspec}" | tr -d ' ' | cut -f1 -d:)"
|
if echo "${DEVICE}" | grep -q "nvme" || echo "${DEVICE}" | grep -q "mmc"
|
||||||
|
PART="${DEVICE}p$(echo "${fsspec}" | tr -d ' ' | cut -f1 -d:)"
|
||||||
|
fi
|
||||||
MP="$(echo "${fsspec}" | tr -d ' ' | cut -f2 -d:)"
|
MP="$(echo "${fsspec}" | tr -d ' ' | cut -f2 -d:)"
|
||||||
FSTYPE="$(echo "${fsspec}" | tr -d ' ' | cut -f3 -d:)"
|
FSTYPE="$(echo "${fsspec}" | tr -d ' ' | cut -f3 -d:)"
|
||||||
FS_OPTIONS="$(echo "${fsspec}" | tr -d ' ' | cut -f4 -d:)"
|
FS_OPTIONS="$(echo "${fsspec}" | tr -d ' ' | cut -f4 -d:)"
|
||||||
|
|
Loading…
Reference in a new issue