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 61A2B138CC4 for ; Wed, 18 Mar 2015 16:37:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D025CE0962; Wed, 18 Mar 2015 16:37:32 +0000 (UTC) Received: from mail-ig0-f171.google.com (mail-ig0-f171.google.com [209.85.213.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BB700E0913 for ; Wed, 18 Mar 2015 16:37:31 +0000 (UTC) Received: by igbue6 with SMTP id ue6so105152833igb.1 for ; Wed, 18 Mar 2015 09:37:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=5WUXVvfa5pi/vgDdU8T6BtecFINY7VO5jqzD0pb32CA=; b=Dihw6vJtTEacykaom4ATaHAPp5h1niqfjlIA/DnRtt1MBrF+SNXVPI+un9JvbMVdYc 86rFUTlwRkWEGuF5J4A9XFIiT64uYp70mzHZYpmTb8tp7eLmYDreYoE4DMl1kovS87ka mXxVQP2emFo3cWOapMF9cVrlWFfBxEPwbkYstp3zDl6/a2mI0I0Gqo0QwMfjEPiBUfsh dO3qyVyZUFAISh44ic8oZuIM7r8YATV8Sl2YuQo6nu8OH3yM/R4HAjiMBlblYGWU5AJR 4qvfrHkUz+KBqdSGgPPjf2locDg91pDGJ9KPLEtHgStEb2bEBX5IROFP6hSgVDm64j3B l2uw== 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 X-Received: by 10.50.147.99 with SMTP id tj3mr8417771igb.41.1426696650949; Wed, 18 Mar 2015 09:37:30 -0700 (PDT) Sender: freemanrich@gmail.com Received: by 10.107.135.78 with HTTP; Wed, 18 Mar 2015 09:37:30 -0700 (PDT) In-Reply-To: <55089791.5080603@gmail.com> References: <5506E3E8.8070008@gmail.com> <20150316153411.GA20837@waltdnes.org> <550786D0.2080602@gmail.com> <5507E27D.4050603@gmail.com> <55085E03.2090001@gmail.com> <550864C8.6000400@gmail.com> <55086E0B.5080703@gmail.com> <55088B86.70906@gmail.com> <55088F2D.5080708@gmail.com> <55089791.5080603@gmail.com> Date: Wed, 18 Mar 2015 12:37:30 -0400 X-Google-Sender-Auth: 72IN2TGVt9TWygCsT5p2ibsTJlI Message-ID: Subject: Re: [gentoo-user] eject and util-linux blocker From: Rich Freeman To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: a1ea43d5-e919-49c4-a355-60047ebb9d6d X-Archives-Hash: 5c305760d7464a72f402a197ceaafa23 On Tue, Mar 17, 2015 at 5:07 PM, Dale wrote: > Alan McKinnon wrote: >> You are reading it wrong. That means: >> util-linux needs to be built with USE="static-libs" >> because >> lvm2 is already built with USE="static" >> >> None of which explains why you originally built lvm2 that way. > > It was because emerge told me it needed it for some reason. It is very > rare that I just put something in package.use on my own. This was probably required by some script for mounting /usr or by some initramfs you were using before you switched to dracut. Dracut is pretty advanced by initramfs standards. It handles dynamic linking just fine (bundling libraries/etc as needed). Simpler initramfs tools and such don't, and to make things easier there is a tendency to build anything needed to mount root/usr static so that it is certain to run correctly. You can look inside an initramfs by doing the following: mkdir /tmp/ext cd /tmp/ext zcat /boot/initramfs-3.18.9-gentoo.img | cpio -i find usr find lib64 ... There is quite a bit of dynamic linking going on in a typical dracut initramfs, and quite a bit of stuff installed in /usr it utilizes either to mount root/usr or just for operator convenience (it is nice to be able to use less in an emergency shell, and so on). It is also really easy to tell dracut to add stuff to an initramfs. I tweaked my btrfs module to add btrfstune to the initramfs so that I could easily enable skinny metadata without a boot CD. In some sense, you could think of an initramfs as the rescue CD you always have ready (though I also keep systemrescuecd handy on a USB stick). -- Rich