]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
feat(gensplash): remove module
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Mon, 9 May 2022 14:32:19 +0000 (14:32 +0000)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Mon, 16 May 2022 19:01:17 +0000 (19:01 +0000)
splashutils Gentoo package (a dependency for the gensplash dracut module)
is non existent in the official Gentoo repositories.

.github/labeler.yml
modules.d/50gensplash/README [deleted file]
modules.d/50gensplash/gensplash-emergency.sh [deleted file]
modules.d/50gensplash/gensplash-newroot.sh [deleted file]
modules.d/50gensplash/gensplash-pretrigger.sh [deleted file]
modules.d/50gensplash/module-setup.sh [deleted file]
pkgbuild/dracut.spec

index 324dd2ec1dd0627ee078da391133134a24a93524..1c787a58883d5de8de360a9e788ea21b7dcfc5c4 100644 (file)
@@ -87,9 +87,6 @@ url-lib:
 drm:
   - modules.d/50drm/*
 
-gensplash:
-  - modules.d/50gensplash/*
-
 plymouth:
   - modules.d/50plymouth/*
 
diff --git a/modules.d/50gensplash/README b/modules.d/50gensplash/README
deleted file mode 100644 (file)
index 2e8e3ca..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-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>,...
diff --git a/modules.d/50gensplash/gensplash-emergency.sh b/modules.d/50gensplash/gensplash-emergency.sh
deleted file mode 100755 (executable)
index f21d54a..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-# shellcheck disable=SC2034
-CDROOT=0
-. /lib/gensplash-lib.sh
-splash verbose
diff --git a/modules.d/50gensplash/gensplash-newroot.sh b/modules.d/50gensplash/gensplash-newroot.sh
deleted file mode 100755 (executable)
index 445e91c..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-# shellcheck disable=SC2034
-CDROOT=0
-. /lib/gensplash-lib.sh
-splash set_msg 'Switching to new root'
diff --git a/modules.d/50gensplash/gensplash-pretrigger.sh b/modules.d/50gensplash/gensplash-pretrigger.sh
deleted file mode 100755 (executable)
index 038c10b..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-
-if getargbool 1 rd.splash -d -n rd_NO_SPLASH; then
-    info "Starting Gentoo Splash"
-
-    [ -x /lib/udev/console_init ] && /lib/udev/console_init /dev/tty0
-    # shellcheck disable=SC2034
-    CDROOT=0
-    . /lib/gensplash-lib.sh
-    splash init
-    [ -x /lib/udev/console_init ] && /lib/udev/console_init /dev/tty0
-fi
diff --git a/modules.d/50gensplash/module-setup.sh b/modules.d/50gensplash/module-setup.sh
deleted file mode 100755 (executable)
index bb91d13..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-#!/bin/bash
-
-# called by dracut
-check() {
-    # TODO: splash_geninitramfs
-    # TODO: /usr/share/splashutils/initrd.splash
-    return 255
-}
-
-# called by dracut
-depends() {
-    return 0
-}
-
-# called by dracut
-install() {
-    local _opts
-    local _splash_theme
-    local _splash_res
-
-    call_splash_geninitramfs() {
-        local _out _ret
-
-        _out=$(splash_geninitramfs -c "$1" "${@:2}" 2>&1)
-        _ret=$?
-
-        if [[ ${_out} ]]; then
-            local IFS='
-'
-            for line in ${_out}; do
-                if [[ ${line} =~ ^Warning ]]; then
-                    dwarn "${line}"
-                else
-                    derror "${line}"
-                    ((_ret == 0)) && _ret=1
-                fi
-            done
-        fi
-
-        return ${_ret}
-    }
-
-    find_binary splash_geninitramfs > /dev/null || return 1
-
-    _opts=''
-    if [[ ${DRACUT_GENSPLASH_THEME} ]]; then
-        # Variables from the environment
-        # They're supposed to be set up by e.g. Genkernel in basis of cmdline args.
-        # If user set them he/she would expect to be included only given theme
-        # rather then all even if we're building generic initramfs.
-        _splash_theme=${DRACUT_GENSPLASH_THEME}
-        _splash_res=${DRACUT_GENSPLASH_RES}
-    elif [[ ${hostonly} ]]; then
-        # Settings from config only in hostonly
-        # shellcheck disable=SC1090
-        [[ -e $dracutsysrootdir/etc/conf.d/splash ]] && source "$dracutsysrootdir"/etc/conf.d/splash
-        [[ ! ${_splash_theme} ]] && _splash_theme=default
-        [[ ${_splash_res} ]] && _opts+=" -r ${_splash_res}"
-    else
-        # generic
-        _splash_theme=--all
-    fi
-
-    dinfo "Installing Gentoo Splash (using the ${_splash_theme} theme)"
-
-    pushd "${initdir}" > /dev/null || exit
-    mv dev dev.old
-    call_splash_geninitramfs "${initdir}" "${_opts}" ${_splash_theme} || {
-        derror "Could not build splash"
-        return 1
-    }
-    rm -rf dev
-    mv dev.old dev
-    popd > /dev/null || exit
-
-    inst_multiple chvt
-    inst /usr/share/splashutils/initrd.splash /lib/gensplash-lib.sh
-    inst_hook pre-pivot 90 "${moddir}"/gensplash-newroot.sh
-    inst_hook pre-trigger 10 "${moddir}"/gensplash-pretrigger.sh
-    inst_hook emergency 50 "${moddir}"/gensplash-emergency.sh
-}
index 4bd69a5d1e13dd34cc21baedf8be1bc666887fa5..56888b09021b2a60117c0fe1dcc82d361f35dcfd 100644 (file)
@@ -217,9 +217,6 @@ rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/00dash
 # we do not support mksh in the initramfs
 rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/00mksh
 
-# remove gentoo specific modules
-rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/50gensplash
-
 %if %{defined _unitdir}
 # with systemd IMA and selinux modules do not make sense
 rm -fr -- $RPM_BUILD_ROOT/%{dracutlibdir}/modules.d/96securityfs