forked from weldr/lorax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lorax.spec
451 lines (385 loc) · 19.7 KB
/
lorax.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
# NOTE: This specfile is generated from upstream at https://github.com/rhinstaller/lorax
# NOTE: Please submit changes as a pull request
%define debug_package %{nil}
Name: lorax
Version: 39.1
Release: 1%{?dist}
Summary: Tool for creating the anaconda install images
License: GPL-2.0-or-later
URL: https://github.com/weldr/lorax
# To generate Source0 do:
# git clone https://github.com/weldr/lorax
# git checkout -b archive-branch lorax-%%{version}-%%{release}
# tito build --tgz
Source0: %{name}-%{version}.tar.gz
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: make
BuildRequires: systemd-rpm-macros
Requires: lorax-templates
Requires: cpio
Requires: device-mapper
Requires: dosfstools
Requires: e2fsprogs
Requires: findutils
Requires: gawk
Requires: xorriso
Requires: glib2
Requires: glibc
Requires: glibc-common
Requires: gzip
Requires: isomd5sum
Requires: module-init-tools
Requires: parted
Requires: squashfs-tools >= 4.2
Requires: util-linux
Requires: xz-lzma-compat
Requires: xz
Requires: pigz
Requires: pbzip2
Requires: dracut >= 030
Requires: kpartx
Requires: psmisc
# Python modules
Requires: libselinux-python3
Requires: python3-mako
Requires: python3-kickstart >= 3.19
Requires: python3-dnf >= 3.2.0
Requires: python3-librepo
Requires: python3-pycdio
%if 0%{?fedora}
# Fedora specific deps
%ifarch x86_64
Requires: hfsplus-tools
%endif
%endif
%ifarch x86_64 ppc64le
Requires: grub2
Requires: grub2-tools
%endif
%ifarch s390 s390x
Requires: openssh
Requires: s390utils >= 2.15.0-2
%endif
# Moved image-minimizer tool to lorax
Provides: appliance-tools-minimizer = %{version}-%{release}
Obsoletes: appliance-tools-minimizer < 007.7-3
%description
Lorax is a tool for creating the anaconda install images.
It also includes livemedia-creator which is used to create bootable livemedia,
including live isos and disk images. It can use libvirtd for the install, or
Anaconda's image install feature.
%package docs
Summary: Lorax html documentation
Requires: lorax = %{version}-%{release}
%description docs
Includes the full html documentation for lorax, livemedia-creator, and the pylorax library.
%package lmc-virt
Summary: livemedia-creator libvirt dependencies
Requires: lorax = %{version}-%{release}
Requires: qemu
# Fedora edk2 builds currently only support these arches
%ifarch x86_64 aarch64
Requires: edk2-ovmf
%endif
Recommends: qemu-kvm
%description lmc-virt
Additional dependencies required by livemedia-creator when using it with qemu.
%package lmc-novirt
Summary: livemedia-creator no-virt dependencies
Requires: lorax = %{version}-%{release}
Requires: anaconda-core
Requires: anaconda-tui
Requires: anaconda-install-env-deps
Requires: system-logos
Requires: python3-psutil
%description lmc-novirt
Additional dependencies required by livemedia-creator when using it with --no-virt
to run Anaconda.
%package templates-generic
Summary: Generic build templates for lorax and livemedia-creator
Requires: lorax = %{version}-%{release}
Provides: lorax-templates = %{version}-%{release}
%description templates-generic
Lorax templates for creating the boot.iso and live isos are placed in
/usr/share/lorax/templates.d/99-generic
%prep
%autosetup -p1 -n %{name}-%{version}
%build
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} install
%files
%defattr(-,root,root,-)
%license COPYING
%doc AUTHORS
%doc docs/lorax.rst docs/livemedia-creator.rst docs/product-images.rst
%doc docs/*ks
%{python3_sitelib}/pylorax
%{python3_sitelib}/*.egg-info
%{_sbindir}/lorax
%{_sbindir}/mkefiboot
%{_sbindir}/livemedia-creator
%{_bindir}/mkksiso
%{_bindir}/image-minimizer
%dir %{_sysconfdir}/lorax
%config(noreplace) %{_sysconfdir}/lorax/lorax.conf
%dir %{_datadir}/lorax
%{_mandir}/man1/lorax.1*
%{_mandir}/man1/livemedia-creator.1*
%{_mandir}/man1/mkksiso.1*
%{_mandir}/man1/image-minimizer.1*
%{_tmpfilesdir}/lorax.conf
%files docs
%doc docs/html/*
%files lmc-virt
%files lmc-novirt
%files templates-generic
%dir %{_datadir}/lorax/templates.d
%{_datadir}/lorax/templates.d/*
%changelog
* Wed May 31 2023 Brian C. Lane <[email protected]> 39.1-1
- livemedia-creator: Reorganize the qemu arch patch ([email protected])
- Make sure -machine is passed to qemu ([email protected])
- Only allow UEFI support to be enabled on x86_64 ([email protected])
- Throw an error when KVM is enabled on non-native installs ([email protected])
- docs: Clarify that kickstarts need a part command ([email protected])
- livemedia-creator: Raise an error when no partitions are in the ks ([email protected])
- monitor: Skip repo errors involving CDROM/file source ([email protected])
- logging: Remove duplicate stream logging ([email protected])
- Pass vga=791 for live basic graphics mode on BIOS (#2176782) ([email protected])
- livemedia-creator: Use -cpu host by default, add -cpu option to override ([email protected])
* Tue Mar 14 2023 Brian C. Lane <[email protected]> 39.0-1
- Add setpriv as ostree containers dependency (#2125655) ([email protected])
- livemedia-creator: Do not omit plymouth module from dracut ([email protected])
- New lorax documentation - 39.0 ([email protected])
- workflow: Update list of push branches for workflow tests ([email protected])
- Prepare for version 39.0 release ([email protected])
* Mon Feb 20 2023 Brian C. Lane <[email protected]> 38.7-1
- Don't strip gtk4 binaries or libtiff (#2170716) ([email protected])
- image-minimizer: Use RuntimeError instead of Exception ([email protected])
- creator: Use RuntimeError instead of Exception ([email protected])
- treebuilder: Use RuntimeError instead of Exception ([email protected])
- mount: Use RuntimeError instead of Exception ([email protected])
- ltmpl: Use RuntimeError instead of Exception ([email protected])
- spec: Use autosetup to make patching easier ([email protected])
- Revert "templates.d/99-generic/live: Enable automatic persistence for live media" ([email protected])
- Strip some things from gtk4 ([email protected])
* Tue Feb 14 2023 Brian C. Lane <[email protected]> 38.6-1
- templates.d/99-generic/live: Enable automatic persistence for live media ([email protected])
- Update for Noto CJK Variable Fonts ([email protected])
* Wed Feb 08 2023 Brian C. Lane <[email protected]> 38.5-1
- Fix using --dracut-conf with DracutChroot ([email protected])
- tests: Fix DataHolder for CreatorTest ([email protected])
- runtime-install: Update for
https://fedoraproject.org/wiki/Changes/NotoFontsForMoreLang ([email protected])
- SPDX migration ([email protected])
- rsyslogd.conf: Rewrite using current config syntax ([email protected])
- Add comment for squashfs-only ([email protected])
- runtime-install: exclude some more unneeded firmware packages ([email protected])
- runtime-install: stop excluding bfa-firmware again (retired) ([email protected])
* Mon Dec 12 2022 Brian C. Lane <[email protected]> 38.4-1
- runtime-cleanup: drop old versions of qed firmware ([email protected])
- runtime-cleanup: drop Mediatek SoC firmwares ([email protected])
- runtime-install: drop bfa-firmware ([email protected])
- mkksiso: Disable running mkefiboot in container tests ([email protected])
- mkksiso: Rebuild efiboot.img for UEFI enabled isos ([email protected])
- gitleaks: Add config file to ignore known fake secrets ([email protected])
- fedora-livemedia.ks: Use livesys-scripts ([email protected])
- workflows: Switch to actions/checkout@v3 ([email protected])
* Mon Nov 28 2022 Brian C. Lane <[email protected]> 38.3-1
- Use unicode.pf2 from /usr/share/grub/ ([email protected])
- On ppc64le Use core.elf from grub2 package ([email protected])
* Wed Nov 09 2022 Brian C. Lane <[email protected]> 38.2-1
- runtime-postinstall: Disable sshd.socket ([email protected])
- docs: Document mock and SELinux not working together ([email protected])
- imgutils: Don't delete dirs created for DracutChroot ([email protected])
- tito: Use .tito instead of old ./rel-eng directory ([email protected])
- setup.py: Set the version number ([email protected])
- Improvement of unmounting /proc, /dev and binds ([email protected])
* Tue Oct 11 2022 Brian C. Lane <[email protected]> 38.1-1
- livemedia-creator: Allow file: url without networking ([email protected])
- Update kdump addon package name ([email protected])
- Drop anaconda auditd replacement ([email protected])
* Fri Sep 30 2022 Brian C. Lane <[email protected]> 38.0-1
- New lorax documentation - 38.0 ([email protected])
- tests: Update test_creator.py for new cmdline options ([email protected])
- livemedia-creator: Add release, variant, bugurl, and isfinal cmdline flags ([email protected])
- Drop 32-bit ARM and x86 support ([email protected])
- Update anaconda's crash messages to watch ([email protected])
- livemedia-creator: Add --product to cmdline args ([email protected])
- fedora-livemedia: Make sure GNOME Software service isn't started ([email protected])
- fonts packages syncup in template files ([email protected])
- tests: Add tzdata package to minimizer test setup ([email protected])
* Mon Jul 25 2022 Brian C. Lane <[email protected]> 37.8-1
- mkksiso: Optionally support 3 arguments or --ks ([email protected])
- mkksiso: Add -U to xorriso on ppc64le ([email protected])
- mkksiso: Fix passing -iso-level to xorriso ([email protected])
- pylorax: SafeConfigParser is now ConfigParser ([email protected])
- test: Update test code for new pylint version ([email protected])
- tests: Switch back to rawhide for tests ([email protected])
- workflow: Remove sudo from workflow ([email protected])
* Wed Jul 13 2022 Brian C. Lane <[email protected]> 37.7-1
- mkksiso: Set u+rw permission on extracted files and directories ([email protected])
- Add option to boot local drive to the x86 BIOS grub2 menu ([email protected])
* Tue Jun 28 2022 Brian C. Lane <[email protected]> 37.6-1
- tests: Use Fedora 36 for test-in-podman ([email protected])
- Add include for architecture specific packages to example kickstarts ([email protected])
- templates: adjust for mellanox firmware split to subpackage ([email protected])
- mkksiso: Fix s390x support ([email protected])
- spec: Don't require grub2 on x86-32 ([email protected])
- mkksiso: Remove use of os.path.join ([email protected])
- Makefile: Add mkksiso and image-minimizer to coverage report ([email protected])
- tests: Add tests for mkksiso ([email protected])
- mkksiso: Add kernel cmdline customization support ([email protected])
- mkksiso: Move kickstart to --ks KICKSTART ([email protected])
- mkksiso: Add helper functions for kernel cmdline modifications ([email protected])
* Fri Jun 03 2022 Brian C. Lane <[email protected]> 37.5-1
- example ks: Drop syslinux and add grub2-tools package for livemedia ([email protected])
- templates: Set @ISOLABEL@ in the bios-grub.cfg file to the isolabel ([email protected])
- Update spec for syslinux->grub2 switch ([email protected])
* Wed Jun 01 2022 Brian C. Lane <[email protected]> 37.4-1
- mkksiso: Fix grub2 editing error ([email protected])
* Wed Jun 01 2022 Brian C. Lane <[email protected]> 37.3-1
- Add grub2 BIOS boot support to live iso template ([email protected])
Resolves: rhbz#2092065
- Drop grafting variables ([email protected])
- Drop macboot.img and simplify efiboot.img use ([email protected])
- Add grub2 BIOS boot support ([email protected])
- Remove syslinux support ([email protected])
* Mon May 23 2022 Brian C. Lane <[email protected]> 37.2-1
- cleanup: drop phanfw.bin from linux-firmware ([email protected])
- cleanup: strip more mellanox firmware files ([email protected])
- cleanup: strip qcom/vpu* from linux-firmware ([email protected])
- cleanup: drop qcom/apq8096 firmwares ([email protected])
* Wed May 11 2022 Brian C. Lane <[email protected]> 37.1-1
- New lorax documentation - 37.1 ([email protected])
- docs: Update the mkksiso documentation ([email protected])
- setup.py: Install mkksiso to /usr/bin ([email protected])
- pylorax: Move variable out of try block ([email protected])
- setup.py: Use setup from setuptools not distutils ([email protected])
- Makefile: Remove -it options for test-in-podman ([email protected])
- mkksiso: Rewrite to use xorriso features ([email protected])
- docs: Fix typo in index.html ([email protected])
* Mon Mar 28 2022 Brian C. Lane <[email protected]> 37.0-1
- New lorax documentation - 37.0 ([email protected])
- runtime-cleanup: keep 'unshare' binary present from util-linux-core ([email protected])
* Mon Feb 28 2022 Brian C. Lane <[email protected]> 36.9-1
- Don't move the restart-anaconda file ([email protected])
* Wed Feb 16 2022 Brian C. Lane <[email protected]> 36.8-1
- runtime-cleanup: Remove ncurses package ([email protected])
* Mon Feb 14 2022 Brian C. Lane <[email protected]> 36.7-1
- postinstall: Restore reproducible build timestamps on /usr/share/fonts ([email protected])
- tests: Fix the image minimizer test dnf usage ([email protected])
- runtime-cleanup: drop kernel drivers/iio ([email protected])
- runtime-cleanup: drop gallium-pipe drivers from mesa-dri-drivers ([email protected])
- runtime-cleanup: drop yelp's local MathJax library copy ([email protected])
- runtime-cleanup: drop eapol_test from wpa_supplicant ([email protected])
- runtime-cleanup: drop /usr/bin/cyrusbdb2current ([email protected])
- runtime-cleanup: drop systemd-analyze ([email protected])
- runtime-cleanup: drop mtools and glibc-gconv-extra ([email protected])
- runtime-cleanup: drop guile22's ccache ([email protected])
- runtime-cleanup: fix warnings from old or changed packages ([email protected])
- runtime-cleanup: drop Italic from google-noto-sans-vf-fonts ([email protected])
- runtime-install: drop some unnecessary font packages ([email protected])
* Fri Feb 04 2022 Brian C. Lane <[email protected]> 36.6-1
- mkksiso: Fix check for unsupported arch error ([email protected])
* Thu Feb 03 2022 Brian C. Lane <[email protected]> 36.5-1
- mkksiso: Improve debug message about unsupported arch ([email protected])
- mkksiso: Fix the order of the ppc mkisofs command ([email protected])
- mkksiso: mkfsiso argument order matters ([email protected])
- mkksiso: Add kickstart to s390x cdboot.prm ([email protected])
- cleanup: handle RPM database move to /usr ([email protected])
- Install the variable font of the Cantarell font ([email protected])
- Update the template for f36 Change proposal:
https://fedoraproject.org/wiki/Changes/DefaultToNotoFonts ([email protected])
- Update Malayalam font to its new renamed package name rit-meera-new-fonts ([email protected])
- Enable sftp when using inst.sshd ([email protected])
- Add inst.rngd cmdline option ([email protected])
- docs: Update docs for image-minimizer ([email protected])
- tests: Add tests for image-minimizer ([email protected])
- image-minimizer: Check for missing root directory ([email protected])
- image-minimizer: Fix utf8 error and add docs ([email protected])
* Tue Dec 14 2021 Brian C. Lane <[email protected]> 36.4-1
- cleanup: remove binaries from lilv ([email protected])
- runtime-cleanup: remove pipewire-related packages ([email protected])
- New lorax documentation - 36.3 ([email protected])
* Thu Dec 09 2021 Brian C. Lane <[email protected]> 36.3-1
- mkksiso: Check the length of the filenames ([email protected])
- mkksiso: Check the iso's arch against the host's ([email protected])
- mkksiso: Add missing implantisomd5 tool requirements ([email protected])
- mkksiso: Raise error if no volume id is found ([email protected])
- mount: Add s390x support to IsoMountopoint ([email protected])
- mkksiso: Skip mkefiboot for non-UEFI isos ([email protected])
- mkksiso: Add -joliet-long ([email protected])
- mkksiso: Return 1 on errors ([email protected])
- Fix monitor problem with split UTF8 characters ([email protected])
* Wed Nov 10 2021 Brian C. Lane <[email protected]> 36.2-1
- Remove memtest86+ from example kickstarts ([email protected])
- fedora-livemedia: Update example kickstart ([email protected])
- mount: Switch to using pycdio instead of pycdlib ([email protected])
- Move default releasever into pylorax DEFAULT_RELEASEVER ([email protected])
- runtime-postinstall: Drop raidstart/stop stub code ([email protected])
- runtime-install: Fix grub2 epoch, it is 1 not 0 ([email protected])
- Update runtime-install/cleanup for Marvell Prestera fw split ([email protected])
* Thu Oct 28 2021 Brian C. Lane <[email protected]> 36.1-1
- dnfbase: Handle defaults better ([email protected])
- ltmpl: Add version compare support to installpkg ([email protected])
* Mon Oct 11 2021 Brian C. Lane <[email protected]> 36.0-1
- New lorax documentation - 36.0 ([email protected])
- docs: Remove logging command from examples ([email protected])
- runtime-install: exclude liquidio and netronome firmwares ([email protected])
- runtime-cleanup: drop Marvell Prestera firmware files ([email protected])
- runtime-cleanup: drop some Qualcomm smartphone firmwares ([email protected])
- Fix pylint warnings about string formatting ([email protected])
- tests: Ignore new pylint warnings ([email protected])
- Add fstrim to disk and filesystem image creation ([email protected])
* Tue Sep 07 2021 Brian C. Lane <[email protected]> 35.7-1
- templates: Remove memtest86+ ([email protected])
* Thu Jul 08 2021 Brian C. Lane <[email protected]> 35.6-1
- Install unicode.pf2 from new directory ([email protected])
- Makefile: Use sudo to fix ownership of docs ([email protected])
- Makefile: Make sure container is built before docs ([email protected])
- Makefile: Add local-srpm target to create a .src.rpm from HEAD ([email protected])
- mkksiso: cmdline should default to empty string ([email protected])
- runtime-install: Remove gfs2-utils ([email protected])
- mount.py: Fix docstring ([email protected])
* Fri Jun 11 2021 Brian C. Lane <[email protected]> 35.5-1
- pylorax: Fix mksparse ftruncate size handling ([email protected])
* Thu Jun 10 2021 Brian C. Lane <[email protected]> 35.4-1
- livemedia-creator: Check for mkfs.hfsplus ([email protected])
- Drop retired icfg ([email protected])
* Tue May 25 2021 Brian C. Lane <[email protected]> 35.3-1
- Add a context manager for dracut ([email protected])
Resolves: rhbz#1962975
- Remove unneeded aajohan-comfortaa-fonts ([email protected])
* Wed May 05 2021 Brian C. Lane <[email protected]> 35.2-1
- runtime-cleanup: Use branding package name instead of product.name ([email protected])
- treebuilder: Add branding package to template variables ([email protected])
- livemedia-creator: Use inst.ks on cmdline for virt ([email protected])
- docs: Remove composer-cli.1 ([email protected])
* Mon Apr 26 2021 Brian C. Lane <[email protected]> 35.1-1
- New lorax documentation - 35.1 ([email protected])
- Makefile: Use podman as a user for testing and docs ([email protected])
- composer-cli: Remove all traces of composer-cli ([email protected])
- livemedia-creator: Add rhgb to live iso cmdline (#1943312) ([email protected])
- tests: Fix pocketlint use of removed pylint messages ([email protected])
- Disable X11 forwarding from installation environment. ([email protected])
- Remove display-related packages ([email protected])
- Drop trying to install reiserfs-utils ([email protected])
- test: Fix URL to bots testmap ([email protected])
- Change khmeros-base-fonts to khmer-os-system-fonts. ([email protected])
- Fix output path in docs ([email protected])
- runtime-cleanup: don't wipe /usr/bin/report-cli (#1937550) ([email protected])
- xorg-x11-font-utils is now four packages, remove all of them ([email protected])
- xorg-x11-server-utils was split up in Fedora 34, so adjust templates ([email protected])
* Wed Mar 03 2021 Brian C. Lane <[email protected]> 35.0-1
- New lorax documentation - 35.0 ([email protected])
- Makefile: Add test-in-podman and docs-in-podman build targets ([email protected])
- isolinux.cfg: Rename the 'vesa' menu entry to 'basic' ([email protected])
- composer-cli: Add support for start-ostree --url URL ([email protected])
* Wed Mar 03 2021 Brian C. Lane <[email protected]>
- New lorax documentation - 35.0 ([email protected])
- Makefile: Add test-in-podman and docs-in-podman build targets ([email protected])
- isolinux.cfg: Rename the 'vesa' menu entry to 'basic' ([email protected])
- composer-cli: Add support for start-ostree --url URL ([email protected])