From e646f1e99f114aee95631cf8c9bc0089e3c0a6dc Mon Sep 17 00:00:00 2001 From: Giancarlo Razzolini Date: Wed, 5 Aug 2015 16:45:25 -0300 Subject: [PATCH 1/2] * Corrected the reference to mkinitcpio-utils in the hook help. --- dropbear_install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dropbear_install b/dropbear_install index df8e84a..88033fc 100644 --- a/dropbear_install +++ b/dropbear_install @@ -108,7 +108,7 @@ help () cat< Date: Tue, 11 Aug 2015 16:24:00 -0300 Subject: [PATCH 2/2] * Got rid of the TMPDIR juggling by using BUILDROOT directly. --- dropbear_install | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/dropbear_install b/dropbear_install index 88033fc..40a5116 100644 --- a/dropbear_install +++ b/dropbear_install @@ -83,24 +83,16 @@ build () add_binary "killall" add_binary "dropbear" - cat /etc/dropbear/root_key > "${TMPDIR}"/authorized_keys + add_dir "/root/.ssh" + cat /etc/dropbear/root_key > "${BUILDROOT}"/root/.ssh/authorized_keys - add_dir "/.ssh" - add_file "${TMPDIR}/authorized_keys" "/.ssh/authorized_keys" add_full_dir "/etc/dropbear" add_file "/lib/libnss_files.so.2" add_dir "/var/run" - - touch "${TMPDIR}"/lastlog add_dir "/var/log" - add_file "${TMPDIR}/lastlog" "/var/log/lastlog" - - # cleanup - rm "${TMPDIR}/authorized_keys" - rm "${TMPDIR}/lastlog" + touch "${BUILDROOT}"/var/log/lastlog add_runscript - } help ()