# Prevent all locales from being installed in reference image
mkdir -p %{installroot}/etc/rpm
-cat > %{installroot}/etc/rpm/macros <<EOF
-%_install_langs en_US:en
-%_excludedocs 1
-EOF
+(
+echo "%_install_langs en_US:en"
+echo "%_excludedocs 1"
+echo "%__file_context_path /dev/null"
+) > %{installroot}/etc/rpm/macros
# Initialize RPM database in reference image
mkdir -p %{installroot}/var/lib/rpm
--installroot=%{installroot} \
-y groupinstall VServer
+# Freshen any new RPMs
+find %{_topdir}/RPMS -type f | xargs rpm --root %{installroot} -F
+
# Clean up /dev in reference image
MAKEDEV