Exemplo n.º 1
0
def _create_installation_uuid(_log, firstboot=False):
    if not firstboot:
        if os.path.exists(constants.INSTALLATION_UUID):
            return
        _log.warning('installation uuid not found, recreating.')

    helpers.write_random_uuid_file(constants.INSTALLATION_UUID)
Exemplo n.º 2
0
def _create_boot_uuid(boot_uuid):
    helpers.write_random_uuid_file(constants.BOOT_UUID)