Skip to content

Commit

Permalink
Omit combustion module in initrds for already configured systems
Browse files Browse the repository at this point in the history
If the initrd is hostonly and /etc/machine-id already exists, don't include
the combustion dracut module and its dependencies.
  • Loading branch information
Vogtinator committed Aug 15, 2023
1 parent 89ebd63 commit 9aa0711
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion module-setup.sh
@@ -1,5 +1,9 @@
check() {
return 255
# Omit if building for this already configured system
if [[ $hostonly ]] && [ -e /etc/machine-id ]; then
return 255
fi
return 0
}

depends() {
Expand Down

0 comments on commit 9aa0711

Please sign in to comment.