ALT Linux Bugzilla
– Attachment 14941 Details for
Bug 48254
Если luks обнаруживается до запуска plymouth, то пароль спрашивается в консоли
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
0001-feature-plymouth-Show-splash-in-synchronous-mode.patch
0001-feature-plymouth-Show-splash-in-synchronous-mode.patch (text/plain), 1.71 KB, created by
Alexey Gladkov
on 2023-10-31 16:00:47 MSK
(
hide
)
Description:
0001-feature-plymouth-Show-splash-in-synchronous-mode.patch
Filename:
MIME Type:
Creator:
Alexey Gladkov
Created:
2023-10-31 16:00:47 MSK
Size:
1.71 KB
patch
obsolete
>From 0370ab671562302e6dfffc0d9e3049817634bc34 Mon Sep 17 00:00:00 2001 >From: Alexey Gladkov <gladkov.alexey@gmail.com> >Date: Tue, 31 Oct 2023 13:57:50 +0100 >Subject: [PATCH] feature/plymouth: Show splash in synchronous mode > >Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com> >--- > .../plymouth/data/etc/rc.d/init.d/plymouth | 23 +++++++++++-------- > 1 file changed, 13 insertions(+), 10 deletions(-) > >diff --git a/features/plymouth/data/etc/rc.d/init.d/plymouth b/features/plymouth/data/etc/rc.d/init.d/plymouth >index f465165f..26a31544 100755 >--- a/features/plymouth/data/etc/rc.d/init.d/plymouth >+++ b/features/plymouth/data/etc/rc.d/init.d/plymouth >@@ -15,29 +15,32 @@ > . /etc/init.d/template > . initrd-sh-functions > >-show_splash() { >- udevadm settle --timeout=30 --exit-if-exists=/sys/class/drm/card0/dev >- udevadm settle --timeout=30 --exit-if-exists=/sys/class/graphics/fb0/dev >- plymouth show-splash >-} >- > start() { > [ -z "${NOSPLASH-}" ] || > return 0 > >- local pid=/run/plymouth/pid >+ udevadm settle --timeout=30 --exit-if-exists=/sys/class/drm/card0/dev >+ udevadm settle --timeout=30 --exit-if-exists=/sys/class/graphics/fb0/dev >+ >+ local pidfile=/run/plymouth/pid > > mkdir -m 0755 /run/plymouth 2>/dev/null ||: > : > /run/systemd/plymouth > >- start_daemon --lockfile "$LOCKFILE" -- plymouthd --mode=boot --tty=/dev/tty1 --pid-file=$pid || >+ start_daemon --lockfile "$LOCKFILE" -- plymouthd --mode=boot --tty=/dev/tty1 --pid-file=$pidfile || > RETVAL=$? > > [ "$RETVAL" = 0 ] || > return $RETVAL > >- omit_pid "$(cat "$pid")" >- show_splash & >+ pid="$(cat "$pidfile")" >+ >+ while [ -e "/proc/$pid" ] && ! plymouth --ping 2>/dev/null; do >+ sleep 1 >+ done >+ >+ omit_pid "$pid" >+ plymouth show-splash > } > > stop() { >-- >2.33.8 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 48254
:
14934
| 14941