From 2d8bb769c17dc0d7d186be304a5f4f517ff1e310 Mon Sep 17 00:00:00 2001 From: "Gerd v. Egidy" Date: Sun, 24 Jul 2022 19:13:47 +0200 Subject: [PATCH] use /sys/class/block instead of /sys/block in mountall to get all partitions --- airootfs/usr/share/sysrescue/bin/mountall | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airootfs/usr/share/sysrescue/bin/mountall b/airootfs/usr/share/sysrescue/bin/mountall index f62d317..21b04f1 100755 --- a/airootfs/usr/share/sysrescue/bin/mountall +++ b/airootfs/usr/share/sysrescue/bin/mountall @@ -225,9 +225,9 @@ try_mount() parse_args "$@" # loop through regular block devices -for BLKDEV in $(ls -1 "/sys/block"); do +for BLKDEV in $(ls -1 "/sys/class/block"); do # handle device mapper / lvm volumes in the 2nd loop for nice names - [[ -d "/sys/block/${BLKDEV}/dm" ]] && continue + [[ -d "/sys/class/block/${BLKDEV}/dm" ]] && continue if is_mountable "/dev/${BLKDEV}"; then try_mount "/dev/${BLKDEV}"