EOS-25693-new: Support Bundle generation is not creating and collecting data for m0reportbug-traces.
Fix : If /proc/sysrq-trigger is mounted as ro then return.
@@ -418,6 +418,10 @@ _path_rpm() {
case $name in
m0d|m0trace|m0tracedump) echo "/usr/bin/$name";;
+ m0cp) echo "/usr/bin/$name";;
+ m0client) echo "/usr/bin/$name";;
+ m0touch) echo "/usr/bin/$name";;
+ m0cat) echo "/usr/bin/$name";;
m0mkfs) echo "/usr/sbin/$name";;
m0addb2dump) echo "/usr/sbin/$name";;
m0beck|m0betool) echo "/usr/sbin/$name";;
@@ -699,6 +703,13 @@ sysrq_info() {
[t]='show-task-states'
[m]='show-memory-usage'
)
+
+ local fs_access=$(cat /proc/mounts | grep /proc/sysrq-trigger | awk '{print substr($4,1,2)}')
+ if [[ "ro" == "$fs_access" ]] ; then
+ warn "/proc/sysrq-trigger is read-only. Won't be able to collect system information."
+ return 0
+ fi
+
local old_sysrq=$(sysctl --values kernel.sysrq)
# unmask all sysrq functions
