defines excludedocs
[build.git] / mkfedora
index b6fe745..9dc3cac 100755 (executable)
--- a/mkfedora
+++ b/mkfedora
@@ -190,20 +190,21 @@ fi
 # Do not tolerate errors
 set -e
 
-# Mount /dev/pts and /dev/shm in reference image
-mount -t devpts none $vroot/dev/pts
-mount -t tmpfs none $vroot/dev/shm
-
-## make rpms ignore installing stuff to /proc
-mkdir -p $vroot/etc/rpm
+## make rpms ignore installing stuff to special fs entries like /proc
 # Because of https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=52725
 # you have to use at least one language beside 'C'
-echo "%_install_langs C:de:en:es:fr" > $vroot/etc/rpm/macros
-echo "%_netsharedpath /proc:/dev/pts" >> $vroot/etc/rpm/macros
-# append to the vserver's rpm macros
-echo "%_install_langs C:de:en:es:fr" > /etc/rpm/macros
-echo "%_netsharedpath /proc:/dev/pts" >> /etc/rpm/macros
-# Mount /proc in reference image
+cat > /etc/rpm/macros <<EOF
+%_install_langs C:de:en:es:fr
+%_netsharedpath /proc:/dev/pts
+%_excludedocs yes
+EOF
+# copy to the vserver's rpm macros
+mkdir -p $vroot/etc/rpm
+cp /etc/rpm/macros $vroot/etc/rpm/macros
+
+# Mount in reference image
+mount -t devpts none $vroot/dev/pts
+mount -t tmpfs none $vroot/dev/shm
 mkdir -p $vroot/proc
 mount -t proc none $vroot/proc