Mailinglist Archive: opensuse (4237 mails)

< Previous Next >
Re: [SLE] BUG in mkinitrd Prevents Silent Bootsplash
  • From: Larry I Smith <larry.i.smith@xxxxxxxxxxx>
  • Date: Thu, 12 Aug 2004 23:52:10 -0500
  • Message-id: <411C48FA.7080009@xxxxxxxxxxx>
Anders Johansson wrote:
On Friday 13 August 2004 06:18, Larry I Smith wrote:

Well, I guess my machine works differently than yours.


You're really going to make me prove this, aren't you


If you copy the entire "handle splash screen" block to
a standalone script and set 'splash="auto"' to mimic
'mkinitrd', and set 'vgascan="./test.txt"' instead of
'/boot/grub/menu.lst', and add 'echo $vga' just before
the 'case' statement, then given this './test.txt' file:

vga=0x31a
0xffe
vga=791
0xdda
vga=123
vga=0xabc
vga=nba
795

the script will echo:

0x31a
791
123
0xabc


No it won't. Count spaces too. There's some other bug there that I can't quite see at the moment, but to illustrate the point, try this in your test.txt

a vga=0x31a b
a 0xffe b
a vga=791 b
a 0xdda b
a vga=123 b
a vga=0xabc b
a vga=nba b
a 795 b

The output will be

0x31a b
a
791 b
a
123 b
0xabc b

I'm too tired to see why the matching is off


This pattern (ignoring the spaces added for readability):

regexp1 \(regexp2\) \| \(regexp3\)

will match regexp1 followed by regexp2
-or- regexp1 followed by regexp3.
The 'or' operator matches either of the
2 regexps enclosed in parens, but regexp1
must always be matched.


wrong

rest of mail ignored

That's unfriendly....



Yes, I know about the other bug. It's always been there
(since mkinitrd v1.0 perhaps), and I don't feel inclined
to fix it if SuSE doesn't. It is benign; it merely causes
un-necessary, but harmless, invocations of 'hwinfo' in the
default case.

Enough already. Ok.

Regards,
Larry

< Previous Next >
Follow Ups