Update postinst

This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2024-02-02 00:03:50 +03:00 committed by GitHub
parent 3b5bbadd10
commit 62ecaf6d0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,3 +1,17 @@
#! /bin/sh #! /bin/sh
depmod
# 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
# Update initramfs with new module config
update-initramfs -c -k all update-initramfs -c -k all