-
8000
-
-
Notifications
You must be signed in to change notification settings - Fork 651
Rewrite Cobbler packaging #2220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
e8be5e4
to
ab55300
Compare
c59faf0
to
e69d21d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking wonderful. Travis is still broken. I will look at that probably Sunday.
@brejoc @watologo1 If you are fine with it I would like one of you two to hit the merge button. Of some else has concerns please speak up! |
e69d21d
to
f487073
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change of the default tftpboot is the reason for travis to fail because apparently this is not recognized in the setup.py
corrently.
P.S.: Gitter seems to be down atm... |
@Conan-Kudo This is your PR so your choice. Either we let the default as it was before or we manipulate the config for the Tests so it is as it was the default before. |
f487073
to
0dd629a
Compare
@SchoolGuy I'm manipulating the config in the tests. |
@Conan-Kudo I will have a look tomorrow. Now it's bedtime for me... Christmas with the parents is exhausting... (Probably the food but anyway...) |
The location /var/lib/tftpboot is used in all distribution families except for SUSE distributions. Thus, the standard location should be the generally accepted one, and the SUSE distributions will get and override in the spec.
The Debian/Ubuntu family no longer has a package representing mkisofs, and the default implementations of mkisofs between RH/Fedora and SUSE distributions varied far too much. Instead of allowing this insanity to continue, we're going to just force using xorrisofs as the mkisofs implementation everywhere. This at least makes the ISO creation behaviors consistent, making life easier for everybody, and makes it possible for Cobbler servers on distributions without a mkisofs provider to function.
Debian-based systems don't use /srv at all.
The file was getting installed into the completely useless path of: /usr/share/bash-completion/completions/cobbler/cobbler.completion This made the completion functionally useless. This change ensures it is installed as /usr/share/bash-completion/completions/cobbler.
This spec file is loosely based on the packaging shipped in Fedora and EPEL, but adds portability for SUSE distributions and Debian/Ubuntu using debbuild.
0dd629a
to
ea487f7
Compare
@SchoolGuy The tests pass, so you can merge now. |
@Conan-Kudo The Debian_10 packages v3.1.0 (cobbler and cobbler-web) won’t install on Debian Buster. Multiple errors, for example in the systemd service script (path to |
@hbokh Please file a bug. Then I can fix it. I am just preparing a PR for fixing the linter... |
@hbokh bug reports welcome. I only made sure it built and the files looked sane. Code fixes are likely still required. |
Done! See #2238 |
This pull request rewrites the Cobbler packaging into something that supports the full range of distributions that Cobbler is intended to support.
As part of this, the old Debian packaging that has been unmaintained for ~2 years has been dropped and the Debian support has been merged into the cobbler spec file.
Some other fixes have been made as separate commits to fix support for building and running Cobbler everywhere, too.
You can see a build of the spec on OBS here: https://build.opensuse.org/package/show/home:Pharaoh_Atem:cobbler-dev/cobbler