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 ! [[ $hostonly ]]; then
|
||||||
if [[ -z $filesystems ]]; then
|
if [[ -z $filesystems ]]; then
|
||||||
instmods '=fs'
|
instmods '=fs'
|
||||||
|
# hardcoded list of exceptions
|
||||||
|
# to save a lot of space
|
||||||
|
rm -fr ${initdir}/lib/modules/*/kernel/fs/ocfs2
|
||||||
else
|
else
|
||||||
instmods $filesystems
|
instmods $filesystems
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
hostonly='' instmods $(get_fs_type "/dev/block/$(find_root_block_device)")
|
hostonly='' instmods $(get_fs_type "/dev/block/$(find_root_block_device)")
|
||||||
fi
|
fi
|
||||||
# hardcoded list of exceptions
|
|
||||||
rm -fr ${initdir}/lib/modules/*/kernel/fs/ocfs2
|
|
||||||
else
|
else
|
||||||
hostonly='' instmods $drivers $filesystems
|
hostonly='' instmods $drivers $filesystems
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue