Bug 26379 - "lilo -R 'rLwc?:2630-std-def-15'" has no effect
Summary: "lilo -R 'rLwc?:2630-std-def-15'" has no effect
Status: NEW
Alias: None
Product: Branch 5.1
Classification: Distributions
Component: lilo (show other bugs)
Version: unspecified
Hardware: all Linux
: P3 critical
Assignee: Dmitry V. Levin
QA Contact: QA 5.1
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-26 23:39 MSK by Ivan Zakharyaschev
Modified: 2011-09-27 04:12 MSK (History)
0 users

See Also:


Attachments
/etc/lilo.conf (3.52 KB, text/plain)
2011-09-26 23:39 MSK, Ivan Zakharyaschev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2011-09-26 23:39:04 MSK
Created attachment 5124 [details]
/etc/lilo.conf

lilo-22.7.3-alt6.M51.1

"lilo -R" is an important feature for testing new kernels on systems where you can't intercatively control the booting process. But in my case, I wasn't able to use it. I issued the command "lilo -R 'rLwc?:2630-std-def-15'", but after a reboot the kernel that was booted was still the default one, not the chosen one.

My /etc/lilo.conf is attached. The specified label does exist indeed:


[root@localhost ~]# strace -e trace=file -fF lilo -R 'rLwc?:2630-std-def-15'
execve("/sbin/lilo", ["lilo", "-R", "rLwc?:2630-std-def-15"], [/* 41 vars */]) = 0
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/lib/libdevmapper.so.1.00", O_RDONLY) = 3
open("/lib/libblkid.so.1", O_RDONLY)    = 3
open("/lib/libc.so.6", O_RDONLY)        = 3
open("/lib/libuuid.so.1", O_RDONLY)     = 3
open("/etc/lilo.conf", O_RDONLY)        = 3
stat64("/dev/.devfsd", 0xbfd939a4)      = -1 ENOENT (No such file or directory)
open("/boot/map", O_RDWR)               = 4
Process 16936 detached
[root@localhost ~]# fgrep -2 'rLwc?:2630-std-def-15' /etc/lilo.conf
image="/boot/vmlinuz-2.6.30-std-def-alt15"
	initrd="/boot/initrd-2.6.30-std-def-alt15.img"
	label="rLwc?:2630-std-def-15"
	root="UUID=88f85e96-c860-4402-90a3-ede10bae1661"
	read-only
[root@localhost ~]#
Comment 1 Ivan Zakharyaschev 2011-09-27 00:44:40 MSK
However, for another simpler label, it worked: "lilo -R ALTLinux".
Comment 2 Ivan Zakharyaschev 2011-09-27 04:09:50 MSK
So, the workaround for this problem is to create a menu entry in /etc/lilo.conf with a simpler label. As I did:

image="/boot/vmlinuz-record"
	label="record"
	initrd="/boot/initrd-record.img"
	root="UUID=88f85e96-c860-4402-90a3-ede10bae1661"
	read-only

The specified files are symlinks to the kernel being tested. "lilo -R record" does work.
Comment 3 Ivan Zakharyaschev 2011-09-27 04:12:38 MSK
Perhaps, the problem is with the length of the label (similarly to https://bugzilla.altlinux.org/show_bug.cgi?id=22616 ), or perhaps the problem is with the special symbols like "?"...