/usr/lib/python3/dist-packages/provisioningserver/drivers/osystem/suse.py is in python3-maas-provisioningserver 2.0.0~beta3+bzr4941-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | # Copyright 2014-2015 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
"""SUSE Operating System."""
__all__ = [
"SUSEOS",
]
from provisioningserver.drivers.osystem import (
BOOT_IMAGE_PURPOSE,
OperatingSystem,
)
DISTRO_SERIES_CHOICES = {
'opensuse13': 'openSUSE 13.1',
}
DISTRO_SERIES_DEFAULT = 'opensuse13'
assert DISTRO_SERIES_DEFAULT in DISTRO_SERIES_CHOICES
class SUSEOS(OperatingSystem):
"""SUSE operating system."""
name = "suse"
title = "SUSE"
def get_boot_image_purposes(self, arch, subarch, release, label):
"""Gets the purpose of each boot image."""
return [
BOOT_IMAGE_PURPOSE.XINSTALL
]
def is_release_supported(self, release):
"""Return True when the release is supported, False otherwise."""
return release in DISTRO_SERIES_CHOICES
def get_default_release(self):
"""Gets the default release to use when a release is not
explicit."""
return DISTRO_SERIES_DEFAULT
def get_release_title(self, release):
"""Return the title for the given release."""
return DISTRO_SERIES_CHOICES.get(release)
|