commit:     bbf98befb86337a36ef5af7f273e503a6de4b9bd
Author:     William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Thu Sep 22 22:22:03 2016 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu Sep 22 22:37:09 2016 +0000

sh/ update test for live /proc to use md5sum

This allows us to avoid the warnings from bash-4.4 about null bytes in
command substitutions.

If you have separate /usr, are not using an initramfs, and have a file
called /proc/self/environ on your root file system, this will break.
X-Gentoo-Bug: 594534

 sh/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sh/ b/sh/
index 344f627..7645775 100644
--- a/sh/
+++ b/sh/
@@ -21,7 +21,7 @@ fi
 if [ -e $f ]; then
-       if [ "$(VAR=a cat $f)" = "$(VAR=b cat $f)" ]; then
+       if [ "$(VAR=a md5sum $f)" = "$(VAR=b md5sum $f)" ]; then
                eerror "You have cruft in /proc that should be deleted"
                einfo "/proc is already mounted"

Reply via email to