* Got rid of the TMPDIR juggling by using BUILDROOT directly.

This commit is contained in:
Giancarlo Razzolini 2015-08-11 16:24:00 -03:00
parent e646f1e99f
commit 59ba2c449c

View file

@ -83,24 +83,16 @@ build ()
add_binary "killall" add_binary "killall"
add_binary "dropbear" 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_full_dir "/etc/dropbear"
add_file "/lib/libnss_files.so.2" add_file "/lib/libnss_files.so.2"
add_dir "/var/run" add_dir "/var/run"
touch "${TMPDIR}"/lastlog
add_dir "/var/log" add_dir "/var/log"
add_file "${TMPDIR}/lastlog" "/var/log/lastlog" touch "${BUILDROOT}"/var/log/lastlog
# cleanup
rm "${TMPDIR}/authorized_keys"
rm "${TMPDIR}/lastlog"
add_runscript add_runscript
} }
help () help ()