Bug#481104: [Pkg-cryptsetup-devel] /usr/sbin/update-initramfs: update-initramfs edits /etc/initramfs-tools/conf.d/cryptroot

2010-06-08 Thread Michael Prokop
reassign 481104 cryptsetup
thanks

* maximilian attems m...@stro.at [Don Jul 10, 2008 at 11:57:52 +0200]:
 On Wed, Jul 09, 2008 at 09:51:22PM +0300, Giorgos D. Pallas wrote:

  Not to my surprise, you were right :-)

  I just deleted the /etc/initramfs-tools/conf.d/cryptroot file, and run
  again update-initramfs -u. Laptop boots fine. Btw, I already had
  /etc/crypttab correctly configured, so it seems that the cryptroot file
  was redundant.

  So, probably the bug has to be closed since it was a consequence of a
  wrong practice, if I got it right.

 no you found an interesting conrner case, wont invest too much time
 now before release on it, but that needs to be rethought afterwards.

 keeping open and thanks to David for the bug chase!! :)

 thanks for the report!

I'm reassigning this bugreport to cryptsetup, as initramfs-tools
doesn't provide any crypt* stuff any longer. AFAICS this issue is
resolved, though it would be great if cryptsetup packagers could
take a closer look at it before closing it.

thanks  regards,
-mika-


signature.asc
Description: Digital signature


Processed: Re: Bug#481104: [Pkg-cryptsetup-devel] /usr/sbin/update-initramfs: update-initramfs edits /etc/initramfs-tools/conf.d/cryptroot

2010-06-08 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 reassign 481104 cryptsetup
Bug #481104 [initramfs-tools] /usr/sbin/update-initramfs: update-initramfs 
edits /etc/initramfs-tools/conf.d/cryptroot
Bug reassigned from package 'initramfs-tools' to 'cryptsetup'.
Bug No longer marked as found in versions initramfs-tools/0.92a.
 thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
481104: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=481104
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/handler.s.c.127600016113563.transcr...@bugs.debian.org



Bug#481104: [Pkg-cryptsetup-devel] /usr/sbin/update-initramfs: update-initramfs edits /etc/initramfs-tools/conf.d/cryptroot

2008-07-09 Thread Giorgos D. Pallas

David Härdeman wrote:

On Sun, July 6, 2008 17:54, [EMAIL PROTECTED] wrote:
  

maximilian attems wrote:


right send output of
a) sh -x mkinitramfs -o /tmp/foo
b) sh -x update-initramfs -u
  

Sending requested outputs a) - out1, b) - out2



Ok, I see the problem.

During the initramfs build, mkinitramfs will ln -s all config files into
the build dir. Later when the cryptsetup hook is executed it will write
config lines to the cryptroot config file in the build dir (which is
linked to the /etc... file outside the build dir).

I'm not 100% sure how we should solve this (why do you have a cryptroot
file by the way? It's supposed to be a cryptsetup internal config file)


If I understood your question well, my answer is this: I have 
/etc/initramfs-tools/conf.d/*cryptroot containing the line:

**target=lukspace,source=/dev/hda3,key=none,lvm=vg-root*
because I have my root partition sitting on LVM, which sits on LUKS. So, 
somehow the initrd image must know that it has to find a LUKS partition 
and ask me for its passphrase.


I hope I'm not talking nonsense. When I tried to set up encrypted root 
partition, I used googling, a bit hacking and imagination. So, there is 
the possibility that an easier method eludes me.


Cheers,
Giorgos




smime.p7s
Description: S/MIME Cryptographic Signature


Bug#481104: [Pkg-cryptsetup-devel] /usr/sbin/update-initramfs: update-initramfs edits /etc/initramfs-tools/conf.d/cryptroot

2008-07-09 Thread David Härdeman
On Wed, July 9, 2008 10:51, Giorgos D. Pallas wrote:
 David Härdeman wrote:
 ... (why do you have a cryptroot file by the way? It's supposed
 to be a cryptsetup internal config file)

 If I understood your question well, my answer is this: I have
 /etc/initramfs-tools/conf.d/*cryptroot containing the line:
 **target=lukspace,source=/dev/hda3,key=none,lvm=vg-root*
 because I have my root partition sitting on LVM, which sits on LUKS. So,
 somehow the initrd image must know that it has to find a LUKS partition
 and ask me for its passphrase.

 I hope I'm not talking nonsense. When I tried to set up encrypted root
 partition, I used googling, a bit hacking and imagination. So, there is
 the possibility that an easier method eludes me.

Yes, the correct method would be to create a /etc/crypttab file with the
mapping for your root device. See the documentation in
/usr/share/doc/cryptsetup for details on how to do that.

Once a proper crypttab is setup, cryptsetup will automagically generate
initramfs config files for you.

-- 
David Härdeman




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#481104: [Pkg-cryptsetup-devel] /usr/sbin/update-initramfs: update-initramfs edits /etc/initramfs-tools/conf.d/cryptroot

2008-07-06 Thread maximilian attems
On Sun, Jul 06, 2008 at 04:13:18PM +0300, ??  wrote:
 maximilian attems wrote:
  On Sat, 05 Jul 2008, David Härdeman wrote:
 

  On Fri, Jul 04, 2008 at 11:56:59PM +0200, maximilian attems wrote:
  
  Look at that: (updating initrd, duplicates the content of the cryptroot
  config file...)
  
  right cryptsetup should maybe not write into /etc/i-t/conf.d
  but in /usr/share/i-t/conf.d but those could also be mounted ro?!?
 
  anyway i'd like to hear from cryptsetup maintainers before reassgning.

  I'm not sure I understand the question. The cryptsetup initramfs hook  
  writes its config file by doing:
 
  echo $OPTIONS  $DESTDIR/conf/conf.d/cryptroot
 
  If that is below /etc, that would be due to initramfs-tools, wouldn't  
  it?
  
 
  okay it was quite late yesterday, aboves should be in the initramfs
  itself. not sure if that bug report is not completly bogus
 
  it is saying that /etc/initramfs-tools/conf.d/cryptroot is modified
  on an update-initramfs -u run. i don't see any hook on my box
  that would do that.
 

 
 Hi again... The bug report is not bogus, in the sense that it happens.
 Everytime I run  update-initramfs -u, my
 /etc/initramfs-tools/conf.d/cryptroot gets an extra line
 target=lukspace,source=/dev/hda3,key=none,lvm=evg-root
 added.
 
 I do not know what these 'hooks' are, but I run update-initramfs -u with
 strace and I send you the output in case this might help you. I found a
 directory /etc/initramfs-tools/hooks, but it is empty. Is there
 something I can check and report back, in order to see why is this
 happening?
 
 Thanks!

right send output of
a) sh -x mkinitramfs -o /tmp/foo
b) sh -x update-initramfs -u


thanks

-- 
maks



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#481104: [Pkg-cryptsetup-devel] /usr/sbin/update-initramfs: update-initramfs edits /etc/initramfs-tools/conf.d/cryptroot

2008-07-05 Thread maximilian attems
On Sat, 05 Jul 2008, David Härdeman wrote:

 On Fri, Jul 04, 2008 at 11:56:59PM +0200, maximilian attems wrote:
 Look at that: (updating initrd, duplicates the content of the cryptroot
 config file...)


 right cryptsetup should maybe not write into /etc/i-t/conf.d
 but in /usr/share/i-t/conf.d but those could also be mounted ro?!?

 anyway i'd like to hear from cryptsetup maintainers before reassgning.

 I'm not sure I understand the question. The cryptsetup initramfs hook  
 writes its config file by doing:

 echo $OPTIONS  $DESTDIR/conf/conf.d/cryptroot

 If that is below /etc, that would be due to initramfs-tools, wouldn't  
 it?

okay it was quite late yesterday, aboves should be in the initramfs
itself. not sure if that bug report is not completly bogus

it is saying that /etc/initramfs-tools/conf.d/cryptroot is modified
on an update-initramfs -u run. i don't see any hook on my box
that would do that.

-- 
maks



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#481104: [Pkg-cryptsetup-devel] /usr/sbin/update-initramfs: update-initramfs edits /etc/initramfs-tools/conf.d/cryptroot

2008-07-04 Thread David Härdeman

On Fri, Jul 04, 2008 at 11:56:59PM +0200, maximilian attems wrote:

Look at that: (updating initrd, duplicates the content of the cryptroot
config file...)



right cryptsetup should maybe not write into /etc/i-t/conf.d
but in /usr/share/i-t/conf.d but those could also be mounted ro?!?

anyway i'd like to hear from cryptsetup maintainers before reassgning.


I'm not sure I understand the question. The cryptsetup initramfs hook 
writes its config file by doing:


echo $OPTIONS  $DESTDIR/conf/conf.d/cryptroot

If that is below /etc, that would be due to initramfs-tools, wouldn't 
it?


--
David Härdeman



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]