[projects/pld-builder.new] Bind mount needs to be done earlier (otherwise it covers proc, sys etc), so moving to host fstab
arekm
arekm at pld-linux.org
Mon Jul 3 08:47:47 CEST 2023
commit d8fd36cc6031f9025e571058f512dad112af3aaa
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Jul 3 07:25:39 2023 +0200
Bind mount needs to be done earlier (otherwise it covers proc, sys etc), so moving to host fstab
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 f64ec6c..361ccf7 100644
--- a/PLD_Builder/rpm_builder.py
+++ b/PLD_Builder/rpm_builder.py
@@ -155,7 +155,7 @@ def prepare_env(logfile = None):
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; exit}' /etc/mtab) ] && mount -o bind / /
+ [ -z $(awk '$2 == "/" {print $1; exit}' /etc/mtab) ] && echo "Missing rootfs entry in /etc/mtab"
# 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/d8fd36cc6031f9025e571058f512dad112af3aaa
More information about the pld-cvs-commit
mailing list