mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
add mods_cleanup
This commit is contained in:
parent
5449f69580
commit
505609bfa6
1 changed files with 12 additions and 0 deletions
12
usr/lib/archboot/cpio/hooks/mods_cleanup
Normal file
12
usr/lib/archboot/cpio/hooks/mods_cleanup
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
||||||
|
|
||||||
|
_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:
|
Loading…
Reference in a new issue