Commit f9c9b59
committed
scripts/forensic-mark-readonly: Fix properly finding the parent of a device-mapper device
Parent devices of device-mapper devices use a directory named "holders" in
their sysfs block device directory that lists all device-mapper devices
which use that device. This is unlike partition devices of block devices
which have directory directly in the sysfs block device directory. So if
the current device name is not found directly in the sysfs block device
directory, then check the "holders" directory.
Signed-off-by: Glenn Washburn <[email protected]>1 parent c673a40 commit f9c9b59
File tree
1 file changed
+3
-0
lines changed- config/files/GRMLBASE/etc/udev/scripts
1 file changed
+3
-0
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| |||
0 commit comments