summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hook-functions5
1 files changed, 5 insertions, 0 deletions
diff --git a/hook-functions b/hook-functions
index 0863122..6a68910 100644
--- a/hook-functions
+++ b/hook-functions
@@ -278,6 +278,11 @@ dep_add_modules()
elif [ "${root#/dev/ida/}" != "${root}" ]; then
block=${root#/dev/ida/*}
block="ida!${block%p*}"
+ # loop root /dev/loopX
+ elif [ "${root#/dev/loop}" != "${root}" ]; then
+ root=${root#/dev/}
+ block=$(losetup -a \
+ | awk "/${root}/{print substr(\$3, 7, 3); exit}")
# classical root device
else
block=${root#/dev/}