File: ro-sys

package info (click to toggle)
xchpst 0.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 304 kB
  • sloc: ansic: 2,792; sh: 75; makefile: 47
file content (9 lines) | stat: -rwxr-xr-x 229 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
#!/bin/sh

set -e

d=$AUTOPKGTEST_TMP

xchpst --user-ns --mount-ns --ro-sys findmnt --raw -oTARGET,OPTIONS > $d/mounts
grep -E '^(/usr|/boot|/boot/efi) ' $d/mounts > $d/interesting
grep -E '[ ,]rw[,$]' $d/interesting >&2 || true