diff --git a/usr/lib/archboot/cpio/hooks/mods_cleanup b/usr/lib/archboot/cpio/hooks/mods_cleanup new file mode 100644 index 000000000..e58dd1b6f --- /dev/null +++ b/usr/lib/archboot/cpio/hooks/mods_cleanup @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: GPL-3.0-or-later +# Created by Tobias Powalowski + +_run () +{ + ! grep -qw 'archboot' /etc/hostname && return + _install_mods + rm -r /lib/modules + _MODS="" _MOD_DEPS="" +} +# vim: set ft=sh ts=4 sw=4 et: