Commit b76aa227 authored by Michael Shigorin's avatar Michael Shigorin

live: implemented kernel driver cleanup

This one is alike to install2's one; it's not a shared rootfs script/variable though as contexts differ a lot, let's be careful. The commit has been missing from 1.1.64 somehow, found in patch series while figuring out why LIVE_CLEANUP_KDRIVERS seems to be just ignored in live-privacy *after* the massive rebase of that branch...
parent 7f5d8b8a
......@@ -18,6 +18,7 @@ use/live: use/stage2 sub/rootfs@live sub/stage2@live use/services
@$(call add,DEFAULT_SERVICES_ENABLE,$(_ON))
@$(call add,DEFAULT_SERVICES_DISABLE,$(_OFF))
@$(call add,CONTROL,rpcbind:local)
@$(call xport,LIVE_CLEANUP_KDRIVERS)
use/live/.base: use/live use/syslinux/ui/menu
@$(call add,LIVE_LISTS,$(call tags,base live))
......
#!/bin/sh -e
if [ -n "$GLOBAL_LIVE_CLEANUP_KDRIVERS" ]; then
for i in $GLOBAL_LIVE_CLEANUP_KDRIVERS; do
rm -rf /lib/modules/*/"$i"
done
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment