test-switchroot.sh: Exclude /proc from file list
Since we're not interested in any file inside /proc, exclude it from the file listing in our fake root thus avoiding failures when processes die during our execution and find(1) can't then look inside those directories. Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
This commit is contained in:
parent
b9a95afacc
commit
f6867358e2
|
|
@ -56,7 +56,7 @@ find_in_env() {
|
|||
"$1" "$tmpdir"
|
||||
enter_fs "$tmpdir"
|
||||
ostree-prepare-root /sysroot
|
||||
find /
|
||||
find / \( -path /proc -o -path /sysroot/proc \) -prune -o -print
|
||||
touch /usr/usr_writable 2>/null \
|
||||
&& echo "/usr is writable" \
|
||||
|| echo "/usr is not writable"
|
||||
|
|
|
|||
Loading…
Reference in New Issue