add plymouth module for plymouth < 0.7
parent
7a02208af4
commit
42baa902f2
|
@ -0,0 +1,13 @@
|
||||||
|
# hacky rules to try to try unlocking dm-crypt devs
|
||||||
|
#
|
||||||
|
# Copyright 2008, Red Hat, Inc.
|
||||||
|
# Jeremy Katz <katzj@redhat.com>
|
||||||
|
|
||||||
|
|
||||||
|
SUBSYSTEM!="block", GOTO="luks_end"
|
||||||
|
ACTION!="add|change", GOTO="luks_end"
|
||||||
|
|
||||||
|
KERNEL!="sr*", IMPORT{program}="vol_id --export $tempnode"
|
||||||
|
ENV{ID_FS_TYPE}=="crypto_LUKS", RUN+="cryptroot-ask $env{DEVNAME} luks-$env{ID_FS_UUID}"
|
||||||
|
|
||||||
|
LABEL="luks_end"
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/bash
|
||||||
|
[[ -x /sbin/plymouthd && -x /bin/plymouth && ! /usr/sbin/plymouth-set-default-theme ]]
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
[ -b /dev/mapper/$2 ] || exec /bin/plymouth ask-for-password --command="/sbin/cryptsetup luksOpen -T1 $1 $2"
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/bash
|
||||||
|
echo "installing plymouth"
|
||||||
|
. "$moddir"/plymouth-populate-initrd
|
||||||
|
inst_hook pre-udev 10 "$moddir"/plymouth-start.sh
|
||||||
|
inst_hook pre-pivot 90 "$moddir"/plymouth-newroot.sh
|
||||||
|
inst_rules "$moddir/63-luks.rules"
|
||||||
|
inst "$moddir"/cryptroot-ask.sh /lib/udev/cryptroot-ask
|
||||||
|
inst cryptsetup
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
[ -x /bin/plymouth ] && /bin/plymouth --newroot=$NEWROOT
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
#!/bin/bash
|
||||||
|
if ldd /proc/$$/exe |grep -q lib64; then
|
||||||
|
LIBDIR="/usr/lib64"
|
||||||
|
else
|
||||||
|
LIBDIR="/usr/lib"
|
||||||
|
fi
|
||||||
|
PLYMOUTH_LOGO_FILE="/usr/share/pixmaps/system-logo-white.png"
|
||||||
|
PLYMOUTH_PLUGIN_NAME=$(plymouth-set-default-plugin)
|
||||||
|
|
||||||
|
inst /sbin/plymouthd /bin/plymouthd
|
||||||
|
dracut_install /bin/plymouth "${LIBDIR}/plymouth/text.so" \
|
||||||
|
"${LIBDIR}/plymouth/details.so" "${PLYMOUTH_LOGO_FILE}" \
|
||||||
|
/etc/system-release "${LIBDIR}/plymouth/${PLYMOUTH_PLUGIN_NAME:=text}.so"
|
||||||
|
mkdir -p "${initdir}/usr/share/plymouth"
|
||||||
|
|
||||||
|
[[ -f ${LIBDIR}/plymouth/default.so ]] && inst ${LIBDIR}/plymouth/default.so
|
||||||
|
|
||||||
|
if [[ -d /usr/share/plymouth/${PLYMOUTH_PLUGIN_NAME} ]]; then
|
||||||
|
for x in "/usr/share/plymouth/${PLYMOUTH_PLUGIN_NAME}"/* ; do
|
||||||
|
[[ -f "$x" ]] || break
|
||||||
|
inst $x
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
# vim:ts=8:sw=4:sts=4:et
|
|
@ -0,0 +1,31 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
[[ -c /dev/null ]] || mknod /dev/null c 1 3
|
||||||
|
mknod /dev/zero c 1 5
|
||||||
|
mknod /dev/systty c 4 0
|
||||||
|
mknod /dev/tty c 5 0
|
||||||
|
[[ -c /dev/console ]] || mknod /dev/console c 5 1
|
||||||
|
[[ -c /dev/ptmx ]] || mknod /dev/ptmx c 5 2
|
||||||
|
mknod /dev/fb c 29 0
|
||||||
|
mknod /dev/tty0 c 4 0
|
||||||
|
mknod /dev/tty1 c 4 1
|
||||||
|
mknod /dev/tty2 c 4 2
|
||||||
|
mknod /dev/tty3 c 4 3
|
||||||
|
mknod /dev/tty4 c 4 4
|
||||||
|
mknod /dev/tty5 c 4 5
|
||||||
|
mknod /dev/tty6 c 4 6
|
||||||
|
mknod /dev/tty7 c 4 7
|
||||||
|
mknod /dev/tty8 c 4 8
|
||||||
|
mknod /dev/tty9 c 4 9
|
||||||
|
mknod /dev/tty10 c 4 10
|
||||||
|
mknod /dev/tty11 c 4 11
|
||||||
|
mknod /dev/tty12 c 4 12
|
||||||
|
mknod /dev/ttyS0 c 4 64
|
||||||
|
mknod /dev/ttyS1 c 4 65
|
||||||
|
mknod /dev/ttyS2 c 4 66
|
||||||
|
mknod /dev/ttyS3 c 4 67
|
||||||
|
/lib/udev/console_init tty0
|
||||||
|
|
||||||
|
[ -x /bin/plymouthd ] && /bin/plymouthd
|
||||||
|
[ -x /bin/plymouth ] && /bin/plymouth --show-splash
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
[[ -x /sbin/plymouthd && -x /bin/plymouth ]]
|
[[ -x /sbin/plymouthd && -x /bin/plymouth && -x /usr/sbin/plymouth-set-default-plugin ]]
|
||||||
|
|
Loading…
Reference in New Issue