From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B82F8138A87 for ; Wed, 12 Nov 2014 10:08:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 63E55E09A5; Wed, 12 Nov 2014 10:08:16 +0000 (UTC) Received: from mail.wraeth.id.au (wraeth.id.au [106.187.101.125]) by pigeon.gentoo.org (Postfix) with ESMTP id E104FE0997 for ; Wed, 12 Nov 2014 10:08:14 +0000 (UTC) Received: from localhost (mail.wraeth.id.au [127.0.0.1]) by mail.wraeth.id.au (Postfix) with ESMTP id 2D3EA14004B for ; Wed, 12 Nov 2014 21:10:30 +1100 (AEDT) X-Virus-Scanned: amavisd-new at wraeth.id.au Received: from mail.wraeth.id.au ([127.0.0.1]) by localhost (mail.wraeth.id.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id h8VG-9rgychV for ; Wed, 12 Nov 2014 21:10:29 +1100 (AEDT) Received: from cerberus.civica.com.au (watch.civica.com.au [203.56.2.254]) by mail.wraeth.id.au (Postfix) with ESMTPSA id 573AF140034 for ; Wed, 12 Nov 2014 21:10:27 +1100 (AEDT) Date: Wed, 12 Nov 2014 21:07:48 +1100 From: Sam Jorna To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] difficulties with lvm2+systemd+grub2 Message-ID: <20141112100747.GB11108@cerberus.civica.com.au> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <20141111205608.GA7473@asterix> <20141112010303.GA14293@nemesis> <20141112094228.GD25089@getafix> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7AUc2qLy4jB3hD7Z" Content-Disposition: inline In-Reply-To: <20141112094228.GD25089@getafix> User-Agent: Mutt/1.5.22 (2013-10-16) X-Archives-Salt: ec300fd3-8735-4eff-811f-7a7f233a61d5 X-Archives-Hash: 56550c6a255196b71bed04194d10f78f --7AUc2qLy4jB3hD7Z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 12, 2014 at 10:42:28AM +0100, Michael Mair-Keimberger wrote: > On Wed, Nov 12, 2014 at 12:03:04PM +1100, wraeth@wraeth.id.au wrote: > > On Tue, Nov 11, 2014 at 09:56:09PM +0100, Michael Mair-Keimberger wrote: > systemd. Maybe i could adopt that to my custom one as well. Working examples are always nice :-) > > The other point I might add is that my system, which uses dracut, has > > systemd launched with some specific arguments: > >=20 > > ps -fp 1 > > UID PID PPID C STIME TTY TIME CMD > > root 1 0 0 11:31 ? 00:00:00 > > /usr/lib/systemd/systemd --switched-root --system --deserialize 18 > >=20 > > This may be relevant when creating your own initramfs. >=20 > Thanks, thats something i could try as well :) I'm not sure of the relevancy (it was just an observation), and I'm not sure how the options (specifically --deserialize NN) is determined since another of my machines has /usr/lib/systemd/systemd --switched-root --system --deserialize 19 > > > First of all, with systemd installed I can't install lvm2 with the > > > static use flag anymore, which is mandatory for being able using it f= or > > > a initramfs. Why isn't that possible? How can I use the lvm binaries = for > > > my initramfs? > >=20 > > Again, as I think has been mentioned, the 'static' use flag is typically > > a shortcut for easily building an initrd. Provided you include all the > > dependencies of a given binary (as seen with `ldd /path/to/binary`) you > > don't need static binaries. >=20 > Yeah, now i was digging a bit further into static binaries. If I insert t= he > relevant libaries it should work too. :) > However i was wondering why lvm2 shouldn't be able to build with the > static flag on systemd. However that's not important any more, i'm just > curious :) This *is* odd, but without a build log we can't really tell (unless someone else has encountered the issue too). > Well, at the wiki it's written you should run: > genkernel --udev --lvm > in order to generate the initramfs. But, you already mentioned it, you > need a target in order generate anything, but it isn't mentioned at the > wiki. > As i'm not familar with genkernel i was a bit confused about the > command. I would suggest following for example: > genkernel --udev --lvm [target] Fixed :-) Cheers. --=20 wraeth GnuPG Key: B2D9F759 --7AUc2qLy4jB3hD7Z Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAlRjMXMACgkQXcRKerLZ91mfCQD/dRJaDVbf4E4kjHmggd6l0GvV iifx/+8M0EZ95ltoBnIA/i0/X+fk2P3FOHjf2gMKjQDK6ILplAXhZo5Nfo83t1fD =cGi+ -----END PGP SIGNATURE----- --7AUc2qLy4jB3hD7Z--