Gentoo Archives: gentoo-kernel

From: Jimmy Jazz <Jimmy.Jazz@×××.net>
To: gentoo-kernel@l.g.o, spock@g.o
Subject: Re: [gentoo-kernel] I'm not able to get the vertical bar with gensplash after issuing alt+f1 key during the earlier boot stage
Date: Mon, 11 Jun 2007 21:32:26
Message-Id: 466DBF2C.1040508@gmx.net
In Reply to: Re: [gentoo-kernel] I'm not able to get the vertical bar with gensplash after issuing alt+f1 key during the earlier boot stage by Michal Januszewski
1 Hello Spock,
2
3 Sorry for the late reply. It becomes an habit :) Anyway, i was busy to
4 get the early boot script work with splashutils daemon last week end. I
5 didn't even have too much time to decipher all the possibilities your
6 program offers. I certainly missed some features it would offer. Also, i
7 still encountered many difficulties with the daemon and i would like to
8 discuss about it with you and perhaps even convince you to bring some
9 modifications to it.
10
11
12 The idea is: - to get a usable environment, even with music (debugging
13 could be quite long ;), when you are not able to boot the system anymore
14 (vi, gpm, alias, lvm, mdsetup, vgscan, fsck etc),- to stay full modular
15 and also - to support any filesystem you want (reiserfs, etc.) before
16 you even know anything about your drives. Most everything, i still want
17 to get the system as simple as possible.
18
19 In fact, after customising a configuration file that handles icon and
20 animation pictures, i begin to get in trouble :)
21
22 I need the helper after the daemon has stopped (it has displayed a lot
23 of nice icons before) and when the script switched to the real root file
24 system. It hides the console when the script will proceed.
25
26 As the helper didn't understand services, all the icons are displayed on
27 the screen and are scrambled with vertical stripes. To get rid of that,
28 i need to delete all the icon/anim lines in the configuration file. That
29 is a pity. Indeed, it would certainly be good to add some more options
30 to the helper to avoid the script to have to modify the configuration
31 file every time it calls the helper. Indeed, the file cannot contain
32 pre-declaration of icon/anim directives. Busybox doesn't understand "sed
33 -i", so you need a temporary file and your script becomes... more
34 complicated.
35
36 About animations, they are looping quite strangely when any other icons
37 are declared in the configuration file. They are displayed too, whatever
38 the services they belong to are.
39
40 Anyway, i'm quite satisfied with the result. Ash is strong enough to
41 handle the job well. The script stays readable :)
42
43 I tried to intercept the keyboard keys directly from the script as
44 gentoo baselayout v1 does (interactive mode) but without much success.
45 When the silent mode is called from the helper or the daemon, the script
46 doesn't react to the key i pressed, except the Alt-F1 key managed by the
47 kernel or the F2 key when called from the daemon. I tried stty in raw
48 mode too. I will confess, i didn't remember how ttys are handled by the
49 kernel and who cares ... until you really need them, especially when you
50 try to call extra keys like F3 or something similar :)
51
52 IMHO, letting the script directly handle the keyboard would help to
53 simplify all the thing, but how ?
54
55 Also, you asked me if i have tried baselayout version 2 with splashutils.
56
57 In fact, i will certainly never be able to switch to version 2. It is
58 written mostly in C (and that is a bad idea ;). It isn't flexible enough
59 whereas a rc bash will always be. In my case, it won't call the critical
60 services the kernel will need early enough or even in the right order to
61 help a mdp/lvm boot disk to mount :(.
62
63 Believe me, only scripts are able to save the world !
64
65 Jj
66 --
67
68 |\ _,,,---,,_
69 ZZZzz /,`.-'`' -. ;-;;,_
70 |,4- ) )-,_. ,\ ( `'-'
71 '---''(_/--' `-'\_)
72
73
74 *My Two Cents Comment** *
75 Large increases in cost with questionable increases in performance can
76 be tolerated only in race horses and women. -- Lord Kelvin
77 --
78 gentoo-kernel@g.o mailing list

Replies