Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugins.lunar: Clean up the code a bit, simplify things. #116

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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