don't need to reboot with proper console
This commit is contained in:
parent
16341967b1
commit
0d0cddd125
1 changed files with 0 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue