Adding a new Operating System to the cobbler signature file


This has been an exciting week of code analysis and debugging. As I mentioned previously cobbler doesn’t currently have support for Fedora 27. It it turns out adding a new Operating System signature is super easy. For my specific situation I forked the cobbler git repo and copied the Fedora 26 signature line and changed the 6 to a 7. Once I updated the signature file and restarted cobblerd everything imported without issue:

$ cobbler import --name=fedora27 --arch=x86_64 --path=/mnt

task started: 2017-12-16_095536_import
task started (id=Media import, time=Sat Dec 16 09:55:36 2017)
Found a candidate signature: breed=redhat, version=rhel6
Found a candidate signature: breed=redhat, version=rhel7
Found a candidate signature: breed=redhat, version=fedora21
Found a candidate signature: breed=redhat, version=fedora20
Found a candidate signature: breed=redhat, version=fedora23
Found a candidate signature: breed=redhat, version=fedora22
Found a candidate signature: breed=redhat, version=fedora25
Found a candidate signature: breed=redhat, version=fedora24
Found a candidate signature: breed=redhat, version=fedora27
Found a matching signature: breed=redhat, version=fedora27
Adding distros from path /var/www/cobbler/ks_mirror/fedora27-x86_64:
creating new distro: fedora27-x86_64
trying symlink: /var/www/cobbler/ks_mirror/fedora27-x86_64 -> /var/www/cobbler/links/fedora27-x86_64
creating new profile: fedora27-x86_64
associating repos
checking for rsync repo(s)
checking for rhn repo(s)
checking for yum repo(s)
starting descent into /var/www/cobbler/ks_mirror/fedora27-x86_64 for fedora27-x86_64
processing repo at : /var/www/cobbler/ks_mirror/fedora27-x86_64
need to process repo/comps: /var/www/cobbler/ks_mirror/fedora27-x86_64
looking for /var/www/cobbler/ks_mirror/fedora27-x86_64/repodata/*comps*.xml
Keeping repodata as-is :/var/www/cobbler/ks_mirror/fedora27-x86_64/repodata
*** TASK COMPLETE ***

Now back to our regularly scheduled programming. Time for some eBPF testing!

This article was posted by Matty on 2017-12-16 10:07:01 -0500 -0500