[systemd/f22] Reconfigure old Finnish keymaps in post
Zbigniew Jędrzejewski-Szmek
zbyszek at fedoraproject.org
Sat Mar 14 17:31:23 UTC 2015
commit 37ffabf41ed3da004ae8e7a90b18d8d32201da24
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Mar 14 11:48:28 2015 -0400
Reconfigure old Finnish keymaps in post
systemd.spec | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/systemd.spec b/systemd.spec
index cb22324..a5c6681 100644
--- a/systemd.spec
+++ b/systemd.spec
@@ -190,6 +190,7 @@ BuildRequires: git
Requires(post): coreutils
Requires(post): sed
Requires(post): acl
+Requires(post): grep
Requires(pre): coreutils
Requires(pre): /usr/bin/getent
Requires(pre): /usr/sbin/groupadd
@@ -569,7 +570,14 @@ mv %{_localstatedir}/lib/backlight %{_localstatedir}/lib/systemd/backlight >/dev
ln -s /usr/lib/systemd/system/rsyslog.service /etc/systemd/system/syslog.service >/dev/null 2>&1 || :
# Remove spurious /etc/fstab entries from very old installations
-sed -i.rpm.bak -r '/^devpts\s+\/dev\/pts\s+devpts\s+defaults\s+/d; /^tmpfs\s+\/dev\/shm\s+tmpfs\s+defaults\s+/d; /^sysfs\s+\/sys\s+sysfs\s+defaults\s+/d; /^proc\s+\/proc\s+proc\s+defaults\s+/d' /etc/fstab
+# https://bugzilla.redhat.com/show_bug.cgi?id=1009023
+grep -v -E -q '^(devpts|tmpfs|sysfs|proc)' /etc/fstab || \
+ sed -i.rpm.bak -r '/^devpts\s+\/dev\/pts\s+devpts\s+defaults\s+/d; /^tmpfs\s+\/dev\/shm\s+tmpfs\s+defaults\s+/d; /^sysfs\s+\/sys\s+sysfs\s+defaults\s+/d; /^proc\s+\/proc\s+proc\s+defaults\s+/d' /etc/fstab || :
+
+# Replace obsolete keymaps
+# https://bugzilla.redhat.com/show_bug.cgi?id=1151958
+grep -v -E -q '^KEYMAP="?fi-latin[19]"?' /etc/vconsole.conf || \
+ sed -i.rpm.bak -r 's/^KEYMAP="?fi-latin[19]"?/KEYMAP="fi"/' /etc/vconsole.conf || :
# Services we install by default, and which are controlled by presets.
if [ $1 -eq 1 ] ; then
@@ -961,6 +969,7 @@ getent passwd systemd-journal-upload >/dev/null 2>&1 || useradd -r -l -g systemd
- Downgrade various log messages.
- Fix issue where journal-remote would process some messages with a delay.
- GPT /srv partition autodiscovery is fixed.
+- Reconfigure old Finnish keymaps in post (#1151958)
* Tue Mar 10 2015 Jan Synáček <jsynacek at redhat.com> - 219-8
- Buttons on Lenovo X6* tablets broken (#1198939)
More information about the scm-commits
mailing list