Skip to content

Plymouth: add most recent Armbian logo as boot logo #8381

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

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

Conversation

igorpecovnik
Copy link
Member

@igorpecovnik igorpecovnik commented Jul 15, 2025

Description

  • add new logo to the plymouth and place it to the center
  • only keep watermark, drop firmware / hardware logo
logo

(but with white text)

How Has This Been Tested?

  • Build, install and test on x86 laptop. Image comes in right size, placed in center. There is spinner and nothing else.

@igorpecovnik igorpecovnik requested a review from a team as a code owner July 15, 2025 14:41
Copy link
Contributor

coderabbitai bot commented Jul 15, 2025

Walkthrough

The changes update the artifact-armbian-plymouth-theme.sh script to include an additional file, armbian.plymouth, in the hash calculation by passing it as a second argument to the calculate_hash_for_bash_deb_artifact function. The armbian.plymouth theme file itself is modified to adjust the watermark's vertical alignment and add X and Y offset properties. Additionally, the UseFirmwareBackground setting is set to false for boot-up, shutdown, and reboot sections.

Suggested labels

Ready to merge, 05, size/small, Patches

Suggested reviewers

  • PanderMusubi
  • EvilOlaf

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8155cc5 and 4cfe7a2.

⛔ Files ignored due to path filters (1)
  • packages/plymouth-theme-armbian/watermark.png is excluded by !**/*.png
📒 Files selected for processing (2)
  • lib/functions/artifacts/artifact-armbian-plymouth-theme.sh (1 hunks)
  • packages/plymouth-theme-armbian/armbian.plymouth (2 hunks)
🧰 Additional context used
🧠 Learnings (3)
📓 Common learnings
Learnt from: rpardini
PR: armbian/build#8044
File: patch/u-boot/v2025.04/cmd-fileenv-read-string-from-file-into-env.patch:76-86
Timestamp: 2025-03-31T22:20:48.475Z
Learning: For the Armbian build project, maintaining consistency with existing patches across U-Boot versions (such as between 2025.01 and 2025.04) is prioritized over refactoring individual patches for code improvements.
Learnt from: EvilOlaf
PR: armbian/build#8328
File: lib/functions/compilation/patch/drivers_network.sh:542-545
Timestamp: 2025-06-24T10:08:40.313Z
Learning: In the Armbian build system, when a PR removes build support for a specific kernel version, version check issues for that removed version become practically irrelevant even if they appear incorrect in isolation. Context about which kernel versions are being deprecated/removed is important for understanding the impact of version-related code changes.
Learnt from: Grippy98
PR: armbian/build#8202
File: config/desktop/trixie/environments/gnome/armbian/create_desktop_package.sh:2-3
Timestamp: 2025-05-16T15:34:34.672Z
Learning: The shell scripts in the Armbian build system's desktop configuration files, such as config/desktop/trixie/environments/gnome/armbian/create_desktop_package.sh, rely on environment variables like $SRC and $destination that are expected to be set externally before the script is executed.
Learnt from: djurny
PR: armbian/build#8287
File: config/bootscripts/boot-sunxi.cmd:38-44
Timestamp: 2025-06-12T21:14:36.024Z
Learning: In config/bootscripts/boot-sunxi.cmd the unconditional "+1" increment in func_align_addr_next (when align_overlap_oboe_avoidance="on") is intentional. It compensates for a known off-by-one error in U-Boot where the end address is calculated as start+size instead of start+size-1, so the extra page prevents overlap. This behavior should not be “optimized away”.
Learnt from: djurny
PR: armbian/build#8315
File: lib/functions/rootfs/distro-agnostic.sh:54-68
Timestamp: 2025-06-22T00:45:26.182Z
Learning: In Armbian build system, external command dependencies like envsubst are handled by adding the required packages (e.g., gettext for envsubst) to host_dependencies in adaptative_prepare_host_dependencies function in lib/functions/host/prepare-host.sh, rather than checking command availability at runtime.
packages/plymouth-theme-armbian/armbian.plymouth (1)
Learnt from: rpardini
PR: armbian/build#8044
File: patch/u-boot/v2025.04/cmd-fileenv-read-string-from-file-into-env.patch:76-86
Timestamp: 2025-03-31T22:20:48.475Z
Learning: For the Armbian build project, maintaining consistency with existing patches across U-Boot versions (such as between 2025.01 and 2025.04) is prioritized over refactoring individual patches for code improvements.
lib/functions/artifacts/artifact-armbian-plymouth-theme.sh (3)
Learnt from: leggewie
PR: armbian/build#8133
File: extensions/apa.sh:1-2
Timestamp: 2025-04-28T08:27:26.890Z
Learning: In the Armbian build system, extension scripts in the `extensions/` directory contain hook functions and are meant to be sourced, not executed directly. These scripts don't require a shebang or `set -euo pipefail`.
Learnt from: Grippy98
PR: armbian/build#8202
File: config/desktop/trixie/environments/gnome/armbian/create_desktop_package.sh:2-3
Timestamp: 2025-05-16T15:34:34.672Z
Learning: The shell scripts in the Armbian build system's desktop configuration files, such as config/desktop/trixie/environments/gnome/armbian/create_desktop_package.sh, rely on environment variables like $SRC and $destination that are expected to be set externally before the script is executed.
Learnt from: djurny
PR: armbian/build#8315
File: lib/functions/rootfs/distro-agnostic.sh:54-68
Timestamp: 2025-06-22T00:45:26.182Z
Learning: In Armbian build system, external command dependencies like envsubst are handled by adding the required packages (e.g., gettext for envsubst) to host_dependencies in adaptative_prepare_host_dependencies function in lib/functions/host/prepare-host.sh, rather than checking command availability at runtime.
🔇 Additional comments (3)
packages/plymouth-theme-armbian/armbian.plymouth (2)

17-19: Watermark offset may push logo off-center on lower-resolution displays

Setting WatermarkVerticalAlignment=.5 and then additionally applying a negative WatermarkYOffset=-100 effectively anchors the logo at screen centre and then shifts it upward by 100 px.
On 720p or 480p frame-buffers this can move the watermark partially outside the visible area.

If the intention is simply to raise the logo, consider using a smaller Y-offset (e.g. ‑30 … -50) or make the offset conditional on $PLYMOUTH_THEME_RESOLUTION.

No code change required, but please double-check on common resolutions.


31-39: Switching UseFirmwareBackground to false looks correct

Explicitly disabling firmware background for boot-up, shutdown and reboot prevents unwanted colour blending with the new artwork and is consistent across all three sections.
No further issues spotted.

lib/functions/artifacts/artifact-armbian-plymouth-theme.sh (1)

24-26: Second argument added to hash calculation – confirm function handles multiples

Good call including the theme file in the version hash.
Please confirm calculate_hash_for_bash_deb_artifact concatenates / sorts all supplied paths deterministically so the hash is stable irrespective of parameter order; otherwise identical inputs passed in different order may yield a different package version suffix.
If unsure, wrap the call in an array and sort first:

declare -a _hash_inputs=(
  "compilation/packages/armbian-plymouth-theme-deb.sh"
  "${SRC}/packages/plymouth-theme-armbian/armbian.plymouth"
)
calculate_hash_for_bash_deb_artifact "${_hash_inputs[@]}"

Feel free to ignore if the helper already guarantees order-independent hashing.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch plymouth

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai auto-generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added size/small PR with less then 50 lines 08 Milestone: Third quarter release Needs review Seeking for review Framework Framework components BSP Board Support Packages labels Jul 15, 2025
@coderabbitai coderabbitai bot requested review from EvilOlaf and PanderMusubi July 15, 2025 14:41
@igorpecovnik igorpecovnik changed the title Plymouth: add most recent Armbian logo Plymouth: add most recent Armbian logo as boot logo Jul 15, 2025
@coderabbitai coderabbitai bot added 05 Milestone: Second quarter release Patches Patches related to kernel, U-Boot, ... Ready to merge Reviewed, tested and ready for merge labels Jul 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
05 Milestone: Second quarter release 08 Milestone: Third quarter release BSP Board Support Packages Framework Framework components Needs review Seeking for review Patches Patches related to kernel, U-Boot, ... Ready to merge Reviewed, tested and ready for merge size/small PR with less then 50 lines
Development

Successfully merging this pull request may close these issues.

1 participant