Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 397309 - sys-kernel/genkernel-3.4.20 docache does not work with squashfs
Summary: sys-kernel/genkernel-3.4.20 docache does not work with squashfs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2012-01-01 23:15 UTC by Johannes Battenberg
Modified: 2012-05-12 13:31 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Battenberg 2012-01-01 23:15:08 UTC
This problem mey be linked to bug 389755

I have trouble to get docache working for a livecd with genkernel-3.4.20, I use

genkernel --no-ramdisk-modules initramfs

to create the initrd. When I add "docache" to the kernel command-line, init tries to mount
/mnt/cdrom/../livecd.squashfs instead of /mnt/cdrom/livecd.squashfs, which obviously fails.

I traced it up to /etc/initrd.scripts inside the initrd where LOOPEXT is set to "../", which produces the "../". Setting it to "" resolves the issue for me, but might break caching non-squashfs (aka regular) disks.

Strangely enough, an initrd created the same way with an earlier version (genkernel-3.4.15 I guess) works just fine. In the relevant areas, I could not find any significant differences.

Reproducible: Always
Comment 1 Paul 2012-03-14 19:29:24 UTC
Applies to x86 gentoo minimal iso too
current install-x86-minimal-20120306.iso can't be booted with "docache" option without resulting in kernel panic.
Comment 2 Sebastian Pipping gentoo-dev 2012-03-17 01:32:01 UTC
Should be fixed, please give branch fix-docache a try ..

  # git clone git://git.overlays.gentoo.org/proj/genkernel.git
  # cd genkernel
  # git checkout -t origin/fix-docache
  # GK_SHARE="$PWD" ./genkernel initramfs --no-install --no-postclear

.. and report back.
Comment 3 Sebastian Pipping gentoo-dev 2012-03-30 19:23:33 UTC
+*genkernel-3.4.28 (30 Mar 2012)
+
+  30 Mar 2012; Sebastian Pipping <sping@gentoo.org> +genkernel-3.4.28.ebuild:
+  Bump to 3.4.28
+
Comment 4 Sebastian Pipping gentoo-dev 2012-05-12 13:31:12 UTC
Related commit was

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

in case anyone is searching again.