How to modify first boot script in the TDN KVM template in SolusVM?

Follow
Was this article helpful?
0 out of 1 found this helpful
Return to top

Comments

2 comments

  • Avatar
    Jonathan Hamon

    This is what I have in mine for Ubuntu 18.04 I was hoping it would update when it first boots but there are around 5 things that need user input so how do I fix this.

    mkswap /dev/vda2;update-initramfs -u;resize2fs /dev/vda1;apt-get update;apt-get upgrade -y;systemctl disable guestfs-firstboot;reboot

    0
    Comment actions Permalink
  • Avatar
    Jonathan Hamon

    what you need to do to get this to work with Ubuntu is enable non interactive mode so you will have a file like this

    swapoff /dev/vda2;mkswap /dev/vda2;update-initramfs -u;resize2fs /dev/vda1;DEBIAN_FRONTEND=noninteractive apt-get update -y;DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade -y;systemctl disable guestfs-firstboot;reboot

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request