Commit 4f229bab authored by intrigeri's avatar intrigeri Committed by Cyril Brulebois
Browse files

Add more debug output (refs: #15419).

parent b19084e6
......@@ -4,14 +4,18 @@ set -e
echo "Checking UIDs and GIDs stability"
for file in passwd group; do
if ! cmp "/usr/share/tails/build/${file}" "/etc/${file}"; then
echo "/etc/${file} differs from expected:" >&2
diff -Naur "/usr/share/tails/build/${file}" "/etc/${file}" >&2
echo "If these changes are innocuous, update " \
"config/chroot_local-includes/usr/share/tails/build/${file}." \
>&2
if ! cmp "/usr/share/tails/build/passwd" "/etc/passwd" \
|| ! cmp "/usr/share/tails/build/group" "/etc/group" ; then
echo "/etc/passwd and/or /etc/group differs from expected:" >&2
for file in passwd group; do
diff -Naur "/usr/share/tails/build/${file}" "/etc/${file}" >&2 || :
echo >&2
echo "See #15407 and #13426 for more context." >&2
fi
done
echo "Content of '/etc/${file}':" >&2
cat "/etc/${file}" >&2
echo >&2
done
echo "If these changes are innocuous, update these files in" \
"config/chroot_local-includes/usr/share/tails/build/." >&2
echo "See #15407 and #13426 for more context." >&2
exit 1
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment