[Reproducible-commits] [misc] 02/03: Skip disorderfs hook if device can't be created

Reiner Herrmann reiner at reiner-h.de
Fri Feb 19 21:35:58 UTC 2016


This is an automated email from the git hooks/post-receive script.

deki-guest pushed a commit to branch master
in repository misc.

commit 077f975806f95e6fd68428e603088d2e7a4d5bfa
Author: Reiner Herrmann <reiner at reiner-h.de>
Date:   Fri Feb 19 21:55:11 2016 +0100

    Skip disorderfs hook if device can't be created
---
 prebuilder/pbuilderhooks/D03_disorderfs | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/prebuilder/pbuilderhooks/D03_disorderfs b/prebuilder/pbuilderhooks/D03_disorderfs
index 298e6dc..bfd4dc0 100755
--- a/prebuilder/pbuilderhooks/D03_disorderfs
+++ b/prebuilder/pbuilderhooks/D03_disorderfs
@@ -5,7 +5,10 @@ set -e
 [ -x /usr/bin/disorderfs ] || exit 0
 
 echo -n "I: Mounting "$BUILDDIR" as disorderfs…" >&2
-mknod -m 666 /dev/fuse c 10 229
+mknod -m 666 /dev/fuse c 10 229 || {
+    echo -n " skipping (can't create device)."
+    exit 0
+}
 mv "$BUILDDIR" /tmp/disorderfs
 mkdir "$BUILDDIR"
 disorderfs --shuffle-dirents=yes --multi-user=yes /tmp/disorderfs "$BUILDDIR"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/misc.git



More information about the Reproducible-commits mailing list