don't need to reboot with proper console

This commit is contained in:
Jesse Andrews 2011-10-31 09:18:37 -07:00
parent 16341967b1
commit 0d0cddd125

View file

@ -329,12 +329,6 @@ chmod 755 $RUN_SH
RC_LOCAL=$ROOTFS/etc/init.d/zlocal RC_LOCAL=$ROOTFS/etc/init.d/zlocal
cat > $RC_LOCAL <<EOF cat > $RC_LOCAL <<EOF
#!/bin/sh -e #!/bin/sh -e
# Reboot if this is our first run to enable console log on $DIST_NAME :(
if [ ! -e /root/firstlaunch ]; then
touch /root/firstlaunch
reboot -f
exit 0
fi
# cloud-init overwrites the hostname with ubuntuhost # cloud-init overwrites the hostname with ubuntuhost
echo $GUEST_NAME > /etc/hostname echo $GUEST_NAME > /etc/hostname
hostname $GUEST_NAME hostname $GUEST_NAME