<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>28529</bug_id>
          
          <creation_ts>2013-02-08 17:24:08 +0400</creation_ts>
          <short_desc>миграция на distribution-agnostic конфиги</short_desc>
          <delta_ts>2014-07-03 21:53:16 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>console-scripts</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Shabalin">shaba</reporter>
          <assigned_to name="Alexey Gladkov">legion</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>legion</cc>
    
    <cc>placeholder</cc>
    
    <cc>shaba</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>137719</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2013-02-08 17:24:08 +0400</bug_when>
    <thetext>мигрировать настройки из /etc/sysconfig/keyboard в /etc/vconsole.conf
адаптировать /sbin/setsyskeytable для работы с новым конфигом /etc/vconsole.conf
адаптировать /sbin/setsysfont для работы с новым конфигом /etc/locale.conf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>137720</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2013-02-08 17:31:56 +0400</bug_when>
    <thetext>Предъявите примеры новых конфигов. Меняются ли названия переменных и если да, то как ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>137721</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2013-02-08 18:13:20 +0400</bug_when>
    <thetext>Вот man&apos;ы:


DESCRIPTION
       The /etc/locale.conf file configures system-wide locale settings. It is read at early-boot by systemd(1).

       The basic file format of locale.conf is a newline-separated list of environment-like shell-compatible variable assignments. It is possible to
       source the configuration from shell scripts, however, beyond mere variable assignments no shell features are supported, allowing applications
       to read the file without implementing a shell compatible execution engine.

       Note that the kernel command line options locale.LANG=, locale.LANGUAGE=, locale.LC_CTYPE=, locale.LC_NUMERIC=, locale.LC_TIME=,
       locale.LC_COLLATE=, locale.LC_MONETARY=, locale.LC_MESSAGES=, locale.LC_PAPER=, locale.LC_NAME=, locale.LC_ADDRESS=, locale.LC_TELEPHONE=,
       locale.LC_MEASUREMENT=, locale.LC_IDENTIFICATION= may be used to override the locale settings at boot.

       The locale settings configured in /etc/locale.conf are system-wide and are inherited by every service or user, unless overridden or unset by
       individual programs or individual users.

       Depending on the operating system other configuration files might be checked for locale configuration as well, however only as fallback.

OPTIONS
       The following locale settings may be set using /etc/locale.conf: LANG=, LANGUAGE=, LC_CTYPE=, LC_NUMERIC=, LC_TIME=, LC_COLLATE=,
       LC_MONETARY=, LC_MESSAGES=, LC_PAPER=, LC_NAME=, LC_ADDRESS=, LC_TELEPHONE=, LC_MEASUREMENT=, LC_IDENTIFICATION=. Note that LC_ALL may not be
       configured in this file. For details about the meaning and semantics of these settings, refer to locale(7).

EXAMPLE
       Example 1. German locale with English messages

       /etc/locale.conf:

           LANG=de_DE.UTF-8
           LC_MESSAGES=C



DESCRIPTION
       The /etc/vconsole.conf file configures the virtual console, i.e. keyboard mapping and console font. It is applied at boot by systemd-vconsole-
       setup.service(8).

       The basic file format of the vconsole.conf is a newline-separated list of environment-like shell-compatible variable assignments. It is
       possible to source the configuration from shell scripts, however, beyond mere variable assignments no shell features are supported, allowing
       applications to read the file without implementing a shell compatible execution engine.

       Note that the kernel command line options vconsole.keymap=, vconsole.keymap.toggle=, vconsole.font=, vconsole.font.map=, vconsole.font.unimap=
       may be used to override the console settings at boot.

       Depending on the operating system other configuration files might be checked for configuration of the virtual console as well, however only as
       fallback.

OPTIONS
       The following options are understood:

       KEYMAP=, KEYMAP_TOGGLE=
           Configures the key mapping table for the keyboard.  KEYMAP= defaults to us if not set. The KEYMAP_TOGGLE= can be used to configure a
           second toggle keymap and is by default unset.

       FONT=, FONT_MAP=, FONT_UNIMAP=
           Configures the console font, the console map and the unicode font map.

EXAMPLE
       Example 1. German keyboard and console

       /etc/vconsole.conf:

           KEYMAP=de-latin1
           FONT=latarcyrheb-sun16</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>137723</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2013-02-08 18:56:08 +0400</bug_when>
    <thetext>(В ответ на комментарий №2)
&gt; Вот man&apos;ы:

Это не ответ на мой вопрос.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>137725</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2013-02-08 19:09:40 +0400</bug_when>
    <thetext>setsysfont использует SYSFONT UNIMAP SYSFONTACM из файла /etc/sysconfig/consolefont.

setsyskeytable использует KEYTABLE KBCHARSET PC105 DISABLE_WINDOWS_KEY BACKSPACE GRP_TOGGLE из файла /etc/sysconfig/keyboard.

Если предлагается заменить /etc/sysconfig/keyboard на /etc/vconsole.conf и /etc/sysconfig/consolefont на /etc/locale.conf, то на что менять вышеуказанные параметры ?

Если же нет, то мне представляется странным нахождение части параметров в одном конфиге, а части в другом. Как предлагается решать эту проблему ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>137726</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2013-02-08 20:30:49 +0400</bug_when>
    <thetext>(В ответ на комментарий №4)
&gt; setsysfont использует SYSFONT UNIMAP SYSFONTACM из файла
&gt; /etc/sysconfig/consolefont.
&gt; 
&gt; setsyskeytable использует KEYTABLE KBCHARSET PC105 DISABLE_WINDOWS_KEY
&gt; BACKSPACE GRP_TOGGLE из файла /etc/sysconfig/keyboard.
&gt; 
&gt; Если предлагается заменить /etc/sysconfig/keyboard на /etc/vconsole.conf и
&gt; /etc/sysconfig/consolefont на /etc/locale.conf, то на что менять вышеуказанные
&gt; параметры ?
&gt; 
&gt; Если же нет, то мне представляется странным нахождение части параметров в одном
&gt; конфиге, а части в другом. Как предлагается решать эту проблему ?

Если этих параметров нет в man, то они не обрабатываются с помощью systemd.
Это не мешает их перенести в новое место. При желании, systemd, потом можно будет обучить обрабатывать эти параметры.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>137734</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2013-02-09 17:57:50 +0400</bug_when>
    <thetext>(В ответ на комментарий №5)
&gt; Если этих параметров нет в man, то они не обрабатываются с помощью systemd.

&gt; Это не мешает их перенести в новое место. При желании, systemd, потом можно
&gt; будет обучить обрабатывать эти параметры.

Тогда параметры из /etc/sysconfig/consolefont и /etc/sysconfig/keyboard нужно поместить в /etc/vconsole.conf т.к. раскладка и шрифты лежат у них в одном месте и не разделяются.

Что будем делать с localectl ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>146987</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2014-07-03 21:53:16 +0400</bug_when>
    <thetext>а что надо сделать с localectl?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>