|
|
@ -17,8 +17,17 @@ echo_status |
|
|
|
|
|
|
|
openssh_runit_link() { |
|
|
|
|
|
|
|
echo "ln -svnf /etc/ssh /service/ssh" >> $root/var/adm/postinstall/openssh |
|
|
|
echo "ln -svnf /etc/ssh /service/ssh" >> $root/var/adm/postinstall/openssh |
|
|
|
} |
|
|
|
|
|
|
|
inject_tardiba_root_key() { |
|
|
|
|
|
|
|
mkdir -p $root/root/.ssh |
|
|
|
touch $root/root/.ssh/authorized_keys |
|
|
|
chmod 755 $root/root/.ssh |
|
|
|
cat $base/target/tardiba/99-final/id_rsa.pub > $root/root/.ssh/authorized_keys |
|
|
|
chmod 600 $root/root/.ssh/authorized_keys |
|
|
|
} |
|
|
|
|
|
|
|
hook_add postinstall 6 "openssh_runit_link" |
|
|
|
hook_add postinstall 7 "inject_tardiba_root_key" |