Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 433854 - install-amd64-minimal-20120621.iso: docache does not work, ends in kernel panic
Summary: install-amd64-minimal-20120621.iso: docache does not work, ends in kernel panic
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-04 00:01 UTC by Marc Schiffbauer
Modified: 2013-05-30 16:05 UTC (History)
3 users (show)

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


Attachments
Screenshot (livecd.png,29.22 KB, image/png)
2012-09-04 00:01 UTC, Marc Schiffbauer
Details
Patch to fix 'docache' on recent ISOs. See bug comment for instructions on how to apply. (gentoo_initrd_docache_fix.diff,352 bytes, patch)
2012-10-25 02:34 UTC, Hank Leininger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Schiffbauer gentoo-dev 2012-09-04 00:01:47 UTC
Created attachment 322870 [details]
Screenshot

For details please see screenshot
Comment 1 Hank Leininger 2012-10-25 02:32:48 UTC
Same here, noticed it with various install ISOs since around February 2012, including 20121013.  Just dug in deeper and compared to an old 20120112 iso that worked, and created a workaround.

I'll attach a diff to etc/initrd.scripts (inside isolinux/gentoo.igz) that gets past the problem for me; the relevant change is:

-                               LOOPEXT='../'
+                               LOOPEXT='../../newroot/mnt/'

_However_, this is probably not the right fix.

Marc, can you confirm that that works around it for you?

Steps to shim that change in:

ISODATE=20121013
mkdir -p install-amd64-minimal-${ISODATE}
losetup /dev/loop0 install-amd64-minimal-${ISODATE}.iso
mount -o ro /dev/loop0 install-amd64-minimal-${ISODATE}
cp -a install-amd64-minimal-${ISODATE} install-amd64-minimal-${ISODATE}-r1
umount install-amd64-minimal-${ISODATE}
losetup -d /dev/loop0
cd install-amd64-minimal-${ISODATE}-r1/isolinux
mkdir gentoo_new && cd gentoo_new
gunzip -c ../gentoo.igz | cpio -idv
patch -p1 < /path/to/gentoo_initrd_docache_fix.diff
find . -print | cpio -o -H newc |gzip -9 -c - > ../gentoo.igz
cd ../..
rm -r isolinux/gentoo_new
mkisofs -o ../install-amd64-minimal-${ISODATE}-r1.iso -quiet -r -J -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table .
cd ..
rm -rf install-amd64-minimal-${ISODATE}-r1

...And now booting install-amd64-minimal-${ISODATE}-r1.iso with and without docache should work.
Comment 2 Hank Leininger 2012-10-25 02:34:35 UTC
Created attachment 327370 [details, diff]
Patch to fix 'docache' on recent ISOs.  See bug comment for instructions on how to apply.
Comment 3 Sebastian Pipping gentoo-dev 2012-10-26 23:13:12 UTC
Hi there,

which version of genkernel is included there?

The patch you provided does not apply against latest Git HEAD:

  # patch defaults/initrd.scripts < gentoo_initrd_docache_fix.diff
  patching file defaults/initrd.scripts
  Hunk #1 FAILED at 189.
  1 out of 1 hunk FAILED -- saving rejects to file defaults/initrd.scripts.rej

If you look at the commit

  http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commitdiff;h=8ac8de605504c830b411be0d8eaa597e49ac75b1

introduced with genkernel release 3.4.26, the removed code looks like the one your patch is addressing.

So my guess right now is that genkernel <3.4.26 is included and an update of the included genkernel could help to solve the issue.

What do you think?
Comment 4 Hank Leininger 2012-11-07 16:21:46 UTC
Sorry, I don't use genkernel myself and I don't know my way around it, didn't trace it back that far.  Looks to me like the commit you pointed to fixes / would fix this.

I don't know what genkernel version is used to build the install-amd64-minimal ISOs, but I agree, it must be older than that.  Should I open a new bug that says "please build install ISOs with updated genkernel"?
Comment 5 Ben Kohler gentoo-dev 2013-05-30 15:48:23 UTC
x86/amd64 autobuilds are now (within the last couple of weeks) being built with brand new catalyst, I believe the newest isos are fixed.  Can you guys confirm?
Comment 6 Hank Leininger 2013-05-30 15:58:20 UTC
Oh, I had kind of forgotten about this bug, sorry.

Newer ISOs have worked for me, within the last week or two.  Definitely install-amd64-minimal-20130516.iso works for me.

I had taught myself to stop trying docache for a period of several months, so I couldn't pinpoint when it started working again.

Thanks!
Comment 7 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2013-05-30 16:05:58 UTC
Closing per last comment.