mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
Merge pull request #7393 from mglae/le11_installer-pmbr_boot
installer: fix device detection with pmbr_boot flag set
This commit is contained in:
commit
b4af1398e3
@ -78,7 +78,7 @@ get_device_unmount() {
|
|||||||
# provides: DEVICES
|
# provides: DEVICES
|
||||||
|
|
||||||
DEVICES=""
|
DEVICES=""
|
||||||
DEVICES=$(parted -s -m -l 2>/dev/null | grep -E '^/dev/sd|^/dev/mmcblk|^/dev/nvme' | grep -E -v '.?rpmb|.?boot?' | cut -f1 -d ":")
|
DEVICES=$(parted -s -m -l 2>/dev/null | grep -E '^/dev/sd|^/dev/mmcblk|^/dev/nvme' | grep -E -v '^[^:]*rpmb|^[^:]*boot' | cut -f1 -d ":")
|
||||||
|
|
||||||
for i in $(cat /proc/mounts | grep -E '^/dev/sd' | cut -f1 -d " " | sed "s/[0-9].*$//"); do
|
for i in $(cat /proc/mounts | grep -E '^/dev/sd' | cut -f1 -d " " | sed "s/[0-9].*$//"); do
|
||||||
DEVICES=$(echo $DEVICES | sed -e "s|$i||")
|
DEVICES=$(echo $DEVICES | sed -e "s|$i||")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user