Skip to content

Conversation

@dagbrown
Copy link
Member

The previous plugins.lunar seemed to sometimes get confused about what
to do, leading to occasionally having plugins fail to be installed when
they should have been. For instance, the dracut plugin on a fresh
install wasn't being installed, causing a fresh install to fail to boot
after installation finished.

This cleans up the code a bit to, with any luck, make that not happen as
much.

The previous plugins.lunar seemed to sometimes get confused about what
to do, leading to occasionally having plugins fail to be installed when
they should have been.  For instance, the dracut plugin on a fresh
install wasn't being installed, causing a fresh install to fail to boot
after installation finished.

This cleans up the code a bit to, with any luck, make that not happen as
much.
fi

if SECTION=$(find_section $MODULE); then
for PLUGIN in $MOONBASE/$SECTION/$1/plugin.d/*.plugin
Copy link
Member

@v4hn v4hn Apr 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will fail when there is no plugin.d folder. True, it should always be there, but I can imagine better error handling than running

install -m 644 a/b/c/d/plugin.d/*.plugin $PLUGIN_DIR (or worse: it's rm equivalent)

below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants