Comments (3)
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.
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.
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)
- Failure to apply Salt State Settings on RHEL EL8 for STIG ID: RHEL-08-020220 HOT 1
- RHEL 8 Scap Scan finding V-230229 HOT 1
- EL8 SCC SCAP Scan Finding V-230466 HOT 1
- [BUG] Guidance for EL8 `tmux` configuration has changed HOT 1
- [BUG] Do Not Rely On Implicit `fapolicyd` Rules HOT 1
- [Feature Request] Add remediation for EL8 STIG Vulnerability-ID V-230228 (RHEL-08-010070) HOT 1
- [Feature Request] Add remediation for EL8 STIG Vulnerability-ID V-230252 (RHEL-08-010291)
- [Feature Request] Add Remediation For EL8 STIG Vulnerability-ID V-244525 (RHEL-08-010201)
- [Feature Request] Add Remediation For EL8 STIG Vulnerability-ID V-255924 (RHEL-08-040342)
- Failure to apply Salt State Settings on RHEL EL8 for STIG ID: RHEL-08-010201 HOT 2
- Failure to apply Salt State Settings on RHEL EL8 for STIG ID: RHEL-08-020035 HOT 1
- [BUG] Missing Dependency in `ash-linux/el8/STIGbyID/cat2/RHEL-08-030590.sls`
- [BUG] The `mode` token in `*.mount` systemd units' `options.conf` files no longer valid HOT 1
- [BUG] The `fapolicyd` RPM can fail to install properly if there are any files already in `/etc/fapolicyd/rules.d`
- [Maintainability] Change all states in the `el8` hierarchy to use `tpldir` directive when declaring `helperLoc`
- [Feature Request] Ensure that UEFI Bootloader Password Is Configured On EFI-Enabled Systems
- [Feature Request] Add Support for RHEL9 and Related Distros (using Compliance as Code content)
- [BUG] Upstream OSCAP Content Is (Currently) adding `*.* @@logcollector` to `/etc/rsyslog.conf`
- [Feature Request] Make `grub2_info.jinja` content a "common" resource
- [Feature Request] Add Support for RHEL9 and Related Distros (using same content used by SCC)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ash-linux-formula.