Giter VIP home page Giter VIP logo

Comments (9)

bdwyertech avatar bdwyertech commented on May 24, 2024 1

I typically use this to run a final stage update

d-i preseed/late_command string \
  in-target rm -rf /var/lib/apt/lists ; \
  in-target apt-get update ; \
  in-target apt-get -y upgrade ; \
  in-target apt-get -y dist-upgrade ; \
  in-target apt-get -y autoremove ; \
  in-target apt-get autoclean ; \
  in-target apt-get clean

from packer-build.

tylert avatar tylert commented on May 24, 2024

Ubuntu seems to ignore the following:

ubiquity ubiquity/download_updates boolean true
ubiquity ubiquity/use_nonfree boolean true

from packer-build.

tylert avatar tylert commented on May 24, 2024

It would appear that d-i pkgsel/upgrade select full-upgrade also doesn't work properly either.

from packer-build.

tylert avatar tylert commented on May 24, 2024

It may be necessary to remove the junk at the beginning of all the ubuntu preseed files (the junk that was copied from the official ISO).

from packer-build.

dragon788 avatar dragon788 commented on May 24, 2024

We trigger updates using a preseed/late_command coupled with an additional script hosted alongside the preseed file (which Packer happily serves but can be tricky to access without knowing the IP of the preseed server from the host instance, I'm not sure if the Packer .HTTPIP var shows up inside the preseed environment).

from packer-build.

tylert avatar tylert commented on May 24, 2024

This could be done with an inline command. I was just hoping not to have to do that since it's a bit ugly. The ubiquity/debian installer has such a command--ubiquity just seems to ignore it for some reason.

Might be the same "fix" as proposed for #9--cull the "official" goop at the beginning of the preseed files.

from packer-build.

dragon788 avatar dragon788 commented on May 24, 2024

Are you using the desktop ISO or the server one? I thought Ubiquity was
only for the desktop versions of the installers. I typically only use the
d-i commands when building from the server ISO as those consistently work
with only a few exceptions.

On Thu, Mar 3, 2016 at 4:25 PM, Tyler Tidman [email protected]
wrote:

This could probably be done with an inline command. I'm was just hoping
not to have to do that since it's a bit ugly. The ubiquity/debian installer
has such a command--ubiquity just seems to ignore it for some reason.

Might be the same "fix" as proposed for #9
#9 the "official"
goop at the beginning of the preseed files.


Reply to this email directly or view it on GitHub
#7 (comment).

from packer-build.

tylert avatar tylert commented on May 24, 2024

from packer-build.

tylert avatar tylert commented on May 24, 2024

Pretty sure that http://cdimage.ubuntu.com/netboot/ is going to be a slightly better and less hackish way of making sure all updates are yanked in at build time.

This might also get around some of the stupidity of ubiquity as well and allow better automation for building desktop images too.

from packer-build.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.