#!/bin/bash

# The cache is needed when kernel livepatch packages are installed on
# transitional systems. The livepatch modules are loaded into the currently
# running kernel but the rpm database is updated in a hidden snapshot.
# "/var/cache" makes the meta data visible on the currently running system.
#
# The cache is used also to speed up repeated "klp -v patches" calls.
#
# Safe to clear on boot: the booted system now has direct access
# to the updated snapshot metadata.
rm -f /var/cache/livepatch/*

# vim: ai sw=4 et sts=4 ft=sh
