예제 #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)
예제 #2
0
def _create_boot_uuid(boot_uuid):
    helpers.write_random_uuid_file(constants.BOOT_UUID)