pisilinux.patch 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. diff -Nuar a/configure.ac b/configure.ac
  2. --- a/configure.ac 2020-07-08 22:14:38.000000000 +0300
  3. +++ b/configure.ac 2021-01-25 16:39:40.751814651 +0300
  4. @@ -326,6 +326,7 @@
  5. themes/glow/Makefile
  6. themes/spinner/Makefile
  7. themes/script/Makefile
  8. + themes/pisilinux/Makefile
  9. themes/bgrt/Makefile
  10. images/Makefile
  11. scripts/plymouth-generate-initrd
  12. diff -Nuar a/scripts/plymouth-set-default-theme.in b/scripts/plymouth-set-default-theme.in
  13. --- a/scripts/plymouth-set-default-theme.in 2020-06-15 17:16:47.000000000 +0300
  14. +++ b/scripts/plymouth-set-default-theme.in 2021-01-25 16:17:31.757910545 +0300
  15. @@ -192,5 +192,5 @@
  16. sed -i -e '/^Theme[[:blank:]]*=.*/d' ${PLYMOUTH_CONFDIR}/plymouthd.conf
  17. sed -i -e "s/^\([[]Daemon[]]\)\n*/\1\nTheme=${THEME_NAME}/" ${PLYMOUTH_CONFDIR}/plymouthd.conf
  18. -[ $DO_INITRD_REBUILD -ne 0 ] && (${PLYMOUTH_LIBEXECDIR}/plymouth/plymouth-update-initrd)
  19. +[ $DO_INITRD_REBUILD -ne 0 ] && /sbin/mkinitramfs
  20. exit 0
  21. diff -Nuar a/scripts/plymouth-update-initrd b/scripts/plymouth-update-initrd
  22. --- a/scripts/plymouth-update-initrd 2018-09-20 20:53:38.000000000 +0300
  23. +++ b/scripts/plymouth-update-initrd 2021-01-25 16:12:45.499931200 +0300
  24. @@ -1,2 +1,6 @@
  25. #!/bin/bash
  26. dracut -f
  27. +mkinitrd -f /boot/initrd-$(uname -r).img $(uname -r)
  28. +find /etc/mkinitcpio.d/ -name \*.preset -a \! -name example.preset | while read p; do
  29. + mkinitcpio -p $p
  30. +done
  31. diff -Nuar a/src/libply/ply-logger.h b/src/libply/ply-logger.h
  32. --- a/src/libply/ply-logger.h 2020-06-15 17:16:47.000000000 +0300
  33. +++ b/src/libply/ply-logger.h 2021-01-25 16:15:33.191919100 +0300
  34. @@ -102,8 +102,8 @@
  35. __FILE__, __LINE__, __func__); \
  36. errno = _old_errno; \
  37. ply_logger_inject (logger, \
  38. - "%-75.75s: " format "\n", \
  39. - buf, ## args); \
  40. + "" format "\n", \
  41. + ## args); \
  42. ply_logger_flush (logger); \
  43. errno = _old_errno; \
  44. } \
  45. diff -Nuar a/src/libply-splash-core/ply-boot-splash-plugin.h b/src/libply-splash-core/ply-boot-splash-plugin.h
  46. --- a/src/libply-splash-core/ply-boot-splash-plugin.h 2020-06-15 17:16:47.000000000 +0300
  47. +++ b/src/libply-splash-core/ply-boot-splash-plugin.h 2021-01-25 16:41:40.361806021 +0300
  48. @@ -38,6 +38,8 @@
  49. {
  50. PLY_BOOT_SPLASH_MODE_BOOT_UP,
  51. PLY_BOOT_SPLASH_MODE_SHUTDOWN,
  52. + PLY_BOOT_SPLASH_MODE_SUSPEND,
  53. + PLY_BOOT_SPLASH_MODE_RESUME,
  54. PLY_BOOT_SPLASH_MODE_REBOOT,
  55. PLY_BOOT_SPLASH_MODE_UPDATES,
  56. PLY_BOOT_SPLASH_MODE_SYSTEM_UPGRADE,
  57. diff -Nuar a/src/plugins/splash/script/script-lib-plymouth.c b/src/plugins/splash/script/script-lib-plymouth.c
  58. --- a/src/plugins/splash/script/script-lib-plymouth.c 2020-06-15 17:16:47.000000000 +0300
  59. +++ b/src/plugins/splash/script/script-lib-plymouth.c 2021-01-25 13:43:12.694848568 +0300
  60. @@ -70,6 +70,12 @@
  61. case PLY_BOOT_SPLASH_MODE_SHUTDOWN:
  62. obj = script_obj_new_string ("shutdown");
  63. break;
  64. + case PLY_BOOT_SPLASH_MODE_SUSPEND:
  65. + obj = script_obj_new_string ("suspend");
  66. + break;
  67. + case PLY_BOOT_SPLASH_MODE_RESUME:
  68. + obj = script_obj_new_string ("resume");
  69. + break;
  70. case PLY_BOOT_SPLASH_MODE_REBOOT:
  71. obj = script_obj_new_string ("reboot");
  72. break;
  73. diff -Nuar a/src/plymouthd.conf b/src/plymouthd.conf
  74. --- a/src/plymouthd.conf 2018-09-20 20:53:38.000000000 +0300
  75. +++ b/src/plymouthd.conf 2021-01-25 16:38:32.074819607 +0300
  76. @@ -1,3 +1,4 @@
  77. # Administrator customizations go in this file
  78. #[Daemon]
  79. -#Theme=fade-in
  80. +#Theme=pisilinux
  81. +#ShowDelay=0
  82. diff -Nuar a/src/plymouthd.defaults b/src/plymouthd.defaults
  83. --- a/src/plymouthd.defaults 2021-10-27 23:22:15.000000000 +0300
  84. +++ b/src/plymouthd.defaults 2022-03-25 16:09:14.706976931 +0300
  85. @@ -1,6 +1,6 @@
  86. # Distribution defaults. Changes to this file will get overwritten during
  87. # upgrades.
  88. [Daemon]
  89. -Theme=spinner
  90. +Theme=pisilinux
  91. ShowDelay=0
  92. DeviceTimeout=8
  93. diff -Nuar a/themes/Makefile.am b/themes/Makefile.am
  94. --- a/themes/Makefile.am 2020-06-15 17:16:47.000000000 +0300
  95. +++ b/themes/Makefile.am 2021-01-25 16:37:54.949822285 +0300
  96. @@ -1,2 +1,2 @@
  97. -SUBDIRS = spinfinity fade-in text details solar glow script spinner tribar bgrt
  98. +SUBDIRS = spinfinity fade-in text details solar glow script spinner pisilinux
  99. MAINTAINERCLEANFILES = Makefile.in