[Emdebian-logs] [polystrap] 01/04: remove firstbootscript first, then do rest

Johannes Schauer josch-guest at moszumanska.debian.org
Fri Jan 10 22:45:28 UTC 2014


This is an automated email from the git hooks/post-receive script.

josch-guest pushed a commit to branch master
in repository polystrap.

commit 1e5ad4fdf1d248ab92f2cf6d9321291934781c38
Author: josch <j.schauer at email.de>
Date:   Fri Jan 10 18:13:00 2014 +0100

    remove firstbootscript first, then do rest
---
 default/hooks/firstboot | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/default/hooks/firstboot b/default/hooks/firstboot
index 7f1119e..b97d79f 100644
--- a/default/hooks/firstboot
+++ b/default/hooks/firstboot
@@ -8,6 +8,9 @@ cat > $ROOTDIR/etc/init.d/firstboot << __END__
 # Default-Stop:
 ### END INIT INFO
 
+update-rc.d -f firstboot remove
+
+# generating ssh host key to be unique
 for f in rsa dsa ecdsa; do rm -rf /etc/ssh/ssh_host_\${f}_key; done
 echo "generating ssh rsa key..."
 ssh-keygen -q -t rsa -f /etc/ssh/ssh_host_rsa_key -C "" -N ""
@@ -15,8 +18,6 @@ echo "generating ssh dsa key..."
 ssh-keygen -q -t dsa -f /etc/ssh/ssh_host_dsa_key -C "" -N ""
 echo "generating ssh ecdsa key..."
 ssh-keygen -q -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -C "" -N ""
-
-update-rc.d -f firstboot remove
 __END__
 
 chmod +x $ROOTDIR/etc/init.d/firstboot

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/emdebian/polystrap.git



More information about the Emdebian-logs mailing list