Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts/forensic-mark-readonly: fix parent device handling + their us…
…age via READONLY_IGNORE With commit 31e81f4 the parent device behavior was modified in an unintended way: /dev/sda1 was set to read-only, even if the underlying parent device /dev/sda was already set to r/w. Fixed via proper quoting and invoking readlink on the /sys/... directory from within the calculation of ${tmp_parent}. Also support parent devices within the READONLY_IGNORE=... setting in /etc/grml/forensic.conf, so it's possible to assign READONLY_IGNORE='/dev/sda' and operate on e.g. /dev/sda1, expecting to ignore /dev/sda1 as well as /dev/sda then. This work was funded by Grml-Forensic. (Internally recorded as release-planning issue #175.)
- Loading branch information