75 Commits

Author SHA256 Message Date
47d3b867f2 Accepting request 1273161 from Base:System
- Update to version 2.35
  * Make s390 3215 console work that is use EPOLLOUT|EPOLLONESHOT
    to control if we can write to ttyS0 in nonblocking mode and if
    not reenable EPOLLOUT|EPOLLONESHOT.
  * At boot set for ttyS0 via vmcp API nonblocking MORE mode with
    `0 0'.  It beeps but boots.
- Remove patches now upstream
  * blog-3215.patch
  * blog-install.patch

OBS-URL: https://build.opensuse.org/request/show/1273161
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/blog?expand=0&rev=21
2025-04-29 14:39:44 +00:00
1b2aa00790 Accepting request 1270560 from Base:System
- Add patch blog-3215.patch
  * Try to avoid blocking mode of 3215 console on s390x as holding
    the output at `MORE' stops blogd, that is that it can not see
    any messages over its socket like switch of the root file system. 

- Add patch blog-install.patch
  * Fixes install problems
  * Use module-setup.sh to install in BUILDROOT

- Update to version 2.34
  * Make it work on s390x (still no 3215 console)
    This is a bug fix release.  But still no support in conmode
    3215 as there is a race triggered by using conmode 3215.
    The order of the systemd units seems to change with this
    console mode.

- Use rpm-config-SUSE instead of suse-module-tools for suse version
  above 1550 and add code for the missing macros for older
  distributions like leap 15.6

- The suse-module-tools are required at build otherwise blog
  is not in the initrd

OBS-URL: https://build.opensuse.org/request/show/1270560
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/blog?expand=0&rev=20
2025-04-18 14:15:03 +00:00
ace1ee1c8b Fixes for s390x 3215 console
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=72
2025-04-17 13:13:22 +00:00
e0c875431d Update to showconsole-2.34
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=71
2025-04-17 09:52:46 +00:00
c026ff2133 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=70
2025-04-10 14:21:44 +00:00
5c01a9cb1a .
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=69
2025-04-10 14:00:34 +00:00
7e45e8c880 Accepting request 1266909 from Base:System
- Update to version 2.32
  * Better 3270 console support, use uevent below /sys file system 

- Update to version 2.31
  * Handel BS on password prompt as well
  * Drop spining code as systemd uses clear to end of line
    escape sequence (hard coded!) for its cylon lines.
- blog: again suggest blog-plymouth

- Update to version 2.30
  * The asking variable is not shared
  * Allow password asking prompt to be repeated if empty.
  * Make spinner support UTF-8 multibyte conform.
  * Spinner lines of system still not handled.

- Update to version 2.29
  * Make sure that password prompt is seen Latest
    Use a temporary buffer to be silent during asking passwords.
    And stop system console output during password questions
    only if temporary buffer becomes short. As well as do coloring
    on /dev/ttysclp0 for S390. 
- Drop patch.patch as now upstream

- Modify temporary patch patch.patch
  * Use a temporary buffer to be silent during asking passwords
  * Stop system console output during password questions only
    if temporary buffer becomes short 

- Add temporary patch named patch.patch
  * Stop system console output during password questions

OBS-URL: https://build.opensuse.org/request/show/1266909
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/blog?expand=0&rev=19
2025-04-03 16:43:24 +00:00
c18d91a066 Update to blog with showconsole-2.32
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=67
2025-04-03 14:22:08 +00:00
5ad3ce0431 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=66
2025-04-02 11:28:47 +00:00
b8b50bf2a1 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=65
2025-04-02 10:52:00 +00:00
2ea0931533 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=64
2025-04-02 09:53:46 +00:00
6e794a7400 Update to blog with showconsole-2.30
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=63
2025-03-31 13:11:05 +00:00
643e2550e6 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=62
2025-03-28 10:17:03 +00:00
b3f76ee261 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=61
2025-03-27 14:38:21 +00:00
3aa875550f .
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=60
2025-03-27 14:33:24 +00:00
c0c23a77e3 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=59
2025-03-27 11:47:16 +00:00
5d5c3b00a7 Accepting request 1129802 from Base:System
- Update to version 2.28
  * UTMP support is gone, remove dependency also add support for
    initramfs at shutdown.

OBS-URL: https://build.opensuse.org/request/show/1129802
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/blog?expand=0&rev=18
2023-11-30 20:59:40 +00:00
95dd203fc6 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=57
2023-11-29 12:38:24 +00:00
ad6123a606 Update to showconsole 2.28
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=56
2023-11-29 12:28:45 +00:00
83782b7603 Accepting request 1097973 from Base:System
- Fix big endian cast problems to be able to read commands
  and ansers (blogctl) as well as passphrases (blogd)

OBS-URL: https://build.opensuse.org/request/show/1097973
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/blog?expand=0&rev=17
2023-07-11 13:56:28 +00:00
99d7c18e52 Make it work even on big endian like s390(x)
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=54
2023-07-10 13:39:05 +00:00
2e0df2bf10 Accepting request 1057034 from Base:System
- Replace transitional %usrmerged macro with regular version check (boo#1206798) (forwarded request 1051492 from lnussel)

OBS-URL: https://build.opensuse.org/request/show/1057034
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/blog?expand=0&rev=16
2023-01-10 13:59:18 +00:00
916c6fd31f Accepting request 1051492 from home:lnussel:usrmerge
- Replace transitional %usrmerged macro with regular version check (boo#1206798)

OBS-URL: https://build.opensuse.org/request/show/1051492
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=52
2023-01-09 10:26:51 +00:00
ab8f0c0c6f Accepting request 935416 from Base:System
- Update to version 2.26
  * On s390/x and PPC64 gcc misses unused arg0
- Remove patch fcb9e0c2.patch as now part of tar ball 

- Add upstream patch fcb9e0c2.patch
  * On s390/x and PPC64 gcc misses unused arg0

- Update to version 2.24
  * Avoid install errror due missed directory

- Update to version 2.22
  * Avoid KillMode=none for newer systemd version as well as rework
    the systemd unit files of blog (boo#1186506)

OBS-URL: https://build.opensuse.org/request/show/935416
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/blog?expand=0&rev=15
2021-12-06 22:59:09 +00:00
776aea12c7 Remove Build ignore
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=51
2021-12-03 09:06:24 +00:00
29cdc3955c .
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=50
2021-12-03 08:21:21 +00:00
75b70c3749 Avoid systemd at build
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=49
2021-12-03 08:19:58 +00:00
29d84c4400 There is no bash-sh on older dists
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=48
2021-12-03 07:36:12 +00:00
2a813f915b Test
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=47
2021-12-03 07:29:41 +00:00
c53fe95a8d On s390/x and PPC64 gcc misses unused arg0
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=46
2021-12-02 15:03:29 +00:00
605a52cae9 Avoid install errror due missed directory
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=45
2021-12-02 13:11:37 +00:00
451e24d974 Test blog.patch
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=44
2021-12-02 11:53:23 +00:00
345a922659 OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=43 2021-12-02 11:44:53 +00:00
71920e0d25 Accepting request 922331 from Base:System
- Move to /usr for UsrMerge (boo#1191057) 

- Update to version 2.21
  * Merge pull request #4 from samueldr/fix/makefile
    Fixup Makefile for better build system support
  * Silent new gcc compiler

OBS-URL: https://build.opensuse.org/request/show/922331
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/blog?expand=0&rev=14
2021-10-04 16:39:03 +00:00
48f341d394 UsrMerge
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=41
2021-09-30 10:02:40 +00:00
a14db475b3 Accepting request 883985 from Base:System
- Fix package split done for shared library packaging guideline (bsc#1184479).

OBS-URL: https://build.opensuse.org/request/show/883985
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/blog?expand=0&rev=13
2021-04-22 16:03:02 +00:00
35f07ba1fc Fix package split done for shared library packaging guideline (bsc#1184479)
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=39
2021-04-09 07:22:09 +00:00
caddd1aeee Accepting request 762162 from Base:System
- Update to version 2.20
  * Silent some gcc warnings, also avoid common variable (boo#1160385)
  * Include <sys/sysmacros.h> for makedev
  * sort input files (boo#1041090)
  * libconsole: never return empty list from getconsoles()
  * libconsole: Really allow to use /dev/console as a fallback in showconsole
  * libconsole: Add console into the list only when successfully allocated
  * libconsole: Correctly ignore early consoles
- Remove obsolate patch blog-Remove-unused-header.patch

OBS-URL: https://build.opensuse.org/request/show/762162
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/blog?expand=0&rev=12
2020-01-18 11:13:31 +00:00
786d7d1221 Silent some gcc warnings, also avoid common variable (boo#1160385)
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=37
2020-01-09 11:39:21 +00:00
699304ae07 Accepting request 729450 from Base:System
OBS-URL: https://build.opensuse.org/request/show/729450
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/blog?expand=0&rev=11
2019-09-20 12:44:31 +00:00
66fdbd7c0e Accepting request 727332 from home:iznogood:factory
Fix build with new glibc (staging A)

OBS-URL: https://build.opensuse.org/request/show/727332
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=35
2019-09-09 12:36:32 +00:00
a48adb8238 Accepting request 700250 from Base:System
- Implement shared library packaging guideline.

OBS-URL: https://build.opensuse.org/request/show/700250
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/blog?expand=0&rev=10
2019-05-06 11:19:49 +00:00
eda398a727 Accepting request 696408 from home:jengelh:branches:Base:System
- Implement shared library packaging guideline.

OBS-URL: https://build.opensuse.org/request/show/696408
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=33
2019-05-01 09:14:36 +00:00
b485ef5408 Accepting request 627027 from Base:System
- Update to version 2.19 which integrates the patches now removed:
  * sysmacros.patch
  * libconsole-Really-allow-to-use-dev-console-as-a-fall.patch
  * libconsole-never-return-empty-list-from-getconsoles.patch
  * showconsole-2.18.tar.gz
  * libconsole-Add-console-into-the-list-only-when-succe.patch
  * libconsole-Correctly-ignore-early-consoles.patch
  as well as the changes
  * Correct wants directory for systemd-ask-password-blog.service
  * Sort input files for reproducible builds

- sysmacros.patch: Include <sys/sysmacros.h> for makedev

OBS-URL: https://build.opensuse.org/request/show/627027
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/blog?expand=0&rev=9
2018-08-06 09:52:32 +00:00
8d17e1075e Version update to 2.19
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=31
2018-08-02 08:40:59 +00:00
ee2dc02250 Accepting request 626926 from home:Andreas_Schwab:glibc:rebuild
- sysmacros.patch: Include <sys/sysmacros.h> for makedev

OBS-URL: https://build.opensuse.org/request/show/626926
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=30
2018-08-02 07:01:34 +00:00
99e238f112 Accepting request 588693 from Base:System
- Use %license instead of %doc [bsc#1082318] (forwarded request 588679 from kukuk)

OBS-URL: https://build.opensuse.org/request/show/588693
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/blog?expand=0&rev=8
2018-03-26 10:00:21 +00:00
0a824181f3 Accepting request 588679 from home:kukuk:branches:Base:System
- Use %license instead of %doc [bsc#1082318]

OBS-URL: https://build.opensuse.org/request/show/588679
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=28
2018-03-19 16:53:36 +00:00
08b0f50d71 Accepting request 556528 from Base:System
- hardening of the console list generation (bsc#1071568):
  * libconsole-never-return-empty-list-from-getconsoles.patch
  * libconsole-Really-allow-to-use-dev-console-as-a-fall.patch
  * libconsole-Add-console-into-the-list-only-when-succe.patch
  * libconsole-Correctly-ignore-early-consoles.patch (forwarded request 556516 from pmladek)

OBS-URL: https://build.opensuse.org/request/show/556528
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/blog?expand=0&rev=7
2017-12-15 13:01:22 +00:00
937beaa81b Accepting request 556516 from home:pmladek:branches:Base:System
- hardening of the console list generation (bsc#1071568):
  * libconsole-never-return-empty-list-from-getconsoles.patch
  * libconsole-Really-allow-to-use-dev-console-as-a-fall.patch
  * libconsole-Add-console-into-the-list-only-when-succe.patch
  * libconsole-Correctly-ignore-early-consoles.patch

OBS-URL: https://build.opensuse.org/request/show/556516
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=26
2017-12-12 16:12:12 +00:00
ff85130878 Accepting request 539230 from Base:System
- Change description of blog-plymouth in same manner as used by
  the release notes

OBS-URL: https://build.opensuse.org/request/show/539230
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/blog?expand=0&rev=6
2017-11-10 13:39:18 +00:00
f205f5ad48 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=24
2017-11-06 09:29:03 +00:00
ad71c6b12a Accepting request 491647 from Base:System
- Add coreutils as required by post scriptlet (boo#1036436)

OBS-URL: https://build.opensuse.org/request/show/491647
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/blog?expand=0&rev=5
2017-05-09 15:58:03 +00:00
ed3db58812 boo #1036436
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=22
2017-04-27 16:02:11 +00:00
18c64f91f7 Accepting request 452399 from Base:System
- Use github source from tagged version 

- Use https://github.com/bitstreamout/showconsole as URL

OBS-URL: https://build.opensuse.org/request/show/452399
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/blog?expand=0&rev=4
2017-02-01 08:49:17 +00:00
beb944a19d Use github source
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=20
2017-01-25 12:34:54 +00:00
b3cd12f84e Correct URL
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=19
2017-01-25 12:13:41 +00:00
d6a13227fe Accepting request 423843 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/423843
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/blog?expand=0&rev=3
2016-09-05 19:11:20 +00:00
3adfcee93f Accepting request 418651 from home:olh:branches:Base:System
- Install binaries with read permissions (bnc#990837)

OBS-URL: https://build.opensuse.org/request/show/418651
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=17
2016-08-30 13:52:53 +00:00
aaaaeb76f0 Accepting request 368544 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/368544
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/blog?expand=0&rev=2
2016-03-09 18:01:41 +00:00
5d52c1c19b .
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=15
2016-03-01 16:22:35 +00:00
0b53bae596 Accepting request 360883 from Base:System
Indeed this update let cached password request work!
Also make clear that this is a package split and avoid to
use private glib API but implement a share memory mkstemp

OBS-URL: https://build.opensuse.org/request/show/360883
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/blog?expand=0&rev=1
2016-02-23 15:53:10 +00:00
18e030ae2b Accepting request 360788 from home:Andreas_Schwab:Factory
- remove-bad-symbol-use.patch: Remove bad use of internal glibc interface
  (bnc#967437)

OBS-URL: https://build.opensuse.org/request/show/360788
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=13
2016-02-22 15:05:36 +00:00
817afe55d0 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=12
2016-02-19 17:06:45 +00:00
78e891b012 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=11
2016-02-19 17:00:44 +00:00
3edc76c681 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=10
2016-02-19 16:35:44 +00:00
e0edcf7439 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=9
2016-02-19 16:03:24 +00:00
b23bae74cb - add blog-rpmlintrc. The all-manual handling of systemd services
is required according to Werner.

OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=8
2016-02-10 10:24:46 +00:00
f5b6663a7c .
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=7
2016-02-04 12:26:11 +00:00
188d49bbfa .
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=6
2016-02-04 10:41:02 +00:00
6cbc8d3b1f .
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=5
2016-01-22 13:55:06 +00:00
f7ca3d3e8c .
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=4
2016-01-21 07:42:14 +00:00
b5caa31ae1 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=3
2016-01-20 15:20:08 +00:00
7f367fdcee .
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=2
2016-01-15 09:01:01 +00:00
0e63481b64 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=1
2016-01-15 08:52:08 +00:00
3 changed files with 0 additions and 266 deletions

View File

@@ -1,134 +0,0 @@
---
blog.service | 1 +
blogd.c | 2 +-
libconsole/console.c | 8 +++++++-
libconsole/tty.c | 11 +++++++++++
systemd-ask-password-blog.path | 7 +++++--
systemd-ask-password-blog.service | 9 ++++++---
6 files changed, 31 insertions(+), 7 deletions(-)
--- blog.service
+++ blog.service 2025-04-17 13:09:41.774994278 +0000
@@ -6,6 +6,7 @@ After=systemd-vconsole-setup.service sys
Before=systemd-ask-password-blog.service
ConditionKernelCommandLine=!blog.enable=0
ConditionVirtualization=!container
+ConditionPathExists=/dev/console
IgnoreOnIsolate=true
RefuseManualStart=true
--- blogd.c
+++ blogd.c 2025-04-17 12:23:43.672968636 +0000
@@ -325,7 +325,7 @@ int main(int argc, char *argv[])
o.c_cc[VMIN] = CMIN;
}
#if defined(__s390__) || defined(__s390x__)
- if (major(c->dev) == 4 && minor(c->dev) == 65) {
+ if (major(c->dev) == 4 && minor(c->dev) == 64) {
ioctl(c->fd, TIOCSBRK);
usleep(1000);
}
--- systemd-ask-password-blog.path
+++ systemd-ask-password-blog.path 2025-04-17 13:09:00.655744933 +0000
@@ -2,9 +2,12 @@
Description=Forward Password Requests to Plymouth Directory Watch
Documentation=http://www.freedesktop.org/wiki/Software/systemd/PasswordAgents
DefaultDependencies=no
-Conflicts=shutdown.target
After=blog.service
-Before=basic.target shutdown.target
+Before=paths.target cryptsetup.target
+Conflicts=emergency.service
+Before=emergency.service
+Conflicts=shutdown.target
+Before=shutdown.target
ConditionKernelCommandLine=!blog.enable=0
ConditionPathExists=/run/blogd.pid
ConditionVirtualization=!container
--- systemd-ask-password-blog.service
+++ systemd-ask-password-blog.service 2025-04-17 13:08:53.699871915 +0000
@@ -2,12 +2,15 @@
Description=Forward Password Requests to Blogd as a Plymouth agent
Documentation=http://www.freedesktop.org/wiki/Software/systemd/PasswordAgents
DefaultDependencies=no
-Conflicts=shutdown.target
-After=blog.service
-Before=shutdown.target
+After=blog.service systemd-vconsole-setup.service
+Conflicts=emergency.service
+Before=emergency.service
+Conflicts=shutdown.target initrd-switch-root.target
+Before=shutdown.target initrd-switch-root.target
ConditionKernelCommandLine=!blog.enable=0
ConditionVirtualization=!container
ConditionPathExists=/run/blogd.pid
[Service]
ExecStart=/usr/bin/systemd-tty-ask-password-agent --watch --plymouth
+SystemCallArchitectures=native
--- libconsole/console.c
+++ libconsole/console.c 2025-04-17 12:44:55.791489867 +0000
@@ -598,11 +598,17 @@ static int consinitIO(struct console *ne
memset(&newc->ltio, 0, sizeof(newc->ltio));
memset(&newc->otio, 0, sizeof(newc->otio));
memset(&newc->ctio, 0, sizeof(newc->ctio));
+
+#if defined(__s390__) || defined(__s390x__)
+ if (major(newc->dev) == 4 && minor(newc->dev) == 64)
+ return 1;
+#endif
if ((tflags = fcntl(newc->fd, F_GETFL)) < 0)
warn("can not get terminal flags of %s", newc->tty);
tflags &= ~(O_NONBLOCK);
tflags |= O_NOCTTY;
+
if (fcntl(newc->fd, F_SETFL, tflags) < 0)
warn("can not set terminal flags of %s", newc->tty);
@@ -1319,7 +1325,7 @@ static void ask_for_password(void)
(major(c->dev) == 227 && minor(c->dev) >= 1))
len = asprintf(&message, BOLD RED "\n\r%s: " NORM, pwprompt);
else
- len = asprintf(&message, "\n\r>> %s: ", pwprompt);
+ len = asprintf(&message, "\n\r===>> %s: ", pwprompt);
#else
if (c->flags & CON_SERIAL)
len = asprintf(&message, BOLD RED "\n\r%s: " NORM, pwprompt);
--- libconsole/tty.c
+++ libconsole/tty.c 2025-04-17 12:52:55.030111493 +0000
@@ -15,6 +15,7 @@
#include <signal.h>
#include <sys/inotify.h>
#include <sys/ioctl.h>
+#include <sys/sysmacros.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
@@ -52,6 +53,9 @@ int request_tty(const char *tty)
{
struct sigaction saved_sighup;
int fd = -1, nd, wd;
+#if defined(__s390__) || defined(__s390x__)
+ struct stat sb;
+#endif
fd = open("/dev/tty", O_RDWR|O_NOCTTY|O_CLOEXEC|O_NONBLOCK);
if (fd >= 0) {
@@ -95,9 +99,16 @@ int request_tty(const char *tty)
break;
}
+#if defined(__s390__) || defined(__s390x__)
+ if (fstat(fd, &sb) == 0 && major(sb.st_dev) == 4 && minor(sb.st_dev) == 64)
+ goto noblock;
+#endif
flags = fcntl(fd, F_GETFL);
flags &= ~O_NONBLOCK;
fcntl(fd, F_SETFL, flags);
+#if defined(__s390__) || defined(__s390x__)
+ noblock:
+#endif
if (ret >= 0)
break; /* Success */

View File

@@ -1,129 +0,0 @@
---
Makefile | 71 +++++++++++++++--------------------------
blog-store-messages.service.in | 4 ++
module-setup.sh | 4 +-
3 files changed, 32 insertions(+), 47 deletions(-)
--- Makefile
+++ Makefile 2025-04-17 09:16:07.090977206 +0000
@@ -137,50 +137,28 @@ install: $(TODO)
$(INSTSCR) module-setup.sh $(DESTDIR)$(DRACUTMOD)/
$(LINK) libblogger.so.$(MAJOR).$(MINOR) $(DESTDIR)$(LIBDIR)/libblogger.so.$(MAJOR)
$(LINK) libblogger.so.$(MAJOR).$(MINOR) $(DESTDIR)$(LIBDIR)/libblogger.so
- for unit in blog blog-final blog-quit blog-store-messages blog-switch-root blog-switch-initramfs blog-umount ; do \
- $(INSTCON) $${unit}.service $(DESTDIR)$(SYSDUNITS)/ ; \
- done
- for unit in systemd-ask-password-blog.path systemd-ask-password-blog.service ; do \
- $(INSTCON) $${unit} $(DESTDIR)$(SYSDUNITS)/ ; \
- done
- for target in default sysinit basic local-fs-pre halt rescue shutdown reboot poweroff kexec emergency initrd-switch-root; do \
- $(MKDIR) $(DESTDIR)$(SYSDUNITS)/$${target}.target.wants ; \
- done
- for service in systemd-ask-password-blog ; do \
- $(MKDIR) $(DESTDIR)$(SYSDUNITS)/$${target}.service.wants ; \
- done
- for unit in blog-quit.service ; do \
- $(LINK) ../$${unit} $(DESTDIR)$(SYSDUNITS)/default.target.wants/$${unit} ; \
- $(LINK) ../$${unit} $(DESTDIR)$(SYSDUNITS)/rescue.target.wants/$${unit} ; \
- $(LINK) ../$${unit} $(DESTDIR)$(SYSDUNITS)/emergency.target.wants/$${unit} ; \
- done
- for unit in blog.service ; do \
- $(LINK) ../$${unit} $(DESTDIR)$(SYSDUNITS)/basic.target.wants/$${unit} ; \
- done
- for unit in blog-store-messages.service systemd-ask-password-blog.path ; do \
- $(LINK) ../$${unit} $(DESTDIR)$(SYSDUNITS)/sysinit.target.wants/$${unit} ; \
- done
- for unit in blog-umount.service ; do \
- $(LINK) ../$${unit} $(DESTDIR)$(SYSDUNITS)/local-fs-pre.target.wants/$${unit} ; \
- done
- for unit in blog-switch-initramfs.service ; do \
- $(LINK) ../$${unit} $(DESTDIR)$(SYSDUNITS)/reboot.target.wants/$${unit} ; \
- $(LINK) ../$${unit} $(DESTDIR)$(SYSDUNITS)/poweroff.target.wants/$${unit} ; \
- $(LINK) ../$${unit} $(DESTDIR)$(SYSDUNITS)/kexec.target.wants/$${unit} ; \
- $(LINK) ../$${unit} $(DESTDIR)$(SYSDUNITS)/halt.target.wants/$${unit} ; \
- done
- for unit in reboot poweroff kexec halt ; do \
- $(LINK) ../blog-$${unit}.service $(DESTDIR)$(SYSDUNITS)/$${unit}.target.wants/blog-$${unit}.service ; \
- done
- for target in systemd-ask-password-blog.service ; do \
- $(MKDIR) $(DESTDIR)$(SYSDUNITS)/$${target}.wants ; \
- done
- for unit in blog.service blog-switch-root.service ; do \
- $(LINK) ../$${unit} $(DESTDIR)$(SYSDUNITS)/initrd-switch-root.target.wants/$${unit} ; \
- done
- for unit in systemd-vconsole-setup.service ; do \
- $(LINK) ../$${unit} $(DESTDIR)$(SYSDUNITS)/systemd-ask-password-blog.service.wants/$${unit} ; \
- done
+ @set +x; \
+ export initdir=$(DESTDIR); \
+ export systemdsystemunitdir=$(SYSDUNITS); \
+ inst_multiple () { \
+ if test $$1 = -o; then \
+ shift; \
+ for o; do \
+ test -e $${o##*/} && command install -vp -m 0644 $${o##*/} $${initdir}$${o} || : ; \
+ done; \
+ else \
+ command install -vp -m 0755 $${1##*/} $${initdir}$(SBINDIR)/; \
+ fi; \
+ }; \
+ ln_r () { \
+ local rel="$$(realpath -m --relative-to=$${2%/*}/ $${1%/*}/)"; \
+ ln -sf $${rel}/$${1##*/} $${initdir}$${2}; }; \
+ . ./module-setup.sh ; \
+ set -xe; install
+ $(MKDIR) $(DESTDIR)$(SYSDUNITS)/local-fs-pre.target.wants
+ $(MKDIR) $(DESTDIR)$(SYSDUNITS)/default.target.wants
+ $(LINK) ../blog-umount.service $(DESTDIR)$(SYSDUNITS)/local-fs-pre.target.wants/
+ $(LINK) ../blog-quit.service $(DESTDIR)$(SYSDUNITS)/default.target.wants/
#
# Make distribution
@@ -205,8 +183,11 @@ FILES = README \
isserial.c \
isserial.8 \
blog.service \
- blog-final.service \
+ blog-halt.service \
+ blog-kexec.service \
+ blog-poweroff.service \
blog-quit.service \
+ blog-reboot.service \
blog-store-messages.service.in \
blog-switch-root.service \
blog-switch-initramfs.service \
--- blog-store-messages.service.in
+++ blog-store-messages.service.in 2025-04-17 09:01:01.507551296 +0000
@@ -1,9 +1,13 @@
[Unit]
Description=Tell blogd about writable boot log
DefaultDependencies=no
+RequiresMountsFor=/var/log/boot.log
+Conflicts=shutdown.target
+After=systemd-remount-fs.service systemd-tmpfiles-setup.service auditd.service
After=local-fs.target
Before=sysinit.target
ConditionPathExists=!/etc/initrd-release
+ConditionPathIsReadWrite=/var/log
[Service]
Type=oneshot
--- module-setup.sh
+++ module-setup.sh 2025-04-17 08:33:37.601635305 +0000
@@ -34,14 +34,14 @@ install() {
ln_r "${systemdsystemunitdir}/${s}" "${systemdsystemunitdir}/rescue.target.wants/${s}"
ln_r "${systemdsystemunitdir}/${s}" "${systemdsystemunitdir}/emergency.target.wants/${s}"
done
- for s in blog.service systemd-ask-password-blog.path
+ for s in blog.service blog-store-messages.service
do
ln_r "${systemdsystemunitdir}/${s}" "${systemdsystemunitdir}/sysinit.target.wants/${s}"
done
for u in reboot poweroff kexec halt
do
ln_r "${systemdsystemunitdir}/blog-${u}.service" "${systemdsystemunitdir}/${u}.target.wants/blog-${u}.service"
- ln_r "${systemdsystemunitdir}/blog-switch-initramfs.service" "${systemdsystemunitdir}/${u}.target.wants/blog-switch-initramfs"
+ ln_r "${systemdsystemunitdir}/blog-switch-initramfs.service" "${systemdsystemunitdir}/${u}.target.wants/blog-switch-initramfs.service"
done
for t in systemd-ask-password-blog.service
do

BIN
showconsole-2.34.tar.gz (Stored with Git LFS)

Binary file not shown.