Fixes #20814 - Added insmod regexp, removed test #418
Conversation
The |
if [ -f "$configfile" ]; then | ||
source "$configfile" | ||
fi | ||
source "$configfile" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dLobatog watch out when backporting - the if [ -f "$configfile" ]; then
was added yesterday but I found it was incorrect. So just ignore that, the only relevant bit here is "insmod regexp"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lzap We don't do backporting with community templates - they are synced on every minor release
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lzap Seems reasonable to me, although I haven't tried it, just read some of the BZs associated.
Will we have to do anything when a release of EL7 that fixes the ':' bug?
if [ -f "$configfile" ]; then | ||
source "$configfile" | ||
fi | ||
source "$configfile" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lzap We don't do backporting with community templates - they are synced on every minor release
Thanks @lzap ! |
Thanks, I can confirm this won't cause any problems, |
So my previous patch actually did not work, test statement searches for local files and not remote files, therefore the file was never sourced. It looks like
source
command fail silently, so the test statement is not necessary.But we found a different thing - some grub2 binaries (namely the one we ship in foreman-bootloaders) do not ship with
regexp
command compiled in and this must be inserted from a moduleregexp.mod
. Theinsmod
statement does that, otherwise the regexp commandd fails silently. We will need to add modules into foreman-bootloaders.