mirror of
https://github.com/nchevsky/systemrescue-zfs.git
synced 2026-03-03 19:43:49 +01:00
use /sys/class/block instead of /sys/block in mountall to get all partitions
This commit is contained in:
parent
c0a1af428a
commit
2d8bb769c1
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue