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)
def _create_boot_uuid(boot_uuid): helpers.write_random_uuid_file(constants.BOOT_UUID)