Olivier Korn
2009-Feb-08 14:10 UTC
[syslinux] keytab-lilo included with SYSLINUX is not up to date
Hi,
I just noticed that the keytab-lilo utility included with SYSLINUX isn't
up to date. It *is* a problem since the old version isn't compatible
with current distributions like Debian ou Ubuntu (for example).
Two options are offered to those who would like to use keytab-lilo in
order to generate a file compatible with the KBDMAP directive :
- use an up to date version of keytab-lilo (by downloading last version
of LILO for example).
- patch keytab-lilo (see below).
You'll have to search for these three lines...
if (/^u_short\s+(\S+)_map\[\S+\]\s+=\s+{\s*$/) {
die "active at beginning of map" if defined $current;
$current = $pfx.":".$1;
... and replace them with these :
if (/^(static\s+)?u_short\s+(\S+)_map\[\S*\]\s+=\s+{\s*$/) {
die "active at beginning of map" if defined $current;
$current = $pfx.":".$2;
--
Regards,
Olivier Korn.
H. Peter Anvin
2009-Feb-10 06:54 UTC
[syslinux] keytab-lilo included with SYSLINUX is not up to date
Olivier Korn wrote:> Hi, > > I just noticed that the keytab-lilo utility included with SYSLINUX isn't > up to date. It *is* a problem since the old version isn't compatible > with current distributions like Debian ou Ubuntu (for example). > > Two options are offered to those who would like to use keytab-lilo in > order to generate a file compatible with the KBDMAP directive : > > - use an up to date version of keytab-lilo (by downloading last version > of LILO for example). > > - patch keytab-lilo (see below). > > You'll have to search for these three lines... > if (/^u_short\s+(\S+)_map\[\S+\]\s+=\s+{\s*$/) { > die "active at beginning of map" if defined $current; > $current = $pfx.":".$1; > > ... and replace them with these : > if (/^(static\s+)?u_short\s+(\S+)_map\[\S*\]\s+=\s+{\s*$/) { > die "active at beginning of map" if defined $current; > $current = $pfx.":".$2; >Thanks for the warning. I have updated keytab-lilo in the git tree with keytab-lilo.pl from LILO 22.8. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.
Olivier Korn
2009-Feb-10 10:23 UTC
[syslinux] keytab-lilo included with SYSLINUX is not up to date
Hi, H. Peter Anvin wrote:> Thanks for the warning. I have updated keytab-lilo in the git tree with > keytab-lilo.pl from LILO 22.8.Thank you H. Peter. I just checked it and the new version doesn't work "out of the box". It says... syntax error at keytab-lilo line 4, near "eval " Execution of keytab-lilo aborted due to compilation errors. Furthermore, after correcting lines 3 and 4 (which are responsible of the above error), keyboard maps can't be found (by loadkeys utility) because of an added bad extension (.map instead of .kmap). Attached is a patch I wrote in order to make it fully work (apply it against the version of keytab-lilo which is now in the git tree). I know you are not the author of this script, but I don't know how to contact the authors of LILO (their official website <http://lilo.go.dyndns.org/> is in 404 state). -- Best regards, Olivier Korn. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: keytab-lilo.patch URL: <http://www.zytor.com/pipermail/syslinux/attachments/20090210/98d663f3/attachment.ksh>