@@ -192,26 +192,25 @@ write_archive_info() {
192192}
193193
194194patch_osbuild () {
195- return # No patches at this time
196- # # Add a few patches that either haven't made it into a release or
197- # # that will be obsoleted with other work that will be done soon.
198- # #
199- # # To make it easier to apply patches we'll move around the osbuild
200- # # code on the system first:
201- # rmdir /usr/lib/osbuild/osbuild
202- # python_lib_dir=$(ls -d /usr/lib/python*)
203- # mv ${python_lib_dir}/site-packages/osbuild /usr/lib/osbuild/
204- # mkdir -p /usr/lib/osbuild/tools
205- # mv /usr/bin/osbuild-mpp /usr/lib/osbuild/tools/
206- # # Now all the software is under the /usr/lib/osbuild dir and we can patch
207- # cat \
208- # /usr/lib/coreos-assembler/0001.patch \
209- # | patch -d /usr/lib/osbuild -p1
210- # # And then move the files back; supermin appliance creation will need it back
211- # # in the places delivered by the RPM.
212- # mv /usr/lib/osbuild/tools/osbuild-mpp /usr/bin/osbuild-mpp
213- # mv /usr/lib/osbuild/osbuild ${python_lib_dir}/site-packages/osbuild
214- # mkdir -p /usr/lib/osbuild/osbuild
195+ # Add a few patches that either haven't made it into a release or
196+ # that will be obsoleted with other work that will be done soon.
197+ #
198+ # To make it easier to apply patches we'll move around the osbuild
199+ # code on the system first:
200+ rmdir /usr/lib/osbuild/osbuild
201+ python_lib_dir=$( ls -d /usr/lib/python* )
202+ mv ${python_lib_dir} /site-packages/osbuild /usr/lib/osbuild/
203+ mkdir -p /usr/lib/osbuild/tools
204+ mv /usr/bin/osbuild-mpp /usr/lib/osbuild/tools/
205+ # Now all the software is under the /usr/lib/osbuild dir and we can patch
206+ cat \
207+ /usr/lib/coreos-assembler/0001-stages-mkfs.xfs-support-setting-agcount.patch \
208+ | patch -d /usr/lib/osbuild -p1
209+ # And then move the files back; supermin appliance creation will need it back
210+ # in the places delivered by the RPM.
211+ mv /usr/lib/osbuild/tools/osbuild-mpp /usr/bin/osbuild-mpp
212+ mv /usr/lib/osbuild/osbuild ${python_lib_dir} /site-packages/osbuild
213+ mkdir -p /usr/lib/osbuild/osbuild
215214}
216215
217216if [ $# -ne 0 ]; then
0 commit comments