-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add Custom config.txt copy to boot loader during update and version check #389
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,13 @@ makeinstall_target() { | |
[ -f dt-blob.bin ] && cp -PRv dt-blob.bin $INSTALL/usr/share/bootloader/dt-blob.bin | ||
|
||
cp -PRv $PKG_DIR/scripts/update.sh $INSTALL/usr/share/bootloader | ||
|
||
|
||
if [ -f $DISTRO_DIR/$DISTRO/config/distroconfig.txt ]; then | ||
cp -PRv $DISTRO_DIR/$DISTRO/config/distroconfig.txt $INSTALL/usr/share/bootloader | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've tested, and including
What we could do here is add an empty (zero byte)
to the above Not strictly necessary of course, the errors are harmless (and hopefully stay that way) but would be a more complete solution. Minor nit: could you add a blank line between lines 54 and 55? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure. |
||
else | ||
cp -PRv $PKG_DIR/files/3rdparty/bootloader/distroconfig.txt $INSTALL/usr/share/bootloader | ||
fi | ||
|
||
if [ -f $DISTRO_DIR/$DISTRO/config/config.txt ]; then | ||
cp -PRv $DISTRO_DIR/$DISTRO/config/config.txt $INSTALL/usr/share/bootloader | ||
else | ||
|
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.
Not entirely sure about this one. I think you should be adding this to your own DISTRO specific config.txt. However, if the
include
causes no error if it doesn't exist, then maybe there's no harm (and means adistroconfig.txt
could be added later, if required). Worst case, we add a "common" distroconfig.txt that is blank?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.
I can see the logic in that, however if a user moved from upstream LE to a custom distribution then the overrides would require a full clean install. Thats why I pitched having it in the upstream config file. That way we could avoid shipping our own config.txt and only ship a distroconfig.txt file in the case we wanted to override the upstream version.