-
Notifications
You must be signed in to change notification settings - Fork 174
Add plymouth_msg #2935
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
base: main
Are you sure you want to change the base?
Add plymouth_msg #2935
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 |
|---|---|---|
|
|
@@ -117,6 +117,12 @@ function get_target_rootpart_size { | |
| echo "${kiwi_oemrootMB}" | ||
| } | ||
|
|
||
| function plymouth_msg { | ||
| if command -v plymouth >/dev/null 2>&1; then | ||
| plymouth display-message --text="$1" | ||
| fi | ||
| } | ||
|
|
||
| function repart_standard_disk { | ||
| # """ | ||
| # repartition disk with read/write root filesystem | ||
|
|
@@ -322,6 +328,8 @@ if ! resize_wanted "${last_device}" "${disk}"; then | |
| return | ||
| fi | ||
|
|
||
| plymouth_msg "Expanding disk..." | ||
|
Collaborator
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 like that you want to expose the messages also to the framebuffer if plymouth is enabled. However, I believe we should not duplicate different messages depending on where they are displayed. In the kiwi dracut code I'm using the dracut provided messaging system. You can see this when looking for kind a like messages. I believe it would be good if we check if dracut itself is not already capable to show this as plymouth message and if not I would propose that we create our own This way we still have the same messages but just stream them to different channels. Thoughts ?
Collaborator
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. You find the implementation of the messaging system in dracut at |
||
|
|
||
| # prepare disk for repartition | ||
| if [ "$(get_partition_table_type "${disk}")" = 'gpt' ];then | ||
| relocate_gpt_at_end_of_disk "${disk}" | ||
|
|
@@ -358,5 +366,7 @@ else | |
| resize_filesystem "$(get_root_map)" | ||
| fi | ||
|
|
||
| plymouth_msg "" | ||
|
|
||
| # wait for the root device to appear | ||
| wait_for_storage_device "${last_device}" | ||
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.
can we change this to
or
as you prefer. Thanks