Commit 12a79dc9 authored by David Johnson's avatar David Johnson

More quick hacks for the Hadoop image.

(later on we have to fixup the pre-baked key stuff, of course)
parent 4201db1e
Pipeline #1291 skipped
......@@ -239,7 +239,7 @@ EOF
# Install hadoop and our config files
chroot $MNT /usr/bin/apt-get update
chroot $MNT /usr/bin/apt-get install -y vim-nox openjdk-7-jdk expect
chroot $MNT /usr/bin/apt-get install -y vim-nox openjdk-7-jdk expect pssh
chroot $MNT /usr/bin/apt-get clean all
wget http://www.emulab.net/downloads/hadoop-2.7.1.tar.gz
......@@ -253,12 +253,14 @@ EOF
touch $MNT/root/.ssh/authorized_keys
chmod 600 $MNT/root/.ssh/authorized_keys
cat /root/.ssh/id_rsa.pub >> $MNT/root/.ssh/authorized_keys
cp -p /root/.ssh/id_rsa $MNT/root/.ssh/id_rsa
mkdir -p $MNT/home/ubuntu/.ssh
chmod 700 $MNT/home/ubuntu/.ssh
touch $MNT/home/ubuntu/.ssh/authorized_keys
chmod 600 $MNT/home/ubuntu/.ssh/authorized_keys
cat /root/.ssh/id_rsa.pub >> $MNT/home/ubuntu/.ssh/authorized_keys
cp -p /root/.ssh/id_rsa $MNT/home/ubuntu/.ssh/id_rsa
# Make sure ubuntu user's homedir and .ssh is sane. Do everything cause
# we just copied in a bunch of stuff as root.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment