Compare commits

...
Sign in to create a new pull request.

117 commits

Author SHA1 Message Date
Brian C. Lane
c325dd3440 - rhsm: Add Flatpak registry option for RHEL10 (bciconel)
- commands: bootc: remove 'experimental' warning (k.koukiou)
2025-12-02 10:17:46 -08:00
Python Maint
c7e2413c81 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 12:39:22 +02:00
Brian C. Lane
fd0acbd83a - spec: Add python3-pytest to BuildRequires (bcl)
- tests: Use pytest module instead of unittest (bcl)
- workflows: Use py3.14 rc.1 (bcl)
- Add Fedora 44 support (bcl)
- spec: drop python3-build dependency (yselkowi)
2025-08-18 09:26:39 -07:00
Python Maint
29b32f1468 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 13:08:44 +02:00
Fedora Release Engineering
b52e5c7a4c Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 06:21:38 +00:00
Brian C. Lane
133e7c6a58 - Drop python3-build, it is not needed to install the package 2025-07-22 16:16:08 -07:00
Brian C. Lane
64bcfab34f - workflows: Use py3.14 beta.4 (bcl)
- pylint: Ignore files in .git (bcl)
- pyproject: Bump setuptools to 77 or later (bcl)
- Makefile: Stop running setup.py directly (bcl)
2025-07-15 11:59:51 -07:00
Brian C. Lane
46e508d728 - workflows: Add python 3.14 to the test matrix (bcl)
- Add support for RDP (jkonecny)
- Deprecate VNC (jkonecny)
- docs: Fix chapter numbering after adding certificate (bcl)
2025-06-16 11:57:06 -07:00
Python Maint
c558b3697f Rebuilt for Python 3.14 2025-06-03 11:02:10 +02:00
Brian C. Lane
423c9f4fb5 - workflow: Add python 3.13 testing (bcl)
- tests: Remove unused import of constants (bcl)
- realm: Clean up documentation (bcl)
- Add support for new bootc kickstart command (ppolawsk)
- Update documentation for clearpart --initlabel option. (rvykydal)
- Update the %certificate section documentation (rvykydal)
2025-04-25 10:54:54 -07:00
Brian C. Lane
5d8a1dda00 - Do not remove "md" prefix from RAID names (vtrefny)
- Add Fedora 43 support (bcl)
- workflows: Switch to ubuntu-latest (bcl)
- Update formatting of certificate section documentation (rvykydal)
- Update %certificate documentation with not about bundles (rvykydal)
- Fix formatting of %certificate documentation example (rvykydal)
- Update %certificate section documentation (rvykydal)
2025-02-24 13:27:00 -08:00
Brian C. Lane
cdc1bcb504 - Make %certificate section option --dir mandatory. (rvykydal)
Resolves: rhbz#2342762
2025-01-29 13:43:23 -08:00
Fedora Release Engineering
741be6bf10 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-18 11:14:50 +00:00
Brian C. Lane
3ad5529cda - runpylint: Log astroid version (bcl)
- tests: Limit the python versions used in testing (bcl)
- Add support for inline certificates with `%certificate` section (k.koukiou)
2025-01-09 13:56:34 -08:00
Brian C. Lane
5c0091fa77 - module: Remove unused warnings import (bcl)
- tox: Add py313 to tox and 3.12.7 to workflow (bcl)
- Fix the fix for _parse_optional changing (awilliam)
2024-10-03 12:04:12 -07:00
Brian C. Lane
9dfc6b1d33 - options: adjust to behavior change in upstream _parse_optional (awilliam)
- Add Fedora 42 support (jkonecny)
2024-10-02 14:01:18 -07:00
Brian C. Lane
f2fbedbfc7 - DeprecatedCommand: Return empty list for dataList (bcl) 2024-08-19 17:27:25 -07:00
Brian C. Lane
06a01bb7dc - Add "hw-passphrase" option for autopart and part commands (vtrefny)
- Enhance %onerror section with recommendation (jkonecny)
  Resolves: RHEL-47142
- commands: Add missing DeprecatedCommand class to F41_Module (kkoukiou)
2024-08-19 09:41:27 -07:00
Brian C. Lane
b9a72d29ed - doc/versionremoved: Update VersionChange import for Sphinx 8.0.0 (bcl)
- Mark the vnc command as deprecated on RHEL 10 (mkolman)
  Resolves: RHEL-41219
- pykickstart is supported on python 3.6+ (sgallagh)
- timezone: Remove the --isUtc, --nontp, and --ntpserver arguments (bcl)
  Related: RHEL-34009
- packages: Remove the old camel case arguments on RHEL10 (bcl)
  Resolves: RHEL-34009
- nvdimm: Remove support for the nvdimm command on RHEL10 (bcl)
  Related: RHEL-34009
- Drop the MIT license (bcl)
2024-08-05 17:54:51 -07:00
Fedora Release Engineering
e9964a7cec Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-19 08:53:14 +00:00
Python Maint
8be5983d67 Rebuilt for Python 3.13 2024-06-07 14:09:35 +02:00
Brian C. Lane
7918e21ebc - Deprecate modularity on Fedora 41 (marusak.matej)
- btrfs: Remove support for the btrfs command on RHEL10 (bcl)
  Resolves: RHEL-34009
- Deprecate modularity on RHEL 10 (marusak.matej)
  Resolves: RHEL-34829
2024-05-13 11:52:32 -07:00
Brian C. Lane
74fbed7e72 - Add a DEFAULT_VERSION variable to version.py (bcl)
- Deprecate network team options on RHEL 10 (rvykydal)
2024-04-25 15:03:40 -07:00
Brian C. Lane
06547fa4ae - spec: Update sources to github release urls
- rhel10: autopart on RHEL does not support --type=btrfs (bcl)
- rhel10: Add test for btrfs command deprecation (bcl)
- rhel10: Add missing rhsm and syspurpose commands (bcl)
- Break out %pre example to kickstart-examples (tasleson)
- Update kickstart-docs.rst (tasleson)
- Add Fedora 41 support (bcl)
- Update RHEL 9 handler (bcl)
- Update RHEL 10 handler classes (bcl)
- Add RHEL 10 handler (bcl)
- workflow: Use python 3.12.2 for tests (bcl)
- workflow: Bump checkout and setup-python actions to new versions (bcl)
2024-04-03 13:52:15 -07:00
Brian C. Lane
68ca65fe45 - Deprecate %packages --instLangs and --excludeWeakdeps kickstart options (vponcova)
- Deprecate timezone --isUtc, --ntpservers and --nontp kickstart options (vponcova)
- Fix the assert_removed check in the unit tests (vponcova)
- Remove the repo --ignoregroups kickstart option in Fedora 40 (vponcova)
- Remove the logging --level kickstart option in Fedora 40 (vponcova)
- Remove the method kickstart command in Fedora 40 (vponcova)
- Remove the autostep kickstart command in Fedora 40 (vponcova)
- requirements: Add setuptools (bcl)
2024-02-01 09:26:44 -08:00
Fedora Release Engineering
3dfa1b13eb Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-26 00:34:51 +00:00
Fedora Release Engineering
367cd901d5 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-21 22:44:22 +00:00
Brian C. Lane
22ab22f54f - Deprecate the nvdimm kickstart command (vponcova) 2023-11-28 15:57:06 -08:00
Brian C. Lane
bde1004998 - Add Fedora 40 support (bcl)
- remove control characters from license (cmdr)
- scripts: Fix wording in documentation (bcl)
- workflow: Fix test for python 3.12.0 version (bcl)
2023-11-10 08:49:20 -08:00
Brian C. Lane
af13cd4466 - tox: Only run unit tests for python 3.6 (bcl)
- workflow: Update to py3.12.0 (bcl)
- pykickstart: Set timeout to 120s on requests.get (bcl)
- translation-canary: Update the subtree with current master (bcl)
- Squashed 'translation-canary/' changes from 840c2d64..5bb81253 (bcl)
- tests: Add python 3.12 support (bcl)
- tests: Update unicode test to remove deprecated resetlocale (bcl)
- rtd: formats is separate, not part of sphinx (bcl)
- rtd: Add the .readthedocs.yaml config file (bcl)
- spec: Update spec with changes from Fedora (bcl)
- Makefile: Update pypi upload command (bcl)
2023-10-25 10:05:47 -07:00
Fedora Release Engineering
9bd99486ec Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 06:43:32 +00:00
Python Maint
e1dc1730d1 Rebuilt for Python 3.12 2023-06-14 06:14:53 +02:00
Brian C. Lane
7f5f40e050 - Makefile: Add a test-no-coverage target (bcl)
- realm: switch from pipes.quote() to shlex.quote() (ptoscano)
- workflow: Update actions to newest versions (bcl)
- Fix issues how to generate encrypted passwords (woiling)
2023-06-08 11:06:11 -07:00
Brian C. Lane
f4b18c8061 - network: Move new options to Fedora 39 (bcl)
Related: rhbz#1656662
- displaymode: Update description to describe behavior (bcl)
2023-03-17 09:24:49 -07:00
Brian C. Lane
0e8f8ff679 - Add conflict test between ostree sources (#2125655) (jkonecny)
Related: rhbz#2125655
- Fix missing seen check for output generation (#2125655) (jkonecny)
  Related: rhbz#2125655
- Add new ostreecontainer command (#2125655) (jkonecny)
  Related: rhbz#2125655
  Resolves: rhbz#2125655
  Related: rhbz#2125655
- Check the conflicting commands automatically (vponcova)
- Fix tests for conflicting commands (vponcova)
- Add conflicting commands support (bcl)
- Fix handling of package section arguments in older versions (bcl)
2023-03-14 11:38:27 -07:00
Brian C. Lane
877caefd64 - workflow: Update to use released python 3.11 version (bcl)
- Don't allow to use --sdboot and --extlinux together (vponcova)
- tests: add bootloader sdboot option (jeremy.linton)
- bootloader: Add systemd-boot support with --sdboot (jeremy.linton)
- Add %changelog section to pykickstart.spec.in (jkonecny)
- Do not request sign for rc-release Makefile target (jkonecny)
- Do not require SPECFILE for rc-release (jkonecny)
- Add missing docs copy to scratch Makefile (jkonecny)
- Add support for Fedora 39 (vslavik)
2023-03-08 09:18:10 -08:00
Brian C. Lane
977477db9d tests: Switch functional testing to use tmt framework
This also changes from running the unit tests, which are now run as part
of the rpm build, to running ksvalidator and ksflatten on some test
kickstarts.

./tests/good-ks/ contains kickstarts expected to pass
./tests/bad-ks/ contains kickstarts expected to fail
./tests/include-ks/ contains kickstarts expected to pass, with includes

(note that the %include directives in good-ks are not processed by
ksvalidator).
2023-02-21 11:31:57 -08:00
Brian C. Lane
b1da39fe21 tests: Enable the pykickstart unit tests
These now work fine in a mock environment and provide excellent
coverage.
2023-02-21 10:55:24 -08:00
Brian C. Lane
a818771e25 - Add DNS handling options to the network command (vslavik)
Related: rhbz#1656662
- Fix the coverage report (vponcova)
- whitelist_externals has changed to allowlist_externals (bcl)
- Update %post example for DNS problems (bcl)
- deps: Move dependencies into requirements.txt (bcl)
- Fix syntax of a code sample (ewoud)
2023-02-15 15:53:40 -08:00
Brian C. Lane
d0852c10bc SPDX migration 2023-01-30 15:31:13 -08:00
Fedora Release Engineering
c4e3252d65 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 10:39:35 +00:00
Brian C. Lane
370314d353 - pyproject.toml: Add dependencies (bcl)
- sshkey: Escapes quotes in the ssh key (bcl)
  Resolves: rhbz#2117734
- test: Add Python 3.11 to test matrix (bcl)
- Add --hibernation option to AutoPart (ozobal)
- Makefile: Include pyproject.toml in new release commit (bcl)
2022-08-29 12:22:43 -07:00
Brian C. Lane
8166ad4d19 - Use RHEL9 for RHEL command documentation (bcl)
- setup.py: use setuptools not distutils (bcl)
- Add pyproject.toml and update setup.py (bcl)
- Add Fedora 38 support (bcl)
2022-08-16 08:58:13 -07:00
Fedora Release Engineering
aca9cba842 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 15:47:40 +00:00
Python Maint
47c78d3fac Rebuilt for Python 3.11 2022-06-16 19:22:42 +02:00
Brian C. Lane
e0c1e9f767 - Write commands in alphabetical order (bcl)
Resolves: rhbz#2096871
2022-06-16 09:16:34 -07:00
Python Maint
e3c0e18c48 Rebuilt for Python 3.11 2022-06-14 17:03:58 +02:00
Brian C. Lane
3ec2a91656 - Add support for automatic LUN Scan (vponcova)
Related: rhbz#1432883
2022-06-13 15:15:31 -07:00
Python Maint
7426286be3 Rebuilt for Python 3.11 2022-06-13 17:47:35 +02:00
Brian C. Lane
6f60b44847 - tests: Fix unused out variable warnings (bcl)
- rootpw: Add an --allow-ssh argument (bcl)
  Resolves: rhbz#2083269
- github: Fix workflow to only send coverage for python 3.9 (bcl)
2022-06-02 10:01:27 -07:00
Brian C. Lane
d7cab95a21 - Add test for missing closing quote (bcl)
- i18n: Pass gettext domain on every translation call (bcl)
2022-04-07 11:04:09 -07:00
Brian C. Lane
9e88df9f50 - Remove the --ignorebroken option from RHEL handlers (vponcova)
- Add the isRHEL function (vponcova)
2022-02-28 14:52:15 -08:00
Brian C. Lane
6c4fe96dc7 - github: Add rhel9-branch to the list of branches (bcl)
- github: Use python 3.10 instead of a rc release (bcl)
- Fix validation of packages arguments (bcl)
- Add Fedora 37 support (vslavik)
- Add Fedora 36 support (vslavik)
2022-02-15 16:28:47 -08:00
Fedora Release Engineering
a038870bda - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 09:49:05 +00:00
Brian C. Lane
90483a464f - bootloader: Fix --md5pass documentation (bcl)
- Update ksvalidator manpage for multiple input files (vslavik)
- Test new code paths in ksvalidator (vslavik)
- ksvalidator: Add file globbing (vslavik)
- Rename _is_url() to is_url() to make it public (vslavik)
- ksvalidator: Add support for multiple files (vslavik)
- ksvalidator: Handle empty files (bcl)
- ksflatten: Add test coverage for unknown version (bcl)
- tests: Add python 3.10 to the test matrix (bcl)
- ksflatten: Fix pylint complaint about msg reuse (bcl)
- Remove more python2 compatability (bcl)
- tests: Ignore new pylint warnings (bcl)
- Fix typo "installaton" (amahdal)
- Be more consistent when referring to `%pre` (amahdal)
2021-10-12 11:22:44 -07:00
Fedora Release Engineering
cf7bb5eec6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 04:26:20 +00:00
Brian C. Lane
0daa55f384 - Remove the auth and authconfig commands (pbrezina)
- The parse method is expected to return a value (vponcova)
- tests: unittest isn't used in handle_unicode anymore (bcl)
- Add RHEL 9 handler (mkolman)
  Resolves: rhbz#1966730
- Add RHEL 9 version for commands that had a RHEL version in the past (mkolman)
  Related: rhbz#1966730
- Add RHEL 9 version for BTRFS related commands (mkolman)
  Related: rhbz#1966730
2021-07-13 14:12:34 -07:00
Brian C. Lane
9794ff0ea3 - tests: Use pykickstart/commands relative to the import (bcl)
Related: rhbz#1968762
- Document missing feature '|' for ignoredisk and clearpart (jkonecny)
- Remove python six library (bcl)
- Add Fedora 35 support (bcl)
2021-06-09 14:19:30 -07:00
Python Maint
a3f916a7e0 Rebuilt for Python 3.10 2021-06-03 10:56:14 +02:00
Fedora Release Engineering
463989fcdb - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 08:53:41 +00:00
Brian C. Lane
66e138ab8d - New release: 3.32 (bcl)
- Conditionally BuildRequire coverage and sphinx for runtests (bcl)
  Resolves: rhbz#1916735
- Change the lilo command removal to use RemovedCommand (vslavik)
- Change the lilocheck command removal to use RemovedCommand (vslavik)
- Fix test for the removed "interactive" command (vslavik)
- Change the langsupport command removal to use RemovedCommand (vslavik)
- Change the monitor command removal to use RemovedCommand (vslavik)
- Change the mouse command removal to use RemovedCommand (vslavik)
- Change the upgrade command removal to use RemovedCommand (vslavik)
- Fix ksverdiff detection of removed commands (vslavik)
- Check warnings of the deprecated kickstart commands (vponcova)
- Remove the install command (vslavik)
- Remove the deviceprobe command (vslavik)
- Remove the device command (vslavik)
- Remove the dmraid command (vslavik)
- Remove the multipath command (vslavik)
- Fix deprecation test for removed commands (vslavik)
- Switch interactive removal to use RemovedCommand (bcl)
- Add RemovedCommand for removing commands and documenting them (bcl)
- Remove support for the updates command without an URL (vponcova)
- Document how to deprecate commands and options (bcl)
- Remove the ignoredisk --interactive option (vslavik)
- Remove the partition --active option (vslavik)
- Deprecate the %traceback section (vslavik)
- Add missing .coveragerc file (bcl)
- Switch to using GitHub Actions instead of Travis CI (bcl)
- Add support for running via tox (bcl)
- Deprecate the method command (vslavik)
- Remove the bootloader option --upgrade (vslavik)
2021-01-18 11:40:13 -08:00
Brian C. Lane
119b633434 Conditionally BuildRequire coverage and sphinx for runtests
They aren't needed for the build unless runtests has been selected (it
is disabled by default).

Resolves: rhbz#1916735
2021-01-15 12:02:01 -08:00
Brian C. Lane
dd6f3364fc - Add make to BuildRequires, buildroot is removing it.
- Deprecate the autostep command (vslavik)
- Add missing spaces into the message (yurchor)
- ksshell: Fix indentation in _init_matches (bcl)
- Mark the level option of the logging command as deprecated (vponcova)
2020-11-05 14:07:06 -08:00
Brian C. Lane
42d1265986 - New release: 3.30 (bcl)
- ksshell: Fix traceback and add tests (bcl)
- fs: Make tmp file creation cross-platform in ksvalidator to support Windows
  (6096029+ciarancourtney)
2020-09-29 16:01:58 -07:00
Brian C. Lane
361fdfce50 - New release: 3.29 (bcl)
- setup.py: Fix script installation without filename extension (bcl)
2020-08-31 13:47:48 -07:00
Brian C. Lane
2566802e4f - New release: 3.28 (bcl)
- Makefile: Add __init__.py with new version to bumpver commit (bcl)
- tests: Ignore W0707 raise-missing-from warnings (bcl)
- Add Fedora 34 support (bcl)
- Add new tests for the harddrive biospart parameter removal (jkonecny)
- Remove biospart from harddrive command (jkonecny)
- move dependencies into setup.py and use setuptools (carlos)
- remove reference to py3 as a requirement (carlos)
- remove references to nose test framework (carlos)
- update dist to 18.04 (carlos)
- add ci test for future py ver (carlos)
- use new travis-ci syntax (carlos)
- parser: Remove OrderedSet (bcl)
- tests: Add a slightly different test for Package.add (bcl)
- Add pykickstart.__version__ string (bcl)
2020-08-31 10:22:16 -07:00
Fedora Release Engineering
4d8bcb7102 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-28 23:19:37 +00:00
Brian C. Lane
63ad65405c - New release: 3.27 (bcl)
- tests: Fix pylint warnings in timezone tests (bcl)
- Mark --ntpservers and --nontp options of timezone command as deprecated (mkolman)
- Add the timesource command (mkolman)
2020-07-07 11:43:07 -07:00
Brian C. Lane
3fa83edb32 - Makefile: Fix gpg signature (bcl)
- Add RHEL8_Repo, RHEL8_RepoData, and RHEL8_Url classes (bcl)
- pylint: Fix warnings and errors from pylint 2.5.x (bcl)
- i18n: Use gettext instead of lgettext (bcl)
- Use W9902 in pylint disable to avoid warnings about _ (bcl)
- Add python 3.8 to travis.yml (bcl)
- docs: Fix network.py documentation markup (bcl)
- docs: versionadded directive needs a blank line after it (bcl)
- docs: Maintain programmers-guide in the repo (bcl)
- Makefile: Add creating the detached signature to the release make target (bcl)
2020-06-01 15:43:31 -07:00
Miro Hrončok
4a4fee6bcf Rebuilt for Python 3.9 2020-05-23 06:32:03 +02:00
Brian C. Lane
f0bdc668ba - New release: 3.25 (bcl)
- Deprecate `repo --ignoregroups` (jkonecny)
- Add Fedora 33 support (jkonecny)
2020-04-07 11:34:09 -07:00
Brian C. Lane
a5a849c186 - New release: 3.24 (bcl)
- Make --url doctext more understandable (jkonecny)
- Remove url command doc that it's replaced (jkonecny)
- Add missing information for driverdisk KS command (jkonecny)
- tests: close the HTTP Server in tests/include.py (bcl)
- tests: Replace nose with unittest (bcl)
2020-04-06 11:11:23 -07:00
Fedora Release Engineering
62085104a6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-30 10:11:00 +00:00
Brian C. Lane
29af1cbae9 - New release: 3.22 (bcl)
- tests: pin coverage at the 4.x.x series (bcl)
- Switch to using Weblate for translations (bcl)
- po: Remove pykickstart.pot (bcl)
- gpg sign the git tag (bcl)
- Cleaning up empty help strings (bcl)
- tests: Fix the empty description, help, etc. test (bcl)
- tests: Turn off HTTP logging in Include_URL_TestCase (bcl)
- tests: Catch warning in Unknown_New_Section_2_TestCase (bcl)
- tests: Capture stderr output from ksflatten test (bcl)
- Prefer --utc to --isUtc in timezone for F32 and later (vslavik)
- Give output in str(F25_Timezone) even without timezone spec (vslavik)
- Prefer the non-camelCased options for %packages (vslavik)
- Add test for kickstart option names (vslavik)
- Add lowercase aliases for camelCased %packages options (vslavik)
- Commit the new pykickstart.pot when making a release (bcl)
- Add the rhsm command (mkolman)
- Fix travis and coverage runs (bcl)
- Fix pylint unnecessary-pass warnings (bcl)
- Drop python2 compatibility (jkonecny)
- Fix check for python zanata client in Makefile (jkonecny)
- Update versionremoved sphinx extension (bcl)
2020-01-14 11:57:30 -08:00
Brian C. Lane
a94f82447d - New release: 3.22 (bcl)
- Enable coveralls.io coverage tracking (bcl)
- Add tests for ignorebroken packages parameter (jkonecny)
- Add ignore broken parameter to packages section (#1642013) (jkonecny)
- Add support for the ZIPL Secure Boot for F32 and RHEL8 (vponcova)
- Add F32 support (jkonecny)
- Add note for the repo and url ssl options (jkonecny)
- Skip FailsToOpenOutputFile_TestCase if running as root (juliana.rodrigueiro)
- Change .spec Source to new pykickstart organization URL (bcl)
2019-11-06 15:41:14 -08:00
Miro Hrončok
949edd8fe2 Rebuilt for Python 3.8.0rc1 (#1748018) 2019-10-03 13:59:38 +02:00
Miro Hrončok
b0233038cb Rebuilt for Python 3.8 2019-08-16 05:01:41 +02:00
David Cantrell
341a0d6e7e Make module --disable available on Fedora 31+ (mkolman)
Add F31 handler (mkolman)
Add the --disable option for the module command (#1719347) (mkolman)
A couple fixes for %packaging section docs (mkolman)
Fix the docs generation (vponcova)
Fix the documentation of bootloader --append (vponcova)
Just kidding, use xenial for everything. (dcantrel)
Python 3.7 is only available in 'xenial' in Travis-CI (dcantrel)
Reduce .travis.yml to Python 3.{5,6,7}, set SPHINXAPIDOC (dcantrel)
Replace PYTHONPATH override with sys.path.append; allow
  SPHINXAPIDOC (dcantrel)
Add rhel7-branch to .travis.yml (dcantrel)
Restrict the branches to test with Python 3. (dcantrel)
More changes to .travis.yml, add requirements.txt file (dcantrel)
Update the Travis-CI yaml file. (dcantrel)
Fix documentation for the --excludepkgs and --includepkgs repo
  options (mkolman)
packit.yml: remove unused content (ttomecek)
Update sed in pykistart.spec Makefile target (phracek)
Add pykickstart.spec.in for packit (phracek)
Make %packages --default attribute sane (jkonecny)
Configuration file .packit.yaml (phracek)
For Travis-CI, explicitly use Sphinx 1.7.6 (dcantrel)
Change to unittest.skipUnless and use correct syntax. (dcantrel)
Replace 'import unittest.skipIf as skipIf' with
  just 'import unittest' (dcantrel)
s/unittest/pytest/g in .travis.yml (dcantrel)
pip install unittest for the Travis-CI runs (dcantrel)
Run 'git checkout' in the Makefile ignoring non-fatal errors (dcantrel)
Skip KS_With_Wrong_Permissions_TestCase if running as root. (dcantrel)
Treat pylint warnings as non-fatal, exit codes 0 and 4. (dcantrel)
Remove unused falsePositives in runpylint.py (dcantrel)
Use env to set NOSE_IGNORE_CONFIG_FILES (dcantrel)
Add NOSE_IGNORE_CONFIG_FILES=y to the .travis.yml file (dcantrel)
Set NOSE_IGNORE_CONFIG_FILES in make coverage (dcantrel)
In the Travis-CI environment, coverage is 'coverage' (dcantrel)
Close output_path after reading in ksflatten.py (dcantrel)
Makefile improvements (dcantrel)
Specify Python 3.7 in .travis.yml per the docs. (dcantrel)
Run sphinx-build and sphinx-apidoc from docs/Makefile (dcantrel)
Add some missing help strings as detected by the coverage target. (dcantrel)
Add missing descriptions to a handful of pykickstart commands. (dcantrel)
Mark the sshkey --username option as required in docs (mkolman)
Test on recent Python versions on Travis (mkolman)
Fix snapshot documentation (jkonecny)
Add a CONTRIBUTING file. (dcantrel)
2019-08-14 11:27:28 -04:00
Fedora Release Engineering
63ebca6427 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-26 11:43:18 +00:00
David Cantrell
6a102ee265 Remove the Python 2 subpackage for pykickstart (#1686380) 2019-03-07 15:34:14 -05:00
David Cantrell
a41ffb1f1e Remove the Python 2 subpackage for pykickstart (#1686380) 2019-03-07 15:33:10 -05:00
Fedora Release Engineering
997cdff496 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-02 05:13:06 +00:00
David Cantrell
0dc1315783 New release: 3.20 (dcantrell)
Fix backward compatibility for python2 (jkonecny)
In 'make local', create a dummy .asc file explaining the
  signature. (dcantrell)
2019-01-29 12:58:31 -05:00
Igor Gnatenko
f2a6352e61 Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:38 +01:00
David Cantrell
4f20c3720f New release: 3.19 (dcantrell)
Run gen_commands_docs and gen_sections_docs with python3. (dcantrell)
Use python3-sphinx in docs/Makefile (dcantrell)
Nope, this way for make po-pull and make release. (dcantrell)
Make sure 'make release' runs 'make po-pull' (dcantrell)
RHEL8Handler: include ssl certificate options (lars)
Add options for ssl certs on url and repo commands (lars)
parser: use collections.abc to import Iterator (lars)
test: Remove unused import (lars)
tests: Fix ksflatten tests (lars)
tests: Remove KickstartValueError test case (lars)
tests: Remove test case that's actually valid (lars)
Fix pylint warning W0102 dangerous-default-value (lars)
docs/versionremoved: fix sphinx import path (lars)
travis: don't override PYTHON with /usr/bin/python3 (lars)
Refactor ksverdiff and add tests for it (atodorov)
Patch ksverdiff so it works with argparse (atodorov)
Add main() function to scripts to allow module to be imported (atodorov)
Refactor tools/ksflatten.py and add tests for it (atodorov)
Add more tests for load.py (atodorov)
Issue DeprecationWarning for KickstartValueError and test it for
  completeness (atodorov)
More test coverage for autopart (atodorov)
Improve tests for updates (atodorov)
Improved tests for timezone (atodorov)
Improve tests for selinux (atodorov)
Improve test for rootpw (atodorov)
Refactoring for reboot.py and more tests (atodorov)
Refactor monitor.py and add more tests (atodorov)
Add more tests for logvol.py (atodorov)
Refactoring for driverdisk.py (atodorov)
Refactor and more tests for btrfs.py (atodorov)
Add test to kill remaining mutant (atodorov)
Refactor in dmraid.py (atodorov)
More tests and refactoring for volgroup.py (atodorov)
Improve displaymode tests (atodorov)
Fix the kickstart section %packages (vponcova)
Fix versions in parsers of kickstart sections (vponcova)
Fix warnings for deprecated options of kickstart commands (vponcova)
Fix pylint errors (vponcova)
Update kickstart-docs.rst (jason.gerfen)
Kickstart usage example link (jason.gerfen)
Document module stream installation (mkolman)
Mention all man pages in all "SEE ALSO" sections (tim)
Fix typo in ksshell man page (tim)
Normalize the mount point (vponcova)
Clarify the --when= parameter error message. (dcantrell)
2019-01-28 10:35:17 -05:00
David Cantrell
a5a99e19ce gating.yml -> gating.yaml 2019-01-23 16:03:28 -05:00
David Cantrell
ba5324f83c Add Fedora CI tests and gating files for pykickstart. 2018-12-19 13:50:35 -05:00
Chris Lumens
1b50657062 New release: 3.18 (clumens)
Use the RHEL8 handler to generate RHEL docs. (clumens)
Add missing trailing newline for syspurpose __str__ method (mkolman)
Add the syspurpose command (mkolman)
Fix 'make rpmlog' target. (dcantrell)
2018-08-29 15:01:20 -04:00
David Cantrell
c1ed3ab9bd New release: 3.17 (dcantrell)
Add authselect command to rhel8 handler (rvykydal)
Add module command to rhel8 handler (rvykydal)
Update po/pykickstart.pot (dcantrell)
2018-08-15 09:58:00 -04:00
David Cantrell
16debff89b New release: 3.16 (dcantrell)
Remove the extra space from the logvol command (vponcova)
Support LUKS2 in the raid command (vponcova)
Support LUKS2 in the part command (vponcova)
Support LUKS2 in the logvol command (vponcova)
Support LUKS2 in the autopart command (vponcova)
Remove unused false positive (vponcova)
Wrong hanging indentation (vponcova)
2018-08-09 14:53:26 -04:00
David Cantrell
438107af27 New release: 3.16 (dcantrell)
Remove the extra space from the logvol command (vponcova)
Support LUKS2 in the raid command (vponcova)
Support LUKS2 in the part command (vponcova)
Support LUKS2 in the logvol command (vponcova)
Support LUKS2 in the autopart command (vponcova)
Remove unused false positive (vponcova)
Wrong hanging indentation (vponcova)
2018-08-09 14:52:59 -04:00
Fedora Release Engineering
db8b99fe25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-13 23:09:21 +00:00
Chris Lumens
e127e08cf7 New release: 3.15 (clumens)
Add nvdimm command to RHEL7 (rvykydal)
Fix tests timeout (vponcova)
Fix pylint errors (vponcova)
The deprecated command upgrade is removed in another handler (vponcova)
The partition option --active is deprecated in another handler (vponcova)
The ignoredisk option --interactive is deprecated in another handler (vponcova)
The bootloader option --upgrade is deprecated in another handler (vponcova)
The command install is deprecated in another handler (vponcova)
The command deviceprobe is deprecated in another handler (vponcova)
Add kickstart warnings (vponcova)
Add the enablemodule command (mkolman)
Remove translation-canary wrapper for xgettext command. (dcantrell)
Use 'New release:' in the 'make bumpver' commit messages. (dcantrell)
Update the 'make pypi' target. (dcantrell)
Include the _sortCommand to the _setCommand method (#1578930) (vponcova)
2018-07-10 10:35:50 -04:00
Jason Tibbitts
2cba47fca0 Remove needless use of %defattr 2018-07-10 01:53:33 -05:00
Miro Hrončok
084a0ce979 Rebuilt for Python 3.7 2018-06-15 23:06:44 +02:00
David Cantrell
32b654c733 Include the _sortCommand to the _setCommand method (vponcova, #1578930)
Remove call to xgettext_werror.sh during build
2018-05-22 16:27:24 -04:00
David Cantrell
17c2693c74 Include the _sortCommand to the _setCommand method (vponcova, #1578930) 2018-05-22 15:40:43 -04:00
David Cantrell
479effc7fb Increment version to 3.14 (dcantrell)
Commit the new version in make bumpver. (dcantrell)
Adjust the make release target. (dcantrell)
Fix path problem in the pypi target. (dcantrell)
Adjust zanata check in po-pull Makefile target. (dcantrell)
Document that lilo and lilocheck are deprecated (vponcova)
Document that the command mouse is deprecated (vponcova)
The deprecated command upgrade is removed (vponcova)
The partition option --active is deprecated (vponcova)
The ignoredisk option --interactive is deprecated (vponcova)
The bootloader option --upgrade is deprecated (vponcova)
The command install is deprecated (vponcova)
The command deviceprobe is deprecated (vponcova)
Add Fedora 29 support (vponcova)
Change the timeout for nosetests (vponcova)
Fix deprecated commands with data (vponcova)
2018-05-14 13:14:21 -04:00
David Cantrell
1785e066a2 Prepare for 3.13 release. (dcantrell)
Adjust the make release target. (dcantrell)
Fix path problem in the pypi target. (dcantrell)
Adjust zanata check in po-pull Makefile target. (dcantrell)
Update fcoe command help (rvykydal)
Add support for fcoe --autovlan (rvykydal)
Fix the writePriority test for the new nvdimm command. (clumens)
Fix a typo in the nvdimm command help output. (clumens)
Add use action to nvdimm command. (rvykydal)
Add nvdimm command (rvykydal)
Remove the spec file from the source repo. (clumens)
No longer reference the spec file in the Makefile. (clumens)
Change the rc-release target to not assume the spec file location. (clumens)
Get the version number from setup.py instead of the spec file. (clumens)
Remove PKGNAME from the Makefile. (clumens)
2018-05-10 13:15:19 -04:00
David Cantrell
e295bd363a BuildRequires: python2-ordered-set 2018-04-19 16:41:14 -04:00
David Cantrell
f8dea06687 Fix python2 subpackage builds. (#1564347)
Disable tests by default because they fail in mock right now.
2018-04-16 16:43:22 -04:00
David Cantrell
9f7dfbba3c Re-enable the python2 subpackages on Fedora for now. Some
programs still need it and have not moved to python3 yet. (#1564347)
2018-04-12 12:46:49 -04:00
David Cantrell
2deed01c45 Re-enable the python2 subpackages on Fedora for now. Some
programs still need it and have not moved to python3 yet. (#1564347)
2018-04-12 10:23:04 -04:00
David Cantrell
0bf51ed086 Re-enable the python2 subpackages on Fedora for now. Some
programs still need it and have not moved to python3 yet.
2018-04-12 10:19:55 -04:00
David Cantrell
fd56619619 Conditionalize out python2 subpackage builds on Fedora releases
after 28 and EL releases after 7
2018-04-02 12:52:58 -04:00
Chris Lumens
4025591235 Sync spec file back up. (clumens)
Don't use deprecated formatErrorMsg (vponcova)
Handle error message formatting in KickstartError (vponcova)
Add the KickstartHandler class (vponcova)
Remove --fstype=btrfs support from LogVol, Raid and Part (rvykydal)
Remove btrfs support (rvykydal)
Create RHEL8 commands to pass handler using highest version test. (rvykydal)
Add RHEL8 handler (rvykydal)
Expect kickstart commands to have the default write priority. (vponcova)
Authconfig is replaced with authselect (vponcova)
2018-02-19 11:50:25 -05:00
Igor Gnatenko
0ff2e477b6
Escape macros in %changelog
Reference: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/Y2ZUKK2B7T2IKXPMODNF6HB2O5T5TS6H/
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-09 09:05:36 +01:00
Chris Lumens
d004e0d2bd Logging level should be always set (#1543194) (vponcova)
Copy txt files from _build folder on make local call (jkonecny)
2018-02-08 09:41:25 -05:00
Chris Lumens
1ad6f6d83f Switch to pykickstart3.
The details of the changes are extensive, but should not matter to most
users of pykickstart.  Affected users should have patches for them
already, but if not it's pretty easy to do.
2018-01-25 09:38:10 -05:00
Iryna Shcherbina
00fcc510bd Update Python 2 dependency declarations to new packaging standards 2018-01-15 19:18:05 +01:00
Chris Lumens
f3c7e9eab1 Fix directory ownership (lbalhar, #202). (clumens)
firewall: add --use-system-defaults arg to command (#1526486) (dusty)
Port the F20 firewall test from master. (clumens)
2018-01-04 11:38:48 -05:00
Chris Lumens
c1add3bf7f Don't modify the original command and data mappings. (vponcova)
Add support for hmc command in Fedora (vponcova)
2017-12-06 10:07:15 -05:00
Chris Lumens
31eccf9cf0 Add clearpart --cdl option. (sbueno+anaconda)
Add Fedora 28 support (vponcova)
Fix which Autopart class checks for the 'mount' command (vpodzime)
2017-11-09 12:40:34 -05:00
Chris Lumens
41de61013e Pylint fixes (vponcova)
Add command hmc to support SE/HMC file access in RHEL7 (vponcova)
Add timeout and retries options to %packages section in RHEL7 (vponcova)
Call the _ method from i18n.py (jkonecny)
2017-10-16 12:23:15 -04:00
Chris Lumens
f4b55f1a3b Add a new 'mount' command (vpodzime) 2017-10-12 11:16:34 -04:00
Chris Lumens
a5795b1287 network: add network --bindto option (Fedora) (#1483981) (rvykydal)
network: add network --bindto option (RHEL) (#1483981) (rvykydal)
2017-09-15 11:59:07 -04:00
Zbigniew Jędrzejewski-Szmek
9451718ec7 Python 2 binary package renamed to python2-pykickstart 2017-08-19 09:39:19 -04:00
17 changed files with 1581 additions and 701 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

115
.gitignore vendored
View file

@ -175,3 +175,118 @@ pykickstart-1.78.tar.gz
/pykickstart-2.35.tar.gz
/pykickstart-2.36.tar.gz
/pykickstart-2.37.tar.gz
/pykickstart-2.39.tar.gz
/pykickstart-2.40.tar.gz
/pykickstart-2.41.tar.gz
/pykickstart-2.42.tar.gz
/pykickstart-2.43.tar.gz
/pykickstart-2.44.tar.gz
/pykickstart-3.10.tar.gz
/pykickstart-3.11.tar.gz
/pykickstart-3.12.tar.gz
/pykickstart-3.13.tar.gz
/pykickstart-3.14.tar.gz
/pykickstart-3.15.tar.gz
/pykickstart-3.16.tar.gz
/pykickstart-3.17.tar.gz
/pykickstart-3.18.tar.gz
/pykickstart-3.19.tar.gz
/pykickstart-3.19.tar.gz.asc
/pykickstart-3.20.tar.gz
/pykickstart-3.20.tar.gz.asc
/pykickstart-3.21.tar.gz
/pykickstart-3.21.tar.gz.asc
/pykickstart-3.22.tar.gz
/pykickstart-3.22.tar.gz.asc
/pykickstart-3.23.tar.gz
/pykickstart-3.23.tar.gz.asc
/pykickstart-3.24.tar.gz
/pykickstart-3.24.tar.gz.asc
/pykickstart-3.25.tar.gz
/pykickstart-3.25.tar.gz.asc
/pykickstart-3.26.tar.gz
/pykickstart-3.26.tar.gz.asc
/pykickstart-3.27.tar.gz
/pykickstart-3.27.tar.gz.asc
/pykickstart-3.28.tar.gz
/pykickstart-3.28.tar.gz.asc
/pykickstart-3.29.tar.gz
/pykickstart-3.29.tar.gz.asc
/pykickstart-3.30.tar.gz
/pykickstart-3.30.tar.gz.asc
/pykickstart-3.31.tar.gz
/pykickstart-3.31.tar.gz.asc
/pykickstart-3.32.tar.gz
/pykickstart-3.32.tar.gz.asc
/pykickstart-3.33.tar.gz
/pykickstart-3.33.tar.gz.asc
/pykickstart-3.34.tar.gz
/pykickstart-3.34.tar.gz.asc
/pykickstart-3.35.tar.gz
/pykickstart-3.35.tar.gz.asc
/pykickstart-3.36.tar.gz
/pykickstart-3.36.tar.gz.asc
/pykickstart-3.37.tar.gz
/pykickstart-3.37.tar.gz.asc
/pykickstart-3.38.tar.gz
/pykickstart-3.38.tar.gz.asc
/pykickstart-3.39.tar.gz
/pykickstart-3.39.tar.gz.asc
/pykickstart-3.40.tar.gz
/pykickstart-3.40.tar.gz.asc
/pykickstart-3.41.tar.gz
/pykickstart-3.41.tar.gz.asc
/pykickstart-3.42.tar.gz
/pykickstart-3.42.tar.gz.asc
/pykickstart-3.43.tar.gz
/pykickstart-3.43.tar.gz.asc
/pykickstart-3.44.tar.gz
/pykickstart-3.44.tar.gz.asc
/pykickstart-3.45.tar.gz
/pykickstart-3.45.tar.gz.asc
/pykickstart-3.46.tar.gz
/pykickstart-3.46.tar.gz.asc
/pykickstart-3.47.tar.gz
/pykickstart-3.47.tar.gz.asc
/pykickstart-3.48.tar.gz
/pykickstart-3.48.tar.gz.asc
/pykickstart-3.49.tar.gz
/pykickstart-3.49.tar.gz.asc
/pykickstart-3.50.tar.gz
/pykickstart-3.50.tar.gz.asc
/pykickstart-3.51.tar.gz
/pykickstart-3.51.tar.gz.asc
/pykickstart-3.52.tar.gz
/pykickstart-3.52.tar.gz.asc
/pykickstart-3.53.tar.gz
/pykickstart-3.53.tar.gz.asc
/pykickstart-3.54.tar.gz
/pykickstart-3.54.tar.gz.asc
/pykickstart-3.55.tar.gz
/pykickstart-3.55.tar.gz.asc
/pykickstart-3.56.tar.gz
/pykickstart-3.56.tar.gz.asc
/pykickstart-3.57.tar.gz
/pykickstart-3.57.tar.gz.asc
/pykickstart-3.58.tar.gz
/pykickstart-3.58.tar.gz.asc
/pykickstart-3.59.tar.gz
/pykickstart-3.59.tar.gz.asc
/pykickstart-3.60.tar.gz
/pykickstart-3.60.tar.gz.asc
/pykickstart-3.61.tar.gz
/pykickstart-3.61.tar.gz.asc
/pykickstart-3.62.tar.gz
/pykickstart-3.62.tar.gz.asc
/pykickstart-3.63.tar.gz
/pykickstart-3.63.tar.gz.asc
/pykickstart-3.64.tar.gz
/pykickstart-3.64.tar.gz.asc
/pykickstart-3.65.tar.gz
/pykickstart-3.65.tar.gz.asc
/pykickstart-3.66.tar.gz
/pykickstart-3.66.tar.gz.asc
/pykickstart-3.67.tar.gz
/pykickstart-3.67.tar.gz.asc
/pykickstart-3.68.tar.gz
/pykickstart-3.68.tar.gz.asc

7
gating.yaml Normal file
View file

@ -0,0 +1,7 @@
--- !Policy
product_versions:
- fedora-*
decision_contexts: [bodhi_update_push_stable]
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}

8
plans/run-tests.fmf Normal file
View file

@ -0,0 +1,8 @@
summary: Run pykickstart tests
prepare:
how: install
package:
- python3-kickstart
- pykickstart
execute:
script: ./tests/scripts/run_tests.sh

File diff suppressed because it is too large Load diff

View file

@ -1 +1,2 @@
SHA512 (pykickstart-2.37.tar.gz) = 8c7f09c1a75dde5ef91ff51470eac7f7d2646bdd4ac728afb35a7f326f0a007c855d8f0804d6937a955d359f425664d9f72fc76afd4cb2c827cc263118277a84
SHA512 (pykickstart-3.68.tar.gz) = 103034f2ad47afa470066b4c98092ac634c5c5ed21c1c98a65170c78cc86e95f5565bb4c29a24a890836e45d2094b529fcdb02f8a004875cc13db505bd2ba51e
SHA512 (pykickstart-3.68.tar.gz.asc) = 33d2e3ea50bdffdb7bc4939b68c3069d6fce6087cd186ac57773981928a090608f7509fd8f63bacbbd6544d828da3eb1e1fb785f5ff7e547364c9cd360eaf106

View file

@ -0,0 +1,47 @@
text
lang en_US.UTF-8
keyboard us
timezone US/Eastern
selinux --enforcing
firewall --enabled --service=mdns
services --enabled=sshd,NetworkManager,chronyd
network --bootproto=dhcp --device=link --activate
rootpw --lock --iscrypted locked
shutdown
bootloader --timeout=1
zerombr
clearpart --all --initlabel --disklabel=msdos
# make sure that initial-setup runs and lets us do all the configuration bits
firstboot --reconfig
repo --name "packages" --url https://nowhere/
%packages
@core
@standard
@hardware-support
kernel
# on 32bit arm make sure we only install one kernel
-kernel-lpae
# remove this in %post
dracut-config-generic
-dracut-config-rescue
# install tools needed to manage and boot arm systems
@arm-tools
chrony
bcm283x-firmware
initial-setup
# Intel wireless firmware assumed never of use for disk images
-iwl*
-ipw*
-usb_modeswitch
-generic-release*
# make sure all the locales are available for inital-setup and anaconda to work
glibc-all-langpacks
%end

View file

@ -0,0 +1,2 @@
echo "not a kickstart"
without any --commands

View file

@ -0,0 +1,104 @@
# fedora-disk-base.ks
#
# Defines the basics for all kickstarts in the fedora-live branch
# Does not include package selection (other then mandatory)
# Does not include localization packages or configuration
#
# Does includes "default" language configuration (kickstarts including
# this template can override these settings)
text
lang en_US.UTF-8
keyboard us
timezone US/Eastern
selinux --enforcing
firewall --enabled --service=mdns
services --enabled=sshd,NetworkManager,chronyd
network --bootproto=dhcp --device=link --activate
rootpw --lock --iscrypted locked
shutdown
bootloader --timeout=1
zerombr
clearpart --all --initlabel --disklabel=msdos
# make sure that initial-setup runs and lets us do all the configuration bits
firstboot --reconfig
%include fedora-repo.ks
%packages
@core
@standard
@hardware-support
kernel
# on 32bit arm make sure we only install one kernel
-kernel-lpae
# remove this in %post
dracut-config-generic
-dracut-config-rescue
# install tools needed to manage and boot arm systems
@arm-tools
chrony
bcm283x-firmware
initial-setup
# Intel wireless firmware assumed never of use for disk images
-iwl*
-ipw*
-usb_modeswitch
-generic-release*
# make sure all the locales are available for inital-setup and anaconda to work
glibc-all-langpacks
%end
%post
# Find the architecture we are on
arch=$(uname -m)
# Setup Raspberry Pi firmware
if [[ $arch == "aarch64" ]] || [[ $arch == "armv7l" ]]; then
if [[ $arch == "aarch64" ]]; then
cp -P /usr/share/uboot/rpi_3/u-boot.bin /boot/efi/rpi3-u-boot.bin
cp -P /usr/share/uboot/rpi_4/u-boot.bin /boot/efi/rpi4-u-boot.bin
cp -P /usr/share/uboot/rpi_arm64/u-boot.bin /boot/efi/rpi-u-boot.bin
else
cp -P /usr/share/uboot/rpi_2/u-boot.bin /boot/efi/rpi2-u-boot.bin
cp -P /usr/share/uboot/rpi_3_32b/u-boot.bin /boot/efi/rpi3-u-boot.bin
cp -P /usr/share/uboot/rpi_4_32b/u-boot.bin /boot/efi/rpi4-u-boot.bin
fi
fi
releasever=$(rpm --eval '%{fedora}')
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-primary
echo "Packages within this disk image"
rpm -qa --qf '%{size}\t%{name}-%{version}-%{release}.%{arch}\n' |sort -rn
# remove random seed, the newly installed instance should make it's own
rm -f /var/lib/systemd/random-seed
# The enp1s0 interface is a left over from the imagefactory install, clean this up
rm -f /etc/NetworkManager/system-connections/*.nmconnection
dnf -y remove dracut-config-generic
# Remove machine-id on pre generated images
rm -f /etc/machine-id
touch /etc/machine-id
# Note that running rpm recreates the rpm db files which aren't needed or wanted
rm -f /var/lib/rpm/__db*
# Anaconda adds console=tty0 to the grub boot line on all images. this is problematic
# when you are using fedora via serial console as you do not get any output post grub
# linux does a good job of knowing what consoles need to be enabled.
# https://bugzilla.redhat.com/show_bug.cgi?id=2022757
if [[ $arch == "aarch64" ]] || [[ $arch == "armv7l" ]]; then
sed -i -e 's|console=tty0||g' /boot/loader/entries/*conf
fi
%end

View file

@ -0,0 +1,106 @@
# fedora-live-base.ks
#
# Defines the basics for all kickstarts in the fedora-live branch
# Does not include package selection (other then mandatory)
# Does not include localization packages or configuration
#
# Does includes "default" language configuration (kickstarts including
# this template can override these settings)
lang en_US.UTF-8
keyboard us
timezone US/Eastern
selinux --enforcing
firewall --enabled --service=mdns
xconfig --startxonboot
zerombr
clearpart --all
part / --size 5120 --fstype ext4
services --enabled=NetworkManager,ModemManager --disabled=sshd
network --bootproto=dhcp --device=link --activate
rootpw --lock --iscrypted locked
shutdown
%include fedora-repo.ks
%packages
# Explicitly specified here:
# <notting> walters: because otherwise dependency loops cause yum issues.
kernel
kernel-modules
kernel-modules-extra
# The point of a live image is to install
anaconda
anaconda-install-env-deps
anaconda-live
@anaconda-tools
# Anaconda has a weak dep on this and we don't want it on livecds, see
# https://fedoraproject.org/wiki/Changes/RemoveDeviceMapperMultipathFromWorkstationLiveCD
-fcoe-utils
-device-mapper-multipath
# Need aajohan-comfortaa-fonts for the SVG rnotes images
aajohan-comfortaa-fonts
# Without this, initramfs generation during live image creation fails: #1242586
dracut-live
# anaconda needs the locales available to run for different locales
glibc-all-langpacks
# provide the livesys scripts
livesys-scripts
%end
%post
# Enable livesys services
systemctl enable livesys.service
systemctl enable livesys-late.service
# enable tmpfs for /tmp
systemctl enable tmp.mount
# make it so that we don't do writing to the overlay for things which
# are just tmpdirs/caches
# note https://bugzilla.redhat.com/show_bug.cgi?id=1135475
cat >> /etc/fstab << EOF
vartmp /var/tmp tmpfs defaults 0 0
EOF
# work around for poor key import UI in PackageKit
rm -f /var/lib/rpm/__db*
echo "Packages within this LiveCD"
rpm -qa --qf '%{size}\t%{name}-%{version}-%{release}.%{arch}\n' |sort -rn
# Note that running rpm recreates the rpm db files which aren't needed or wanted
rm -f /var/lib/rpm/__db*
# go ahead and pre-make the man -k cache (#455968)
/usr/bin/mandb
# make sure there aren't core files lying around
rm -f /core*
# remove random seed, the newly installed instance should make it's own
rm -f /var/lib/systemd/random-seed
# convince readahead not to collect
# FIXME: for systemd
echo 'File created by kickstart. See systemd-update-done.service(8).' \
| tee /etc/.updated >/var/.updated
# Drop the rescue kernel and initramfs, we don't need them on the live media itself.
# See bug 1317709
rm -f /boot/*-rescue*
# Disable network service here, as doing it in the services line
# fails due to RHBZ #1369794
systemctl disable network
# Remove machine-id on pre generated images
rm -f /etc/machine-id
touch /etc/machine-id
%end

View file

@ -0,0 +1,106 @@
# fedora-live-base.ks
#
# Defines the basics for all kickstarts in the fedora-live branch
# Does not include package selection (other then mandatory)
# Does not include localization packages or configuration
#
# Does includes "default" language configuration (kickstarts including
# this template can override these settings)
lang en_US.UTF-8
keyboard us
timezone US/Eastern
selinux --enforcing
firewall --enabled --service=mdns
xconfig --startxonboot
zerombr
clearpart --all
##part / --size 5120 --fstype ext4
services --enabled=NetworkManager,ModemManager --disabled=sshd
network --bootproto=dhcp --device=link --activate
rootpw --lock --iscrypted locked
shutdown
%include fedora-repo.ks
%packages
# Explicitly specified here:
# <notting> walters: because otherwise dependency loops cause yum issues.
kernel
kernel-modules
kernel-modules-extra
# The point of a live image is to install
anaconda
anaconda-install-env-deps
anaconda-live
@anaconda-tools
# Anaconda has a weak dep on this and we don't want it on livecds, see
# https://fedoraproject.org/wiki/Changes/RemoveDeviceMapperMultipathFromWorkstationLiveCD
-fcoe-utils
-device-mapper-multipath
# Need aajohan-comfortaa-fonts for the SVG rnotes images
aajohan-comfortaa-fonts
# Without this, initramfs generation during live image creation fails: #1242586
dracut-live
# anaconda needs the locales available to run for different locales
glibc-all-langpacks
# provide the livesys scripts
livesys-scripts
%end
%post
# Enable livesys services
systemctl enable livesys.service
systemctl enable livesys-late.service
# enable tmpfs for /tmp
systemctl enable tmp.mount
# make it so that we don't do writing to the overlay for things which
# are just tmpdirs/caches
# note https://bugzilla.redhat.com/show_bug.cgi?id=1135475
cat >> /etc/fstab << EOF
vartmp /var/tmp tmpfs defaults 0 0
EOF
# work around for poor key import UI in PackageKit
rm -f /var/lib/rpm/__db*
echo "Packages within this LiveCD"
rpm -qa --qf '%{size}\t%{name}-%{version}-%{release}.%{arch}\n' |sort -rn
# Note that running rpm recreates the rpm db files which aren't needed or wanted
rm -f /var/lib/rpm/__db*
# go ahead and pre-make the man -k cache (#455968)
/usr/bin/mandb
# make sure there aren't core files lying around
rm -f /core*
# remove random seed, the newly installed instance should make it's own
rm -f /var/lib/systemd/random-seed
# convince readahead not to collect
# FIXME: for systemd
echo 'File created by kickstart. See systemd-update-done.service(8).' \
| tee /etc/.updated >/var/.updated
# Drop the rescue kernel and initramfs, we don't need them on the live media itself.
# See bug 1317709
rm -f /boot/*-rescue*
# Disable network service here, as doing it in the services line
# fails due to RHBZ #1369794
systemctl disable network
# Remove machine-id on pre generated images
rm -f /etc/machine-id
touch /etc/machine-id
%end

View file

@ -0,0 +1,9 @@
# Common packages removed from comps
# For F14, these removals should be moved to comps itself
%packages
# save some space
-hplip
%end

View file

@ -0,0 +1,33 @@
# fedora-livecd-xfce.ks
#
# Description:
# - Fedora Live Spin with the light-weight XFCE Desktop Environment
#
# Maintainer(s):
# - Rahul Sundaram <sundaram@fedoraproject.org>
# - Christoph Wickert <cwickert@fedoraproject.org>
# - Kevin Fenzi <kevin@tummy.com>
# - Adam Miller <maxamillion@fedoraproject.org>
%include fedora-live-base.ks
%include fedora-live-minimization.ks
%include fedora-xfce-common.ks
# need a bigger /
part / --size 6144
%post
# xfce configuration
# create /etc/sysconfig/desktop (needed for installation)
cat > /etc/sysconfig/desktop <<EOF
PREFERRED=/usr/bin/startxfce4
DISPLAYMANAGER=/usr/sbin/lightdm
EOF
# set livesys session type
sed -i 's/^livesys_session=.*/livesys_session="xfce"/' /etc/sysconfig/livesys
%end

View file

@ -0,0 +1,2 @@
repo --name=rawhide --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=$basearch
url --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=$basearch

View file

@ -0,0 +1,9 @@
# Include the appropriate repo definitions
# Exactly one of the following should be uncommented
# For the master branch the following should be uncommented
%include fedora-repo-rawhide.ks
# For non-master branches the following should be uncommented
# %include fedora-repo-not-rawhide.ks

View file

@ -0,0 +1,34 @@
# fedora-livecd-xfce.ks
#
# Description:
# - Fedora Live Spin with the light-weight XFCE Desktop Environment
#
# Maintainer(s):
# - Kevin Fenzi <kevin@tummy.com>
# - Adam Miller <maxamillion@fedoraproject.org>
# - Mukundan Ragavan <nonamedotc@fedoraproject.org>
%packages
fedora-release-xfce
# install env-group to resolve RhBug:1891500
@^xfce-desktop-environment
@xfce-apps
@xfce-extra-plugins
@xfce-media
@xfce-office
wget
system-config-printer
# save some space
-autofs
-acpid
-gimp-help
-desktop-backgrounds-basic
-aspell-* # dictionaries are big
-xfce4-sensors-plugin
-xfce4-eyes-plugin
%end

24
tests/scripts/run_tests.sh Executable file
View file

@ -0,0 +1,24 @@
#!/bin/sh
echo "Running pykickstart tests"
cd ./tests/
# Run ksvalidator on good kickstart examples
for f in ./good-ks/*.ks; do
echo "Checking $f"
ksvalidator $f || exit 1
done
# Run ksvalidator on bad kickstart examples
for f in ./bad-ks/*.ks; do
echo "Checking $f"
ksvalidator $f && exit 1
done
# Run ksflatten on a set of kickstarts
echo "Testing ksflatten with included kickstarts"
ksflatten -c ./include-ks/fedora-live-xfce.ks -o flat.ks || exit 1
ksvalidator flat.ks || exit 1
exit 0