Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Aug 2014 12:50:15 +0200
From:      Stefan Esser <se@freebsd.org>
To:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Cc:        John-Mark Gurney <jmg@funkthat.com>, =?UTF-8?B?VsOhY2xhdiBaZW1hbg==?= <vhaisman@gmail.com>, Aleksandr Rybalko <ray@ddteam.net>
Subject:   [PATCH] fixup and warn about syscons keymap file names used with vt
Message-ID:  <53FC6667.4090403@freebsd.org>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------050704000507080300030303
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

The attached patch implements the following new features to aid with the
transition from syscons to vt:

1) Determine whether executed under syscons or vt

2) Display the console type used in log messages

3) Warn about keymap files, that cannot be loaded

4) Suggest a compatible keymap file to use under vt,
   if a syscons keymap is specified in rc.conf

5) Load the suggested keymap file (may be crucial
   for systems first booted under vt, if the keymap
   is to different from the default and the name has
   not been updated in rc.conf before the reboot)

With these patches it should be possible to test vt on a system that
is configured for syscons.

Please test and report any findings.

I want to commit this change to head as soon as possible to make
sure it will make it into 10.1 ...

Regards, STefan

--------------050704000507080300030303
Content-Type: text/plain; charset=windows-1252;
 name="rc.d_syscons-for-vt.diff"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="rc.d_syscons-for-vt.diff"

SW5kZXg6IHN5c2NvbnMKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gc3lzY29ucwkoUmV2aXNpb24gMjcw
NjQ2KQorKysgc3lzY29ucwkoQXJiZWl0c2tvcGllKQpAQCAtNDUsMTYgKzQ1LDExOCBAQAog
a2JkZGV2PS9kZXYvdHR5djAKIHZpZGRldj0vZGV2L3R0eXYwCiAKLV9zY19jb25maWc9InN5
c2NvbnMiCitfc2NfY29uZmlnPQorX3NjX2NvbnNvbGU9CiBfc2NfaW5pdGRv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lzY29ucyIKKwkJX3NjX2NvbmZpZz0iJHtfc2NfY29u
c29sZX0iCiAJCV9zY19pbml0ZG9uZT0KIAlmaQotCiB9CiAKIHN5c2NvbnNfcHJlY21kKCkK
QEAgLTI1Niw2ICszNTcsMTIgQEAKIAlmaQogCiAJWyAtbiAiJHtfc2NfaW5pdGRvbmV9IiBd
ICYmIGVjaG8gJy4nCisJaWYgWyAtbiAiJHtfc2Nfa2V5bWFwX21zZ30iIF07IHRoZW4KKwkJ
ZWNobworCQllY2hvICJXQVJOSU5HOiIKKwkJZWNobyAiJHtfc2Nfa2V5bWFwX21zZ30uIgor
CQllY2hvCisJZmkKIH0KIAogbG9hZF9yY19jb25maWcgJG5hbWUK
--------------050704000507080300030303--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53FC6667.4090403>