summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-08-08 18:32:03 +0300
committerLars Wirzenius <liw@liw.fi>2016-08-08 18:32:03 +0300
commitb502f2c87275766e81adb1406a87ddb507b5e87c (patch)
tree77969753347d2dc6e12e48f88bd185e5ceab6b27
parente9b7fde44fa4ebc1a85c6d4d87116475007dc218 (diff)
downloadminipc-router-b502f2c87275766e81adb1406a87ddb507b5e87c.tar.gz
Fix installer.customize to copy router img
-rw-r--r--installer.customize16
1 files changed, 2 insertions, 14 deletions
diff --git a/installer.customize b/installer.customize
index 8649abf..e1c1d73 100644
--- a/installer.customize
+++ b/installer.customize
@@ -26,17 +26,5 @@ export LC_ALL=C
rootdir="$1"
-# Create an account for ansible.
-chroot "$rootdir" adduser --gecos 'Installer' --disabled-password installer
-
-# Install an authorize_keys file so that ansible can access the account.
-chroot "$rootdir" install -d -o ansible -g ansible -m 0700 /home/ansible/.ssh
-install -m 0600 authorized_keys "$rootdir/home/ansible/.ssh/authorized_keys"
-chroot "$rootdir" chown ansible:ansible /home/ansible/.ssh/authorized_keys
-
-# Add ansible to sudoers, without password.
-cat <<EOF >> "$rootdir/etc/sudoers.d/installer"
-installer ALL=(ALL:ALL) NOPASSWD: ALL
-EOF
-chroot "$rootdir" chown root:root /etc/sudoers.d/installer
-chroot "$rootdir" chmod 0440 /etc/sudoers.d/installer
+# Put router image on installer image.
+cp router.img.gz "$1/."