From e26e5beb97cd899b53ecd89e0456594a1e561afb Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Fri, 10 Nov 2023 11:05:02 +0100 Subject: [PATCH] add base_common_cleanup --- usr/lib/archboot/cpio/hooks/base_common_cleanup | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 usr/lib/archboot/cpio/hooks/base_common_cleanup diff --git a/usr/lib/archboot/cpio/hooks/base_common_cleanup b/usr/lib/archboot/cpio/hooks/base_common_cleanup new file mode 100644 index 000000000..d8da34437 --- /dev/null +++ b/usr/lib/archboot/cpio/hooks/base_common_cleanup @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: GPL-3.0-or-later +# Created by Tobias Powalowski + +_run () +{ + ! grep -qw 'archboot' /etc/hostname && return + _APPS="journalctl setfont mkfs.btrfs gzip systemctl mountpoint" + _install_files + for i in ${_APPS}; do + rm /usr/bin/"${i}" + done +} + +# vim: set ft=sh ts=4 sw=4 et: