home bbs files messages ]

Just a sample of the Echomail archive

Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.

   RBERRYPI      Support for the Raspberry Pi device      21,939 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 20,686 of 21,939   
   Anton Shepelev to All   
   Execution of setupcon at boot   
   15 Sep 24 21:20:37   
   
   INTL 3:770/1 3:770/3   
   REPLYADDR ant@tilde.culb   
   REPLYTO 3:770/3.0 UUCP   
   MSGID:  4892b697   
   PID: SoupGate-Win32 v1.05   
   XPost: alt.os.linux.debian   
      
   Hello, all   
      
   On RPi OS Bookworm, console and keyboard initialisation via `setupcon' seem   
   doubly duplicated (sic), and I am x-posting this to .debian because it   
   may not be speific to Pi OS:   
      
   1. in that systemd services and init.d scripts do the same thing:   
        /etc/init.d:   
           console-setup.sh       -> /lib/console-setup/console-setup.sh   
           keyboard-setup.sh      -> /lib/console-setup/keyboard-setup.sh   
      
        /usr/lib/systemd/system:   
           console-setup.service  -> /lib/console-setup/console-setup.sh   
           keyboard-setup.service -> /lib/console-setup/keyboard-setup.sh   
      
   2. in that /lib/console-setup/console-setup.sh includes both console and   
      keyboard setup, making keyboard-setup.sh redundant.   
      
   This is futher complicated by what I consider two crutches in   
   /lib/console-setup/keyboard-setup.sh :   
      
   1. `setupcon' is invoked if and only if at least one of following   
      conditions is met:   
      
      1. this is /not/ the first time after reboot that the script runs --   
         a special case misleadingly annotated in the source as skipping an   
         invocation "after boot," without an explanation why it should be   
         skipped. Nor does it always /skip/ the invocation, because this is   
         only one of the two sufficient (OR'ed) conditions .   
      
      2. the cache (from a previous invocation with --size) does not exist   
         or is older than the default configuration in   
         /etc/default/console-setup.   
      
   2. it invokes `setupcon' with the --size option, which causes it to   
   	cache the necessary data files under /etc/console-setup so that they   
   	are available to subsequent invocations before /usr is mounted, e.g.   
   	at an early state of the boot process. In the script, however, --size   
   	seems redunadant, because:   
      
      1. if at the time of invocation /usr is not yet mounted, `setupcon'   
         will take its data from the cache, and --size will have no effect,   
         (expect, perhaps, rewriting the cache with the same contents).   
      
      2. if at the time invocation /usr is already mounted, `setupcon' will   
         build the data based on its config file,   
         /etc/default/console-setup ,   
         and the files in /usr .   
      
   Therefore, I think that all this confusing complexity can be reduced to   
   a very simple invocation that configures both keyboard and console:   
      
      if [ -f /etc/default/locale ]; then   
         # In order to permit auto-detection of the charmap when   
         # console-setup-mini operates without configuration file.   
         . /etc/default/locale   
         export LANG   
      fi   
      setupcon   
      
   and is invoked by a single systemd service requiring that /usr be   
   mounted, as the current services already do.  Perhaps it is a newbie's   
   wishful thinking, so what is the reason for current setup? Also, are   
   able to configure your Bookworms to set the font in your TTYs without   
   changing the aforementioned shell scripts? I was not, and had to   
   simplify the process as described above.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)   
   SEEN-BY: 10/0 1 90/1 103/705 105/81 106/201 124/5016 129/305 153/757   
   SEEN-BY: 153/7715 218/0 1 601 700 840 870 930 220/70 221/1 6 360 226/17   
   SEEN-BY: 226/30 100 227/114 229/110 111 114 200 206 300 317 400 426   
   SEEN-BY: 229/428 470 550 616 664 700 240/1120 266/512 267/800 282/1038   
   SEEN-BY: 291/111 292/854 301/1 113 812 310/31 320/219 322/757 335/364   
   SEEN-BY: 341/66 342/200 396/45 460/58 633/280 712/848 770/1 3 100   
   SEEN-BY: 770/330 340 772/210 220 230 5020/400 1042 5058/104 5075/35   
   PATH: 770/3 1 218/840 221/6 301/1 218/700 229/426   
      

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca