4ce1091f8de9c10d8f7d73306b5fb0e5a526a1c1
3 IFS
=',' read -r -a OPTIONS
< <(findmnt
--json / | jq
-r '.[][0]["options"]')
5 for OPTION
in "${OPTIONS[@]}" ; do
6 if [[ "${OPTION}" == "ro" ]] ; then
12 if [[ "${RO}" == "0" ]] ; then
13 echo "'/' is mounted read-only, rebooting"
This page took 0.031463 seconds and 5 git commands to generate.