Gentoo Archives: gentoo-user

From: Greg Surbey <gregsurbey@×××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: genkernel-next will not mount /usr but genkernel will
Date: Mon, 03 Mar 2014 01:55:28
Message-Id: loom.20140302T215912-221@post.gmane.org
In Reply to: [gentoo-user] genkernel-next will not mount /usr but genkernel will by covici@ccs.covici.com
1 <covici <at> ccs.covici.com> writes:
2
3 >
4 > Hi folks. I wanted to switch to using genkernel-next instead of
5 > genkernel so eventually I could switch to using systemd. However
6 > genkernel-next-50 will not mount my /usr file system. I have everything
7 > on lvm volumes, except my /boot which is a regular partition. With the
8 > regular genkernel /usr is mounted, but I can't even test systemd
9 > bedcause it looks for realinit before /usr is even mounted. My
10 > genkernel command line is:
11 > genkernel --no-clean --no-splash --lvm --e2fsprogs
12 > --kerneldir=/usr/src/linux-3.6.2-gentoo initramfs
13 >
14 > Now when I use genkernel-next, it would not mount /usr because it said
15 > no such file or directory -- I guess its mount point -- not sure of
16 > that. It would not execute udev because it said there was a missing
17 > library.
18 >
19 > So, how can this be fixed? Is there a bug in genkernel-next?
20 >
21 > Thanks in advance for any ideas.
22
23
24 Hi Covici,
25
26 I experienced a similar issue to yours and I thought I'd post a workaround
27 that worked for my situation. What I did was add 'debug' as a kernel line
28 parameter so that the initramfs would drop me into a busybox commandline
29 before mounting the root file system. I then went into /dev/vg/ and ran
30 this command 'ln -sf /dev/dm-0 usr'. This changed the symbolic link from a
31 relative to an absolute path and thus fixed it so the mount command would
32 work correctly when called in the bootup script. I typed 'exit' to continue
33 with the boot.
34
35 --
36 Greg Surbey

Replies