From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mail.saout.de (Postfix) with ESMTP for ; Mon, 25 Oct 2010 19:35:08 +0200 (CEST) Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o9PHZ63F013209 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 25 Oct 2010 13:35:07 -0400 Received: from [10.36.7.142] (vpn1-7-142.ams2.redhat.com [10.36.7.142]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o9PHZ5A8023265 for ; Mon, 25 Oct 2010 13:35:06 -0400 Message-ID: <4CC5BFC8.7050402@redhat.com> Date: Mon, 25 Oct 2010 19:35:04 +0200 From: Milan Broz MIME-Version: 1.0 References: <20101025165217.GA13366@fancy-poultry.org> In-Reply-To: <20101025165217.GA13366@fancy-poultry.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] Encrypted root on Fedora 13 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On 10/25/2010 06:52 PM, Heinz Diehl wrote: > is there any possibility in cryptsetup-1.1.3 to maintain / restore the uuid of an encrypted root > partition on a Fedora 13 system? I think I added UUID into API (so you can specify UUID when formatting drive) but I probably forgot to add it to CLI (cryptsetup binary) yet. But there should be also way how to change it later. (I saw that request for other things - like changing UUID of LUKS snapshot.) If you want to track this, please add issue to cryptsetup page. I am just trying to fix some long term requests for new release, this is one of candidates to fix. But because UUID is encoded in header as string, you can probably easily modify it using hexaeditor as workaround for now. > I tried to chroot into the Fedora root directory from the boot CD and > rebuild the initramfs via dracut, but the root partition could not be > found any more. I guess the uuid of the encrypted root partition is > included in the initramfs, which means that I have to build an initramfs > from the active system, which isn't possible. You can always extract initramfs, change it inside and compile it again. (it is just cpio.gz archive) (I have no encrypted fedora handy unfortunately to check whats needed.) For now, I suggest to boot into dracut shell, activate system manually (singleuser is ok) and recreate ramdisk. see http://fedoraproject.org/wiki/Dracut/Debugging and http://sourceforge.net/apps/trac/dracut/wiki/manpage It should be 5 minutes job if you know how to do it:-) Milan