Update postrm
This commit is contained in:
parent
62ecaf6d0a
commit
25177827b8
@ -1,3 +1,17 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
depmod || echo "depmod: failed please investigate!"
|
|
||||||
|
# Reset kernel modules
|
||||||
|
rm -rfv /usr/lib/modules/*/modules.alias || true
|
||||||
|
rm -rfv /usr/lib/modules/*/modules.builtin.alias.bin || true
|
||||||
|
rm -rfv /usr/lib/modules/*/modules.dep || true
|
||||||
|
rm -rfv /usr/lib/modules/*/modules.devname || true
|
||||||
|
rm -rfv /usr/lib/modules/*/modules.symbols || true
|
||||||
|
rm -rfv /usr/lib/modules/*/modules.alias.bin || true
|
||||||
|
rm -rfv /usr/lib/modules/*/modules.builtin.bin || true
|
||||||
|
rm -rfv /usr/lib/modules/*/modules.dep.bin || true
|
||||||
|
rm -rfv /usr/lib/modules/*/modules.softdep || true
|
||||||
|
rm -rfv /usr/lib/modules/*/modules.symbols.bin || true
|
||||||
|
# Regenerate kernel module configs
|
||||||
|
depmod -a || true
|
||||||
|
# Update initramfs with new module config
|
||||||
update-initramfs -c -k all
|
update-initramfs -c -k all
|
||||||
|
Loading…
Reference in New Issue
Block a user