Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 532960

Summary: >=sys-boot/lilo-23 fails to run init script from initrd
Product: Gentoo Linux Reporter: Dave Driver <linuxuser>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED NEEDINFO    
Severity: normal CC: linuxuser
Priority: Normal    
Version: 10.0   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Dave Driver 2014-12-18 17:53:57 UTC
I have a system configured to mount an initrd and run some commands from the initrd. When the system boots, the commands are not run. I cannot tell whether or not the initrd was mounted or not.

This worked perfectly at lilo version 22.8r2, but fails at version 23 and 24.
Simply swapping the lilo binary between 22.8r2 and 24 then re-running lilo turns the problem off and on. I can replicate this very easily.

lilo.conf:

boot=/dev/sda
map=/boot/map
prompt
timeout=50
default=aro
lba32
compact

image=/boot/kernel-3.16.1-aufs-alix
        label=aro
        append="console=tty0 console=ttyS0,9600n8 rootfstype=ext4"
        read-only
        initrd=/boot/initramfs.cpio.gz
        root=/dev/sda1
Comment 1 Dave Driver 2014-12-18 18:08:57 UTC
I have hexdumped the MBR in both cases, 6 bytes differ:

With lilo 22.8R2:

0000000 ebfa 0121 01b4 494c 4f4c 0816 1631 5493
0000010 0000 0000 f9ac 4dc8 f0df 0929 0081 6080
0000020 b63a 0014 c0b8 8e07 bcd0 0800 52fb 0653
0000030 fc56 d88e ed31 b860 1200 36b3 10cd b061
0000040 e80d 0166 0ab0 61e8 b001 e84c 015c 1e60
0000050 8007 fefa 0275 f288 00bb 8a02 1e76 d089
0000060 e480 3080 78e0 3c0a 7310 f606 1c46 7540
0000070 882e 66f2 768b 6618 f609 2374 b452 b208
0000080 5380 13cd 725b 0f57 cab6 7fba 4200 3166
0000090 40c0 60e8 6600 b73b 01b8 0374 efe2 535a
00000a0 768a be1f 0020 dfe8 b400 6699 7f81 4cfc
00000b0 4c49 754f 5e29 8068 0708 db31 c9e8 7500
00000c0 befb 0006 f789 0ab9 b400 f39a 75a6 b00f
00000d0 ae02 0a75 5506 49b0 cfe8 cb00 40b4 20b0
00000e0 c7e8 e800 00b4 4efe 7400 bc07 07e8 e961
00000f0 ff5c ebf4 60fd 5555 5066 5306 016a 106a
0000100 e689 f653 60c6 7074 c6f6 7420 bb14 55aa
0000110 41b4 13cd 0b72 fb81 aa55 0575 c1f6 7501
0000120 5241 b406 cd08 0713 b472 c051 06e9 e986
0000130 cf89 c159 08ea 4092 8349 3fe1 f741 93e1
0000140 448b 8b08 0a54 da39 9273 f3f7 f839 8c77
0000150 e4c0 8606 92e0 f1f6 e208 d189 5a41 c688
0000160 1ceb 42b4 bd5b 0005 cd60 7313 4d16 b874
0000170 c031 13cd 4d61 f0eb 5066 5859 e688 01b8
0000180 eb02 8de1 1064 c361 ad66 0966 74c0 660a
0000190 4603 e810 ff5f c780 c302 c0c1 e804 0003
00001a0 c0c1 2404 270f f004 4014 bb60 0007 0eb4
00001b0 10cd c361 0000 0000 f0df 0929 c9cf 0100
00001c0 0002 1383 d2a6 003f 0000 e001 0015 3d00
00001d0 5925 fc83 6517 e040 0015 2000 0003 0000
00001e0 0000 0000 0000 0000 0000 0000 0000 fc00
00001f0 6518 eb82 7c3f 0040 0019 9f50 0005 aa55

With lilo 24.0r2:

0000000 ebfa 0121 01b4 494c 4f4c 0018 114c 5493
0000010 0000 0000 f9ac 4dc8 f0df 0929 0081 6080
0000020 2cf4 0014 c0b8 8e07 bcd0 0800 52fb 0653
0000030 fc56 d88e ed31 b860 1200 36b3 10cd b061
0000040 e80d 0166 0ab0 61e8 b001 e84c 015c 1e60
0000050 8007 fefa 0275 f288 00bb 8a02 1e76 d089
0000060 e480 3080 78e0 3c0a 7310 f606 1c46 7540
0000070 882e 66f2 768b 6618 f609 2374 b452 b208
0000080 5380 13cd 725b 0f57 cab6 7fba 4200 3166
0000090 40c0 60e8 6600 b73b 01b8 0374 efe2 535a
00000a0 768a be1f 0020 dfe8 b400 6699 7f81 4cfc
00000b0 4c49 754f 5e29 8068 0708 db31 c9e8 7500
00000c0 befb 0006 f789 0ab9 b400 f39a 75a6 b00f
00000d0 ae02 0a75 5506 49b0 cfe8 cb00 40b4 20b0
00000e0 c7e8 e800 00b4 4efe 7400 bc07 07e8 e961
00000f0 ff5c ebf4 60fd 5555 5066 5306 016a 106a
0000100 e689 f653 60c6 7074 c6f6 7420 bb14 55aa
0000110 41b4 13cd 0b72 fb81 aa55 0575 c1f6 7501
0000120 5241 b406 cd08 0713 b472 c051 06e9 e986
0000130 cf89 c159 08ea 4092 8349 3fe1 f741 93e1
0000140 448b 8b08 0a54 da39 9273 f3f7 f839 8c77
0000150 e4c0 8606 92e0 f1f6 e208 d189 5a41 c688
0000160 1ceb 42b4 bd5b 0005 cd60 7313 4d16 b874
0000170 c031 13cd 4d61 f0eb 5066 5859 e688 01b8
0000180 eb02 8de1 1064 c361 ad66 0966 74c0 660a
0000190 4603 e810 ff5f c780 c302 c0c1 e804 0003
00001a0 c0c1 2404 270f f004 4014 bb60 0007 0eb4
00001b0 10cd c361 0000 0000 f0df 0929 c9cf 0100
00001c0 0002 1383 d2a6 003f 0000 e001 0015 3d00
00001d0 5925 fc83 6517 e040 0015 2000 0003 0000
00001e0 0000 0000 0000 0000 0000 0000 0000 fc00
00001f0 6518 eb82 7c3f 0040 0019 9f50 0005 aa55
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-12-18 19:26:08 UTC
Do reopen this bug report when you have found the bug.
Comment 3 Dave Driver 2014-12-18 20:41:20 UTC
I don't understand the comment from Jeroen Roovers. I am not a LILO developer, I am not able to find the bug.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2014-12-18 21:39:42 UTC
This is a bug tracker. If you can't find a bug, then use our forums, IRC channels and/or mailing lists to find out why things are not working. Then maybe return here to file a bug report when that has happened.