Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 315777 - sys-boot/lilo-22.8-r2: Fatal: cache_add: LILO internal error (with loop device)
Summary: sys-boot/lilo-22.8-r2: Fatal: cache_add: LILO internal error (with loop device)
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Joshua Kinard
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-17 19:55 UTC by Michał Górny
Modified: 2021-06-07 02:13 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The full verbose log of lilo (lilo.log,22.05 KB, text/plain)
2010-04-17 19:55 UTC, Michał Górny
Details
The lilo.conf file (lilo.conf,205 bytes, text/plain)
2010-04-17 20:02 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-04-17 19:55:35 UTC
Installing LILO bootloader fails (after a while of 'working floppy' noise) with the following error:

	Fatal: cache_add: LILO internal error

After adding a bit of verbosity, it appears that the error is related to the loop device which is scanned just before lilo dies (the full verbose LILO log is attached):

	pf_hard_disk_scan: (7,32) /dev/loop1

where the loop device is set up as:

	/dev/loop/1: [000c]:595 (/dev/fd0)

The parameters for 'loop' module are:

	options loop max_part=16

The mentioned floppy is inserted and contains 5 partitions which are handled by 'loop' module and then assembled as RAID using 'md'.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-04-17 19:55:51 UTC
Created attachment 228205 [details]
The full verbose log of lilo
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-04-17 20:02:54 UTC
Created attachment 228207 [details]
The lilo.conf file
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-07-22 07:48:29 UTC
I get a similar error when loop[01] are used by loop-mounted squashfs.
Comment 4 Joshua Kinard gentoo-dev 2021-06-06 20:12:03 UTC
Michał: Can you still reproduce this on lilo-24.2?  Curious if it may have been fixed upstream in the last release they put out.
Comment 5 Hank Leininger 2021-06-07 01:29:45 UTC
(In reply to Michał Górny from comment #3)
> I get a similar error when loop[01] are used by loop-mounted squashfs.

I don't have any machines w/floppy drives any more, but I attempted using squashfs, and could not reproduce.

Using:
  sys-kernel/gentoo-sources-5.4.124:5.4.124
  sys-boot/lilo-24.2:0
  sys-fs/squashfs-tools-4.4_p1:0

# for A in 0 1 ; do mkdir -p squash_${A} && echo "$A" >squash_${A}/${A} && mksquashfs squash_${A} ${A}.squashfs -quiet && losetup /dev/loop${A} ${A}.squashfs ; done
[======================================================================|] 1/1 100%
[======================================================================|] 1/1 100%

# losetup -a
/dev/loop1: [2308]:1191840 (/root/tmp/1.squashfs)
/dev/loop0: [2308]:1190815 (/root/tmp/0.squashfs)

# lilo -v99 >lilo_v99.out 2>&1

# echo $?
0

# egrep -1 'Fatal|pf_hard_disk_scan:.*/dev/loop' lilo_v99.out 
pf_hard_disk_scan: (9,1) /dev/md1
pf_hard_disk_scan: (7,0) /dev/loop0
pf_hard_disk_scan: (7,1) /dev/loop1
  0800  1DDCA02C  /dev/sda

So, it may be fixed w/current lilo; if you can still reproduce w/squashfs, please let us know more details from that setup.