pisilinux-meson.patch 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. diff -Nuar a/scripts/plymouth-set-default-theme.in b/scripts/plymouth-set-default-theme.in
  2. --- a/scripts/plymouth-set-default-theme.in 2020-06-15 17:16:47.000000000 +0300
  3. +++ b/scripts/plymouth-set-default-theme.in 2021-01-25 16:17:31.757910545 +0300
  4. @@ -192,5 +192,5 @@
  5. sed -i -e '/^Theme[[:blank:]]*=.*/d' ${PLYMOUTH_CONFDIR}/plymouthd.conf
  6. sed -i -e "s/^\([[]Daemon[]]\)\n*/\1\nTheme=${THEME_NAME}/" ${PLYMOUTH_CONFDIR}/plymouthd.conf
  7. -[ $DO_INITRD_REBUILD -ne 0 ] && (${PLYMOUTH_LIBEXECDIR}/plymouth/plymouth-update-initrd)
  8. +[ $DO_INITRD_REBUILD -ne 0 ] && /sbin/mkinitramfs
  9. exit 0
  10. diff -Nuar a/scripts/plymouth-update-initrd b/scripts/plymouth-update-initrd
  11. --- a/scripts/plymouth-update-initrd 2018-09-20 20:53:38.000000000 +0300
  12. +++ b/scripts/plymouth-update-initrd 2021-01-25 16:12:45.499931200 +0300
  13. @@ -1,2 +1,6 @@
  14. #!/bin/bash
  15. dracut -f
  16. +mkinitrd -f /boot/initrd-$(uname -r).img $(uname -r)
  17. +find /etc/mkinitcpio.d/ -name \*.preset -a \! -name example.preset | while read p; do
  18. + mkinitcpio -p $p
  19. +done
  20. diff -Nuar a/src/libply/ply-logger.h b/src/libply/ply-logger.h
  21. --- a/src/libply/ply-logger.h 2020-06-15 17:16:47.000000000 +0300
  22. +++ b/src/libply/ply-logger.h 2021-01-25 16:15:33.191919100 +0300
  23. @@ -102,8 +102,8 @@
  24. __FILE__, __LINE__, __func__); \
  25. errno = _old_errno; \
  26. ply_logger_inject (logger, \
  27. - "%-75.75s: " format "\n", \
  28. - buf, ## args); \
  29. + "" format "\n", \
  30. + ## args); \
  31. ply_logger_flush (logger); \
  32. errno = _old_errno; \
  33. } \
  34. diff -Nuar a/src/libply-splash-core/ply-boot-splash-plugin.h b/src/libply-splash-core/ply-boot-splash-plugin.h
  35. --- a/src/libply-splash-core/ply-boot-splash-plugin.h 2020-06-15 17:16:47.000000000 +0300
  36. +++ b/src/libply-splash-core/ply-boot-splash-plugin.h 2021-01-25 16:41:40.361806021 +0300
  37. @@ -38,6 +38,8 @@
  38. {
  39. PLY_BOOT_SPLASH_MODE_BOOT_UP,
  40. PLY_BOOT_SPLASH_MODE_SHUTDOWN,
  41. + PLY_BOOT_SPLASH_MODE_SUSPEND,
  42. + PLY_BOOT_SPLASH_MODE_RESUME,
  43. PLY_BOOT_SPLASH_MODE_REBOOT,
  44. PLY_BOOT_SPLASH_MODE_UPDATES,
  45. PLY_BOOT_SPLASH_MODE_SYSTEM_UPGRADE,
  46. diff -Nuar a/src/plugins/splash/script/script-lib-plymouth.c b/src/plugins/splash/script/script-lib-plymouth.c
  47. --- a/src/plugins/splash/script/script-lib-plymouth.c 2020-06-15 17:16:47.000000000 +0300
  48. +++ b/src/plugins/splash/script/script-lib-plymouth.c 2021-01-25 13:43:12.694848568 +0300
  49. @@ -70,6 +70,12 @@
  50. case PLY_BOOT_SPLASH_MODE_SHUTDOWN:
  51. obj = script_obj_new_string ("shutdown");
  52. break;
  53. + case PLY_BOOT_SPLASH_MODE_SUSPEND:
  54. + obj = script_obj_new_string ("suspend");
  55. + break;
  56. + case PLY_BOOT_SPLASH_MODE_RESUME:
  57. + obj = script_obj_new_string ("resume");
  58. + break;
  59. case PLY_BOOT_SPLASH_MODE_REBOOT:
  60. obj = script_obj_new_string ("reboot");
  61. break;
  62. diff -Nuar a/src/plymouthd.conf b/src/plymouthd.conf
  63. --- a/src/plymouthd.conf 2018-09-20 20:53:38.000000000 +0300
  64. +++ b/src/plymouthd.conf 2021-01-25 16:38:32.074819607 +0300
  65. @@ -1,3 +1,4 @@
  66. # Administrator customizations go in this file
  67. #[Daemon]
  68. -#Theme=fade-in
  69. +#Theme=pisilinux
  70. +#ShowDelay=0
  71. diff -Nuar a/src/plymouthd.defaults b/src/plymouthd.defaults
  72. --- a/src/plymouthd.defaults 2021-10-27 23:22:15.000000000 +0300
  73. +++ b/src/plymouthd.defaults 2022-03-25 16:09:14.706976931 +0300
  74. @@ -1,6 +1,6 @@
  75. # Distribution defaults. Changes to this file will get overwritten during
  76. # upgrades.
  77. [Daemon]
  78. -Theme=spinner
  79. +Theme=pisilinux
  80. ShowDelay=0
  81. DeviceTimeout=8
  82. diff -Nuar a/themes/meson.build b/themes/meson.build
  83. --- a/themes/meson.build 2024-01-05 00:08:14.000000000 +0300
  84. +++ b/themes/meson.build 2024-07-07 22:03:09.966290140 +0300
  85. @@ -8,3 +8,4 @@
  86. subdir('spinner')
  87. subdir('tribar')
  88. subdir('bgrt')
  89. +subdir('pisilinux')
  90. diff -Nuar a/themes/pisilinux/Makefile.am b/themes/pisilinux/Makefile.am
  91. --- a/themes/pisilinux/Makefile.am 2016-08-25 22:20:07.000000000 +0300
  92. +++ b/themes/pisilinux/Makefile.am 1970-01-01 02:00:00.000000000 +0200
  93. @@ -1,18 +0,0 @@
  94. -themedir = $(datadir)/plymouth/themes/pisilinux
  95. -nodist_theme_DATA = \
  96. - pisilinux.plymouth
  97. -
  98. -dist_theme_DATA = \
  99. - pisilinux.script \
  100. - logo_blurred.png \
  101. - logo.png
  102. -
  103. -
  104. -MAINTAINERCLEANFILES = Makefile.in pisilinux.plymouth
  105. -CLEANFILES = pisilinux.plymouth
  106. -
  107. -pisilinux.plymouth: $(srcdir)/pisilinux.plymouth.in
  108. - sed -e 's,[@]PLYMOUTH_THEME_PATH[@],$(PLYMOUTH_THEME_PATH),g' \
  109. - $(srcdir)/pisilinux.plymouth.in > pisilinux.plymouth
  110. -
  111. -EXTRA_DIST = pisilinux.plymouth.in
  112. diff -Nuar a/themes/pisilinux/meson.build b/themes/pisilinux/meson.build
  113. --- a/themes/pisilinux/meson.build 1970-01-01 02:00:00.000000000 +0200
  114. +++ b/themes/pisilinux/meson.build 2024-07-07 21:43:01.321400280 +0300
  115. @@ -0,0 +1,16 @@
  116. +solar_plymouth = configure_file(
  117. + input: 'pisilinux.plymouth.in',
  118. + output: '@BASENAME@',
  119. + configuration: {
  120. + 'PLYMOUTH_THEME_PATH': plymouth_theme_path,
  121. + },
  122. + install: true,
  123. + install_dir: plymouth_theme_path / 'pisilinux',
  124. +)
  125. +
  126. +install_data(
  127. + 'logo.png',
  128. + 'logo_blurred.png',
  129. + 'pisilinux.script',
  130. + install_dir: plymouth_theme_path / 'pisilinux',
  131. +)