From c0b650bebb020dd096d277eb81f073080dc432ed Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Wed, 4 Dec 2019 17:18:14 +0100 Subject: [PATCH] Simplified the pipeline which obtains the partition device files --- xorriso-dd-target/xorriso-dd-target | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xorriso-dd-target/xorriso-dd-target b/xorriso-dd-target/xorriso-dd-target index b9e351d7..85d2b4cd 100755 --- a/xorriso-dd-target/xorriso-dd-target +++ b/xorriso-dd-target/xorriso-dd-target @@ -519,8 +519,9 @@ list_devices() { ## Puts list of mounted (sub-)devices of $1 into $mounted_devs list_mounted_of() { - partitions=$("$lsblk_cmd" -n -p -o NAME /dev/"$1" | grep -v '^'/dev/"$1"'$' \ - | sed -e 's/[^a-zA-Z0-9_+@:.,/-]//g' | tr '\n\r' ' ') + partitions=$("$lsblk_cmd" -l -n -p -o NAME /dev/"$1" \ + | grep -v '^'/dev/"$1"'$' \ + | tr '\n\r' ' ') mounted_devs= for i in /dev/"$1" $partitions do