Giter Site home page Giter Site logo

Comments (6)

micchickenburger avatar micchickenburger commented on August 16, 2024

Related to pull request #50

from packer-plugin-arm-image.

yuval-k avatar yuval-k commented on August 16, 2024

not too familiar with this, how would you check for systemd? do your have a heuristic in mind?

from packer-plugin-arm-image.

micchickenburger avatar micchickenburger commented on August 16, 2024

I think it would be fine to just check for the /run/systemd directory. If that directory exists I think it's safe to assume the system uses systemd instead of sysvinit.

from packer-plugin-arm-image.

hoshsadiq avatar hoshsadiq commented on August 16, 2024

Presuming this isn't just images based on systemd. You could potentially have a base image that already puts the correct file there (e.g. by installing dnsmasq or whatnot). In my opinion that file should either be mounted defensively or the mount should explicitly be enabled through an option rather than by default. Having resolv.conf mounted is a network/host specific use case.

from packer-plugin-arm-image.

rgl avatar rgl commented on August 16, 2024

I've tried your workaround with ubuntu 20.04 guest (on a ubuntu 20.04 host with packer-builder-arm-image 0.1.4.5 and packer 1.5.6) and it seems to work, but when I try to execute the shell provisioner with:

"provisioners": [
    {
      "type": "shell",
      "execute_command": "bash {{ .Path }}",
      "script": "provision.sh"
    }
  ]

It errors out with (no mater what I put in execute_command (or even if I remove it), it never executes bash):

==> arm-image: Provisioning with shell script: provision.sh
==> arm-image: chroot: failed to run command ‘/bin/sh’: No such file or directory

Using an "inline": "uname" also fails with the same error.

Do you have any clue of what is going on?

from packer-plugin-arm-image.

yuval-k avatar yuval-k commented on August 16, 2024

closing as fixed by #70

from packer-plugin-arm-image.

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.