Current File : //lib/python2.7/site-packages/cloudinit/config/cc_grub_dpkg.pyo |
�
oB�]c @ s; d Z d d l Z d d l m Z d d g Z d � Z d S( s�
Grub Dpkg
---------
**Summary:** configure grub debconf installation device
Configure which device is used as the target for grub installation. This module
should work correctly by default without any user configuration. It can be
enabled/disabled using the ``enabled`` config key in the ``grub_dpkg`` config
dict. The global config key ``grub-dpkg`` is an alias for ``grub_dpkg``. If no
installation device is specified this module will look for the first existing
device in:
- ``/dev/sda``
- ``/dev/vda``
- ``/dev/xvda``
- ``/dev/sda1``
- ``/dev/vda1``
- ``/dev/xvda1``
**Internal name:** ``cc_grub_dpkg``
**Module frequency:** per instance
**Supported distros:** ubuntu, debian
**Config keys**::
grub_dpkg:
enabled: <true/false>
grub-pc/install_devices: <devices>
grub-pc/install_devices_empty: <devices>
grub-dpkg: (alias for grub_dpkg)
i����N( t utilt ubuntut debianc C s� | j d | j d i � � } | s- i } n | j d t � } t j | � re | j d | | � d St j | d d � } t j | d d � } t j j d � r� t j j d � s� t j j d � rt j j d
� r| d k r� d } n | d k r]d } q]nW | d k rd
} n | d k r]d } x- d D]"