kernel-modules: only remove ocfs2, if all filesystems are installed
parent
d4abad2288
commit
e9e93e2ec6
|
@ -17,14 +17,15 @@ if [[ -z $drivers ]]; then
|
|||
if ! [[ $hostonly ]]; then
|
||||
if [[ -z $filesystems ]]; then
|
||||
instmods '=fs'
|
||||
# hardcoded list of exceptions
|
||||
# to save a lot of space
|
||||
rm -fr ${initdir}/lib/modules/*/kernel/fs/ocfs2
|
||||
else
|
||||
instmods $filesystems
|
||||
fi
|
||||
else
|
||||
hostonly='' instmods $(get_fs_type "/dev/block/$(find_root_block_device)")
|
||||
fi
|
||||
# hardcoded list of exceptions
|
||||
rm -fr ${initdir}/lib/modules/*/kernel/fs/ocfs2
|
||||
else
|
||||
hostonly='' instmods $drivers $filesystems
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue