mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 15:07:49 +00:00
installer: fix device detection with pmbr_boot flag set
Failing on e.g. "/dev/sda:512GB:scsi:512:512:gpt:ATA Samsung SSD 850:pmbr_boot;" Fixed by only matching the device name when removing rpmb and boot devices RE was added for MMC support in #9d1d032 and removes special MMC areas like /dev/mmcblk0rmpb or /dev/mmcblk0boot1
This commit is contained in:
parent
5f4b4a45a3
commit
fbcae7276b
@ -78,7 +78,7 @@ get_device_unmount() {
|
||||
# provides: 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
|
||||
DEVICES=$(echo $DEVICES | sed -e "s|$i||")
|
||||
|
Loading…
x
Reference in New Issue
Block a user