From 84ef95d4214c775247af18c192f8f9655e7c5425 Mon Sep 17 00:00:00 2001 From: Zach Dykstra Date: Fri, 2 Feb 2024 23:46:21 -0600 Subject: [PATCH] dracut: silence spurious setfont stderr warning This error has been here for years, but unreported by setfont. Throw it away as it's not actionable. --- srcpkgs/dracut/patches/silence-setfont.patch | 19 +++++++++++++++++++ srcpkgs/dracut/template | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/dracut/patches/silence-setfont.patch diff --git a/srcpkgs/dracut/patches/silence-setfont.patch b/srcpkgs/dracut/patches/silence-setfont.patch new file mode 100644 index 00000000000000..377c0f3a8981a7 --- /dev/null +++ b/srcpkgs/dracut/patches/silence-setfont.patch @@ -0,0 +1,19 @@ +https://github.com/void-linux/void-packages/issues/45216 + +I'm tired of seeing these setfont errors. This will hopefully/eventually be upstreamed, but I'm not holding my breath. + +--- + +diff --git a/modules.d/10i18n/console_init.sh b/modules.d/10i18n/console_init.sh +index 3fe3b673..0e19ae30 100755 +--- a/modules.d/10i18n/console_init.sh ++++ b/modules.d/10i18n/console_init.sh +@@ -49,7 +49,7 @@ set_font() { + setfont "${FONT-${DEFAULT_FONT}}" \ + -C "${1}" \ + ${FONT_MAP:+-m "${FONT_MAP}"} \ +- ${FONT_UNIMAP:+-u "${FONT_UNIMAP}"} ++ ${FONT_UNIMAP:+-u "${FONT_UNIMAP}"} 2>/dev/null + } + + dev_close() { diff --git a/srcpkgs/dracut/template b/srcpkgs/dracut/template index 66231d6ff4d8b1..313e2d98719358 100644 --- a/srcpkgs/dracut/template +++ b/srcpkgs/dracut/template @@ -1,7 +1,7 @@ # Template file for 'dracut' pkgname=dracut version=059 -revision=6 +revision=7 build_style=configure configure_args="--prefix=/usr --sysconfdir=/etc" conf_files="/etc/dracut.conf"