From b502f2c87275766e81adb1406a87ddb507b5e87c Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 8 Aug 2016 18:32:03 +0300 Subject: Fix installer.customize to copy router img --- installer.customize | 16 ++-------------- 1 file 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 <> "$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/." -- cgit v1.2.1