mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-27 14:03:43 +03:00
kernel-install: remove unneeded modules.* files created by depmod (#5766)
Fixes #5765.
This commit is contained in:
parent
320ac7a627
commit
301fb51922
@ -2,7 +2,15 @@
|
||||
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
|
||||
# ex: ts=8 sw=4 sts=4 et filetype=sh
|
||||
|
||||
[[ $1 == "add" ]] || exit 0
|
||||
[[ $2 ]] || exit 1
|
||||
|
||||
exec depmod -a "$2"
|
||||
case "$1" in
|
||||
add)
|
||||
exec depmod -a "$2"
|
||||
;;
|
||||
remove)
|
||||
exec rm -f /lib/modules/"$2"/modules.{alias{,.bin},builtin.bin,dep{,.bin},devname,softdep,symbols{,.bin}}
|
||||
;;
|
||||
*)
|
||||
exit 0
|
||||
esac
|
||||
|
Loading…
x
Reference in New Issue
Block a user