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/95ssh-client | |
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/95ssh-client')
-rwxr-xr-x | modules.d/95ssh-client/module-setup.sh | 13 |
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 } |