diff options
author | Harald Hoyer <harald@redhat.com> | 2012-06-27 09:32:22 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2012-06-29 12:41:27 +0200 |
commit | 53fe81e752c59bf526237ea2a1a3e7879d479c9b (patch) | |
tree | c0ac7959467b32c0e66bc13cb14060a2680962ca /modules.d/95nfs | |
parent | e716c0f121d876b381f9cd9841267959732f975d (diff) | |
download | dracut-53fe81e752c59bf526237ea2a1a3e7879d479c9b.tar.gz dracut-53fe81e752c59bf526237ea2a1a3e7879d479c9b.tar.bz2 dracut-53fe81e752c59bf526237ea2a1a3e7879d479c9b.zip |
modules.d/*/module-setup.sh: combine and specify type for installs
To speedup image creation, combine dracut_install calls and specify the exact type.
E.g. inst_script instead of the generic inst.
Diffstat (limited to 'modules.d/95nfs')
-rwxr-xr-x | modules.d/95nfs/module-setup.sh | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/modules.d/95nfs/module-setup.sh b/modules.d/95nfs/module-setup.sh index fb4dc9cc..b170de5f 100755 --- a/modules.d/95nfs/module-setup.sh +++ b/modules.d/95nfs/module-setup.sh @@ -31,21 +31,11 @@ installkernel() { install() { local _i local _nsslibs - type -P portmap >/dev/null && dracut_install portmap - type -P rpcbind >/dev/null && dracut_install rpcbind + dracut_install -o portmap rpcbind rpc.statd mount.nfs \ + mount.nfs4 umount rpc.idmapd sed /etc/netconfig + dracut_install /etc/services /etc/nsswitch.conf /etc/rpc /etc/protocols /etc/idmapd.conf - dracut_install rpc.statd mount.nfs mount.nfs4 umount - [ -f /etc/netconfig ] && inst_simple /etc/netconfig - inst_simple /etc/services - for i in /etc/nsswitch.conf /etc/rpc /etc/protocols /etc/idmapd.conf; do - inst_simple $i - done - dracut_install rpc.idmapd - dracut_install sed - - inst_libdir_file 'libnfsidmap_nsswitch.so*' - inst_libdir_file 'libnfsidmap/*.so' - inst_libdir_file 'libnfsidmap*.so*' + inst_libdir_file 'libnfsidmap_nsswitch.so*' 'libnfsidmap/*.so' 'libnfsidmap*.so*' _nsslibs=$(sed -e '/^#/d' -e 's/^.*://' -e 's/\[NOTFOUND=return\]//' /etc/nsswitch.conf \ | tr -s '[:space:]' '\n' | sort -u | tr -s '[:space:]' '|') |