Git Product home page Git Product logo

Comments (3)

ferricoxide avatar ferricoxide commented on August 17, 2024

In general, /boot/grub.conf should always exist (GRUB generally won't boot the system without it since its contents tell GRUB where to find the subsequent parts of the boot-time chain-load of the OS). This handler is in place mostly to ensure that the other (mostly redundant) pointers to the cardinal grub.conf are also present. My assumption on the "could not create" is that Salt is ungracefully complaining that the target already exists (stuff run from 'module.run' seem to have less-graceful handling of such "already-exists" types of scenarios).

from ash-linux-formula.

lorengordon avatar lorengordon commented on August 17, 2024

There's some kind of conflict in the handling of /boot/grub.conf. It seems the end result is desired for it to be a hard link to /boot/grub/grub.conf. On the centos build, that's how it starts out, as well. But after running the ash-linux states, it's a hard link to /boot/grub/grub.conf.bak. /boot/grub/grub.conf is actually a different file. I'm guessing the conflict is in one of the other states using file.replace on /boot/grub/grub.conf...

from ash-linux-formula.

lorengordon avatar lorengordon commented on August 17, 2024

Ok, I figured out the logic and inter-play between V38579, V38581, and V38583 that was causing the error where it could not create the hard link. I've resolved that with an unless test that executes at run-time rather than render-time. I'm going to create a new issue to track the conflict with file.replace where the hard link ends up pointing to the wrong file.

file_V{{ stig_id }}-hardlink:
  module.run:
    - name: 'file.link'
    - src: '/boot/grub/grub.conf'
    - path: '/boot/grub.conf'
    - unless: 'test -e /boot/grub.conf'

from ash-linux-formula.

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.