[projects/pld-builder.new] Getting unknown filesystem type 'rootfs', so use bind method

arekm arekm at pld-linux.org
Mon Jul 3 08:35:53 CEST 2023


commit 972dae7174c73d45d03f8ad060d6093e2ceac432
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Jul 3 07:12:38 2023 +0200

    Getting unknown filesystem type 'rootfs', so use bind method

 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 4b1eccf..f64ec6c 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 -f -t rootfs rootfs /
+        [ -z $(awk '$2 == "/" {print $1; exit}' /etc/mtab) ] && mount -o bind / /
 
         # 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/972dae7174c73d45d03f8ad060d6093e2ceac432



More information about the pld-cvs-commit mailing list