packaging.py: Use misc.get_system_type()

Dump _get_relmap() and _RELEASE_MAP in favor of common code.
Also remove the repo management stuff; it was only used by the
now-obsolete calamari task.

Fixes: #10236
Signed-off-by: Dan Mick <dan.mick@redhat.com>
orchestra/run.py: document use of Raw()

Signed-off-by: Dan Mick <dan.mick@redhat.com>
misc.get_system_type(): fix distro=False version=True, add comments

Fixes: #10237
Signed-off-by: Dan Mick <dan.mick@redhat.com>
misc.create_file: if sudo, must sudo for chmod as well.

Fixes: #10238
Signed-off-by: Dan Mick <dan.mick@redhat.com>
misc.append_lines_to_file: respect sudo

Fixes: #10239
Signed-off-by: Dan Mick <dan.mick@redhat.com>