From: Michael Prokop Date: Fri, 11 Sep 2020 18:14:37 +0000 (+0200) Subject: scripts/forensic-mark-readonly: fix parent device handling + their usage via READONLY... X-Git-Tag: v0.5.1~1 X-Git-Url: https://git.grml.org/?a=commitdiff_plain;ds=sidebyside;h=451331668643dd76d51d53c8ca44069561f86d1d;hp=451331668643dd76d51d53c8ca44069561f86d1d;p=grml-udev-config.git scripts/forensic-mark-readonly: fix parent device handling + their usage via READONLY_IGNORE With commit 31e81f4ab5 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.) ---