Merge pull request #4 from grazzolini/develop

Develop
This commit is contained in:
Giancarlo Razzolini 2015-08-11 16:52:46 -03:00
commit da78b4c0b4

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 ()
@ -108,7 +100,7 @@ help ()
cat<<HELPEOF cat<<HELPEOF
This hook is meant to be used in conjunction with mkinitcpio-netconf and/or This hook is meant to be used in conjunction with mkinitcpio-netconf and/or
mkinitcpio-ppp. It DOES NOT provide any default shell. It will only install mkinitcpio-ppp. It DOES NOT provide any default shell. It will only install
and start dropbear on early userspace. In the package mkinitcpio-shells you and start dropbear on early userspace. In the package mkinitcpio-utils you
will find hooks and shells for remote unlocking a luks root partition, will find hooks and shells for remote unlocking a luks root partition,
among others. among others.
HELPEOF HELPEOF