yes you can packer can handle reboots too
cloud-init will be fire and forget, so you can have a script that checks for for file mark ie cloud-init creates a file: /var/tmp/completed and a script wait for that file to exists. I personally would patch from a shell script, to control the reboot and wait, but cloud-init should work too On Mon, Sep 20, 2021 at 5:55 PM [email protected] <[email protected]> wrote: > Can i patch ubuntu during a packer build in the cloud-init script? > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/hashicorp/packer/issues > IRC: #packer-tool on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Packer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/packer-tool/45a53725-13a6-4392-98d2-06a0f8fe06acn%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/45a53725-13a6-4392-98d2-06a0f8fe06acn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Alvaro -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/hashicorp/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAHqq0ezvA6%2BKQHj%2BuuJ8541MVVzLB1c2T4ahuhGpSuxY%3DJehsQ%40mail.gmail.com.
