From 5dc7bbd2ab9c30812e33a60a367193a0881c3ad3 Mon Sep 17 00:00:00 2001 From: Oliver Grawert Date: Wed, 29 Oct 2014 16:45:54 +0100 Subject: [PATCH] make diff not exit 1 when comparing password files --- debian/changelog | 6 ++++++ live-build/ubuntu-touch/hooks/99zz-check-uid-gid.chroot | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index 52e1e886..54d24f57 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +livecd-rootfs (2.261) UNRELEASED; urgency=medium + + * make diff not exit 1 if we show the diff for passwd, shadow, group etc + + -- Oliver Grawert Wed, 29 Oct 2014 16:44:25 +0100 + livecd-rootfs (2.260) vivid; urgency=medium * properly redirect error output in 99zz-check-uid-gid.chroot so it ends up diff --git a/live-build/ubuntu-touch/hooks/99zz-check-uid-gid.chroot b/live-build/ubuntu-touch/hooks/99zz-check-uid-gid.chroot index 89232918..6e202855 100755 --- a/live-build/ubuntu-touch/hooks/99zz-check-uid-gid.chroot +++ b/live-build/ubuntu-touch/hooks/99zz-check-uid-gid.chroot @@ -15,26 +15,26 @@ gshadow_orig_length=$(cat /etc/gshadow.orig | wc -l) if [ "$passwd_hash" != "$passwd_orig_hash" ]; then echo "/etc/passwd has changed during setup." >&2 echo "The new /etc/passwd md5sum is: $passwd_hash" >&2 - diff -Nrup /etc/passwd.orig /etc/passwd >&2 + diff -Nrup /etc/passwd.orig /etc/passwd >&2 || true ERRCNT=1 fi if [ "$shadow_hash" != "$shadow_orig_hash" ]; then echo "/etc/shadow has changed during setup." >&2 echo "The new /etc/shadow md5sum is: $shadow_hash" >&2 - diff -Nrup /etc/shadow.orig /etc/shadow >&2 + diff -Nrup /etc/shadow.orig /etc/shadow >&2 || true ERRCNT=1 fi if [ "$group_length" != "$group_orig_length" ]; then echo "/etc/group has changed during setup." >&2 - diff -Nrup /etc/group.orig /etc/group >&2 + diff -Nrup /etc/group.orig /etc/group >&2 || true ERRCNT=1 fi if [ "$gshadow_length" != "$gshadow_orig_length" ]; then echo "/etc/gshadow has changed during setup." >&2 - diff -Nrup /etc/gshadow.orig /etc/gshadow >&2 + diff -Nrup /etc/gshadow.orig /etc/gshadow >&2 || true ERRCNT=1 fi