mkinitrd unification across distributions
 help / color / mirror / Atom feed
From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Benjamin Kingston <list-ses8GfRmtAZWzAuRflr9/A@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: Ignore or blacklist a disk from being brought up on boot
Date: Thu, 29 Aug 2013 11:02:55 +0200	[thread overview]
Message-ID: <521F0E3F.7000305@redhat.com> (raw)
In-Reply-To: <CAHA1JWL9ZKxxu+ctXA5zcPSz+VKQAFnEW4TNNs6h+J0OiF5ggA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1631 bytes --]

On 08/29/2013 10:35 AM, Benjamin Kingston wrote:
> I'm playing around with fips at the moment and currently have kernel
> fips off, to my knowledge the fips dracut module does nothing unless
> kernel fips is on. Essentially I'm trying to get dracut to ignore the
> boot partition device since all needed information to boot and unlock
> (/etc/cryptab and the keyfile) are embedded in the initramfs. It
> appears that upon dracut generating the initramfs image, it assumes
> that the volume that boot is on is required to boot the system.
> 
> I know the system unlocks the drive because if I allow systemd to
> timeout while waiting for the volume UUID to appear, I can see the
> LUKS volume in /dev/mapper in the dracut shell. Essentially the only
> thing preventing the system from booting is the fact that there is a
> systemd target that is requiring the boot partition to be made active
> (not mounted, as far as I can tell by interrupting dracut pre-pivot
> after unlocking the flash volume the 2nd time).
> 
> I also had it working smoothly in fedora 17 at one point, where it
> would unlock the luks disk according to the embedded crypttab with the
> embedded keyfile and boot the system with out having to unlock the
> flash drive just so systemd can see it. I'm not sure what could have
> changed since fedora 18 since my experience is in systems
> administration rather than software development, so I really
> appreciate you sharing some of your time.
> 


Attached patch for /usr/bin/dracut should help to boot without the /boot device.

The fips module on the other hand _requires_ having /boot and checking vmlinuz.

[-- Attachment #2: dracut-noboot.patch --]
[-- Type: text/x-patch, Size: 381 bytes --]

diff --git a/dracut.sh b/dracut.sh
index 7481ac0..8ee40a3 100755
--- a/dracut.sh
+++ b/dracut.sh
@@ -838,7 +838,7 @@ if [[ $hostonly ]]; then
         "/usr/sbin" \
         "/usr/lib" \
         "/usr/lib64" \
-        "/boot";
+        ;
     do
         mountpoint "$mp" >/dev/null 2>&1 || continue
         push host_devs $(readlink -f "/dev/block/$(find_block_device "$mp")")

  parent reply	other threads:[~2013-08-29  9:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAHA1JWJisaRVsf2uARPxCN14Fhgu05H9_TxU1zDbyu_3PSbYWA@mail.gmail.com>
     [not found] ` <CAHA1JWJisaRVsf2uARPxCN14Fhgu05H9_TxU1zDbyu_3PSbYWA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-08-25 22:58   ` Ignore or blacklist a disk from being brought up on boot Benjamin Kingston
     [not found]     ` <CAHA1JWJdqmyoqjs7Cp=HzH9F11xBDqR8bxobi51nPtrPFPir3w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-08-26  6:23       ` Harald Hoyer
     [not found]         ` <521AF44D.5030404-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-08-26 13:13           ` Benjamin Kingston
     [not found]             ` <CAHA1JWJ79ODLUM7pbjNyeMgVEfcsWeVeHt0roZizYW=CsRzd8w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-08-26 14:03               ` Benjamin Kingston
     [not found]                 ` <CAHA1JWJpei_FU-2RRZpGdQV7aBCoC=Eud9BgWcFgh=KM0qAcLA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-08-27  9:13                   ` Harald Hoyer
     [not found]                     ` <521C6DC1.1010702-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-08-29  8:35                       ` Benjamin Kingston
     [not found]                         ` <CAHA1JWL9ZKxxu+ctXA5zcPSz+VKQAFnEW4TNNs6h+J0OiF5ggA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-08-29  9:02                           ` Harald Hoyer [this message]
     [not found]                             ` <521F0E3F.7000305-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-08-30  0:39                               ` Benjamin Kingston

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=521F0E3F.7000305@redhat.com \
    --to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=list-ses8GfRmtAZWzAuRflr9/A@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox