Ejemplo n.º 1
0
    def _get_kernel_options(self):
        """Return a kernel options string for bootloader configuration.

            This is the hook where subclasses may specify a set of kernel
            options which should be included in the images bootloader
            configuration.

            A sensible default implementation is provided.
        """

        if self.ks is None:
            r = "ro rd.live.image"
        else:
            r = kickstart.get_kernel_args(self.ks)

        return r
Ejemplo n.º 2
0
    def _get_kernel_options(self):
        """Return a kernel options string for bootloader configuration.

            This is the hook where subclasses may specify a set of kernel
            options which should be included in the images bootloader
            configuration.

            A sensible default implementation is provided.
        """

        if self.ks is None:
            r = "ro rd.live.image"
        else:
            r = kickstart.get_kernel_args(self.ks)

        return r
Ejemplo n.º 3
0
    def _get_kernel_options(self):
        """Return a kernel options string for bootloader configuration.

            This is the hook where subclasses may specify a set of kernel options
            which should be included in the images bootloader configuration.

            A sensible default implementation is provided.
        """
        if self.ks is None:
            r = "ro liveimg quiet"
            if os.path.exists(self._instroot + "/usr/bin/rhgb"):
                r += " rhgb"
            if os.path.exists(self._instroot + "/usr/bin/plymouth"):
                r += " rhgb"
            return r
        r = kickstart.get_kernel_args(self.ks)
        if os.path.exists(self._instroot + "/usr/bin/rhgb") or \
           os.path.exists(self._instroot + "/usr/bin/plymouth"):
            r += " rhgb"
        return r
Ejemplo n.º 4
0
    def _get_kernel_options(self):
        """Return a kernel options string for bootloader configuration.

            This is the hook where subclasses may specify a set of kernel options
            which should be included in the images bootloader configuration.

            A sensible default implementation is provided.
        """
        if self.ks is None:
            r = "ro liveimg quiet"
            if os.path.exists(self._instroot + "/usr/bin/rhgb"):
                r += " rhgb"
            if os.path.exists(self._instroot + "/usr/bin/plymouth"):
                r += " rhgb"
            return r
        r = kickstart.get_kernel_args(self.ks)
        if os.path.exists(self._instroot + "/usr/bin/rhgb") or \
           os.path.exists(self._instroot + "/usr/bin/plymouth"):
            r += " rhgb"
        return r