[projects/pld-builder.new] handle cases for multiple "/" mounts
glen
glen at pld-linux.org
Thu Oct 18 00:21:10 CEST 2012
commit 4a8b119a1dec13fed6194c0f23950a57e795cea3
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Oct 18 01:21:06 2012 +0300
handle cases for multiple "/" mounts
PLD_Builder/rpm_builder.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/PLD_Builder/rpm_builder.py b/PLD_Builder/rpm_builder.py
index e42c085..c41fbc3 100644
--- a/PLD_Builder/rpm_builder.py
+++ b/PLD_Builder/rpm_builder.py
@@ -145,7 +145,7 @@ def prepare_env():
test ! -c /dev/zero && rm -f /dev/zero && mknod -m 666 /dev/zero c 1 5
# need entry for "/" in mtab, for diskspace() to work in rpm
- [ -z $(awk '$2 == "/" {print $1}' /etc/mtab) ] && mount -f -t rootfs rootfs /
+ [ -z $(awk '$2 == "/" {print $1; exit}' /etc/mtab) ] && mount -f -t rootfs rootfs /
# make neccessary files readable for builder user
# TODO: see if they really aren't readable for builder
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/4a8b119a1dec13fed6194c0f23950a57e795cea3
More information about the pld-cvs-commit
mailing list