add module gensplash
PATCH 1/1 add module gensplash
--- modules.d/50gensplash/README | 42 ++++++++++++++++ modules.d/50gensplash/check | 5 ++ modules.d/50gensplash/gensplash-emergency.sh | 5 ++ modules.d/50gensplash/gensplash-newroot.sh | 5 ++ modules.d/50gensplash/gensplash-pretrigger.sh | 14 ++++++ modules.d/50gensplash/install | 63 +++++++++++++++++++++++++ 6 files changed, 134 insertions(+), 0 deletions(-) create mode 100644 modules.d/50gensplash/README create mode 100755 modules.d/50gensplash/check create mode 100755 modules.d/50gensplash/gensplash-emergency.sh create mode 100755 modules.d/50gensplash/gensplash-newroot.sh create mode 100755 modules.d/50gensplash/gensplash-pretrigger.sh create mode 100755 modules.d/50gensplash/install
modules.d/50gensplash/README new file +42 -0
@@ -0,0 +1,42 @@ +Dracut gensplash module +----------------------- + +INDEX + +0. Introduction +1. Hostonly vs Generic +2. Configuration and kernel parameters + +~ + +0. Introduction + +gensplash is based on Genkernel code and that's why it's Gentoo-specific. It +requires splashutils to work. To set up theme you may edit /etc/conf.d/splash +or set DRACUT_GENSPLASH_THEME and DRACUT_GENSPLASH_RES variables. Your theme +has to exist in /etc/splash and for every given resolution has to exist config +in theme's directory, e.g. there's 1024x768.cfg in /etc/splash/natural_gentoo. +List of resolutions is comma-separated. + +NOTE: The module will be rewritten to be distro-neutral. Its name will change +to fbsplash. + + +1. Hostonly vs Generic + +All available themes are installed only if no --hostonly is specified and no +DRACUT_GENSPLASH_THEME and DRACUT_GENSPLASH_RES are set. Otherwise those vars +are checked and if not set then config /etc/conf.d/splash is read. + + +2. Configuration and kernel parameters + +Example set up by environment variables: + DRACUT_GENSPLASH_THEME=natural_gentoo + DRACUT_GENSPLASH_RES=1024x768,1024x600 + +Example kernel arguments: + splash=silent,theme:natural_gentoo console=tty1 quiet + +You may easily set up the module using Genkernel with arguments: + --gensplash=<theme>:<res1>,<res2>,...
modules.d/50gensplash/check new file +5 -0
@@ -0,0 +1,5 @@ +#!/bin/bash + +# TODO: splash_geninitramfs +# TODO: /usr/share/splashutils/initrd.splash +exit 255
modules.d/50gensplash/gensplash-emergency.sh new file +5 -0
@@ -0,0 +1,5 @@ +#!/bin/sh + +CDROOT=0 +. /lib/gensplash-lib.sh +splash verbose
modules.d/50gensplash/gensplash-newroot.sh new file +5 -0
@@ -0,0 +1,5 @@ +#!/bin/sh + +CDROOT=0 +. /lib/gensplash-lib.sh +splash set_msg 'Switching to new root'
modules.d/50gensplash/gensplash-pretrigger.sh new file +14 -0
@@ -0,0 +1,14 @@ +#!/bin/sh + +if ! getarg rd_NO_SPLASH; then + [ -c /dev/null ] || mknod /dev/null c 1 3 + [ -c /dev/console ] || mknod /dev/console c 5 1 + [ -c /dev/tty0 ] || mknod /dev/tty0 c 4 0 + + info "Starting Gentoo Splash" + + /lib/udev/console_init tty0 + CDROOT=0 + . /lib/gensplash-lib.sh + splash init +fi
modules.d/50gensplash/install new file +63 -0
63 lines not on this page · raw message
Signature · 1 line
1.7.2
A message that is not in the archive (sent off-list or not yet received): [email protected]
--- modules.d/50gensplash/README | 42 ++++++++++++++++ modules.d/50gensplash/check | 5 ++ modules.d/50gensplash/gensplash-emergency.sh | 5 ++ modules.d/50gensplash/gensplash-newroot.sh | 5 ++ modules.d/50gensplash/gensplash-pretrigger.sh | 14 ++++++ modules.d/50gensplash/install | 63 +++++++++++++++++++++++++ 6 files changed, 134 insertions(+), 0 deletions(-) create mode 100644 modules.d/50gensplash/README create mode 100755 modules.d/50gensplash/check create mode 100755 modules.d/50gensplash/gensplash-emergency.sh create mode 100755 modules.d/50gensplash/gensplash-newroot.sh create mode 100755 modules.d/50gensplash/gensplash-pretrigger.sh create mode 100755 modules.d/50gensplash/install
modules.d/50gensplash/README new file +42 -0
@@ -0,0 +1,42 @@ +Dracut gensplash module +----------------------- + +INDEX + +0. Introduction +1. Hostonly vs Generic +2. Configuration and kernel parameters + +~ + +0. Introduction + +gensplash is based on Genkernel code and that's why it's Gentoo-specific. It +requires splashutils to work. To set up theme you may edit /etc/conf.d/splash +or set DRACUT_GENSPLASH_THEME and DRACUT_GENSPLASH_RES variables. Your theme +has to exist in /etc/splash and for every given resolution has to exist config +in theme's directory, e.g. there's 1024x768.cfg in /etc/splash/natural_gentoo. +List of resolutions is comma-separated. + +NOTE: The module will be rewritten to be distro-neutral. Its name will change +to fbsplash. + + +1. Hostonly vs Generic + +All available themes are installed only if no --hostonly is specified and no +DRACUT_GENSPLASH_THEME and DRACUT_GENSPLASH_RES are set. Otherwise those vars +are checked and if not set then config /etc/conf.d/splash is read. + + +2. Configuration and kernel parameters + +Example set up by environment variables: + DRACUT_GENSPLASH_THEME=natural_gentoo + DRACUT_GENSPLASH_RES=1024x768,1024x600 + +Example kernel arguments: + splash=silent,theme:natural_gentoo console=tty1 quiet + +You may easily set up the module using Genkernel with arguments: + --gensplash=<theme>:<res1>,<res2>,...
modules.d/50gensplash/check new file +5 -0
@@ -0,0 +1,5 @@ +#!/bin/bash + +# TODO: splash_geninitramfs +# TODO: /usr/share/splashutils/initrd.splash +exit 255
modules.d/50gensplash/gensplash-emergency.sh new file +5 -0
@@ -0,0 +1,5 @@ +#!/bin/sh + +CDROOT=0 +. /lib/gensplash-lib.sh +splash verbose
modules.d/50gensplash/gensplash-newroot.sh new file +5 -0
@@ -0,0 +1,5 @@ +#!/bin/sh + +CDROOT=0 +. /lib/gensplash-lib.sh +splash set_msg 'Switching to new root'
modules.d/50gensplash/gensplash-pretrigger.sh new file +14 -0
@@ -0,0 +1,14 @@ +#!/bin/sh + +if ! getarg rd_NO_SPLASH; then + [ -c /dev/null ] || mknod /dev/null c 1 3 + [ -c /dev/console ] || mknod /dev/console c 5 1 + [ -c /dev/tty0 ] || mknod /dev/tty0 c 4 0 + + info "Starting Gentoo Splash" + + /lib/udev/console_init tty0 + CDROOT=0 + . /lib/gensplash-lib.sh + splash init +fi
modules.d/50gensplash/install new file +63 -0
63 lines not on this page · raw message
Signature · 1 line
1.7.2