Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280505 - sys-kernel/genkernel-3.4.10.90?: Using unionfs without cdroot mounts wrong root directory
Summary: sys-kernel/genkernel-3.4.10.90?: Using unionfs without cdroot mounts wrong ro...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-05 21:21 UTC by manuels
Modified: 2012-10-13 22:58 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 manuels 2009-08-05 21:21:29 UTC
When you do not use a unionfs as root filesystem without the cdroot option the genkernel initrd's linuxrc select the wrong directory as new root directory.


Reproducible: Always

Steps to Reproduce:
1. Use these kernel parameters:
initrd=your_initrd real_root=/dev/sda1 scandelay unionfs
2. Wonder that / is mounted to /dev/sda1 read-write-able

Actual Results:  
/ is mounted to /dev/sda1 read-writeable

Expected Results:  
/ should be mounted to a unionfs whose rw branch is a tmpfs and ro branch is /dev/sda1

workaround: pass additional kernel parameter
 subdir=../union

Fix:
change genkernel's linuxrc:
add this line after line 668
 CHROOT=/union

(Compare to line 592-593)
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2009-08-05 22:17:42 UTC
That unionfs support is experimental and mostly broken (due to fuse-unionfs). I'm probably just going to rip it back out.
Comment 2 Daniel Bahrdt 2009-10-18 22:26:55 UTC
(In reply to comment #1)
> That unionfs support is experimental and mostly broken (due to fuse-unionfs).
> I'm probably just going to rip it back out.
> 
So far nothing has changed in the git repo. Will this be fixed or removed without any replacement?
Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2009-10-19 03:08:58 UTC
Probably just remove it. There is no fixing it without replacing it with a *real* unionfs-ish solution. Before I added the fuse-unionfs stuff, the old unionfs support was completely gone.
Comment 4 manuels 2010-04-29 09:06:18 UTC
What about this bug?
Is it fixed now in SVN?

Should we change the status to WON'T?