summaryrefslogtreecommitdiff
path: root/modules.d/95ssh-client
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2012-06-27 09:32:22 +0200
committerHarald Hoyer <harald@redhat.com>2012-06-29 12:41:27 +0200
commit53fe81e752c59bf526237ea2a1a3e7879d479c9b (patch)
treec0ac7959467b32c0e66bc13cb14060a2680962ca /modules.d/95ssh-client
parente716c0f121d876b381f9cd9841267959732f975d (diff)
downloaddracut-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/95ssh-client')
-rwxr-xr-xmodules.d/95ssh-client/module-setup.sh13
1 files changed, 6 insertions, 7 deletions
diff --git a/modules.d/95ssh-client/module-setup.sh b/modules.d/95ssh-client/module-setup.sh
index 8d62b2dd..5a38f8ff 100755
--- a/modules.d/95ssh-client/module-setup.sh
+++ b/modules.d/95ssh-client/module-setup.sh
@@ -37,14 +37,14 @@ inst_sshenv()
# Copy over ssh key and knowhosts if needed
[[ $sshkey ]] && {
- inst $sshkey
- [[ -f /root/.ssh/known_hosts ]] && inst /root/.ssh/known_hosts
- [[ -f /etc/ssh/ssh_known_hosts ]] && inst /etc/ssh/ssh_known_hosts
+ inst_simple $sshkey
+ [[ -f /root/.ssh/known_hosts ]] && inst_simple /root/.ssh/known_hosts
+ [[ -f /etc/ssh/ssh_known_hosts ]] && inst_simple /etc/ssh/ssh_known_hosts
}
# Copy over root and system-wide ssh configs.
- [[ -f /root/.ssh/config ]] && inst /root/.ssh/config
- [[ -f /etc/ssh/ssh_config ]] && inst /etc/ssh/ssh_config
+ [[ -f /root/.ssh/config ]] && inst_simple /root/.ssh/config
+ [[ -f /etc/ssh/ssh_config ]] && inst_simple /etc/ssh/ssh_config
return 0
}
@@ -55,8 +55,7 @@ install() {
return 1
}
- inst ssh
- inst scp
+ dracut_install ssh scp
inst_sshenv
}