mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
installer: careful when trying to handle emmc devices
This commit is contained in:
parent
4063daaef4
commit
3b3a2fcb94
@ -72,7 +72,11 @@ get_device_unmount() {
|
||||
DEVICES=""
|
||||
DEVICES=$(parted -s -m -l | grep -E '^/dev/sd|^/dev/mmcblk' | grep -E -v '.?rpmb|.?boot?' | cut -f1 -d ":")
|
||||
|
||||
for i in $(cat /proc/mounts | grep -E '^/dev/sd|^/dev/mmcblk' | 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||")
|
||||
done
|
||||
|
||||
for i in $(cat /proc/mounts | grep -E '^/dev/mmcblk' | cut -f1 -d " " | sed "s/p.*$//"); do
|
||||
DEVICES=$(echo $DEVICES |sed -e "s|$i||")
|
||||
done
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user