summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpawelz2010-02-26 17:09:55 (GMT)
committerpawelz2010-02-26 17:09:55 (GMT)
commit49e7169654568c673f8dc3c1a804b1000eb8f626 (patch)
treebb2a496b29e46507c9ae17a6e9350addca74fcb4
parentf7fc2117f5a41e3d3f3893756568d7153c85f96e (diff)
downloadcleanbuild-49e7169654568c673f8dc3c1a804b1000eb8f626.zip
cleanbuild-49e7169654568c673f8dc3c1a804b1000eb8f626.tar.gz
- make sure, that /dev, /sys and proc are marked as %_netsharedpath.
- added comment why we need to create these dirs manually. svn-id: @11187
-rwxr-xr-xcleanbuild4
-rw-r--r--poldekconf/poldek.conf3
2 files changed, 6 insertions, 1 deletions
diff --git a/cleanbuild b/cleanbuild
index 2e8244c..2a4ab1a 100755
--- a/cleanbuild
+++ b/cleanbuild
@@ -265,7 +265,9 @@ build_prepare_root()
poldek -O "ignore=$IGNORE" -u rpm-build pwdutils coreutils
for DIR in dev proc sys; do
- mkdir -p $CHDIR/$DIR
+ # We need to create these directories manually, because they are marked
+ # as netsharedpath in cleanbuild poldek.conf
+ mkdir $CHDIR/$DIR
mount -o bind /$DIR $CHDIR/$DIR
done
diff --git a/poldekconf/poldek.conf b/poldekconf/poldek.conf
index c35bc56..d8f3713 100644
--- a/poldekconf/poldek.conf
+++ b/poldekconf/poldek.conf
@@ -118,3 +118,6 @@ suggests = no
# Taking into account package Conflicts.
#conflicts = yes
+
+# We don't want to mess in directories binded from host system
+rpmdef = _netsharedpath /dev:/proc:/sys