FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 06-12-2010, 11:28 AM
Ben Hutchings
 
Default Bug#585609: linux-base: postinstall script fails on loop-aes partitions

On Sat, 2010-06-12 at 12:16 +0200, Winfried Tilanus wrote:
> Package: linux-base
> Version: 2.6.32-15
> Severity: normal
> Tags: squeeze
>
>
> linux-base.postinst fails on loop-aes partitions configured in /etc/fstab like this:
> /dev/sda7 /tmp ext3 defaults,loop=/dev/loop5,encryption=AES256,phash=random/1777 0 0
> /dev/sda6 /var ext3 defaults,loop=/dev/loop6,encryption=AES256,gpgkey=/root/masterkey.gpg
>
> The error comes from tune2fs (Bad magic number in super-block while
> trying to open /dev/sda7) on line 1045 of the postinst script.

I don't think this is fixable. Since these partitions are encrypted we
cannot read the filesystem label or UUID before they are mounted. Note
also that loop-aes is not included in squeeze. I strongly recommend you
switch to dm-crypt.

Ben.

--
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.
 
Old 06-12-2010, 01:23 PM
Winfried Tilanus
 
Default Bug#585609: linux-base: postinstall script fails on loop-aes partitions

On 06/12/2010 01:28 PM, Ben Hutchings wrote:

Hi,

> I don't think this is fixable. Since these partitions are encrypted we
> cannot read the filesystem label or UUID before they are mounted.

If this isn't fixable, the script should not fail (leaving the system in
an inconsistent state) but warn it can't use UUID's or labels on some
file systems, including the warning that the system might not boot
correctly.

> Note
> also that loop-aes is not included in squeeze. I strongly recommend you
> switch to dm-crypt.

I am happy to switch to dm-crypt if somebody can help me to setup
dm-crypt with the following characteristics:
- master key gpg encrypted, decryptable with multiple private gpg keys
- gpg private keys stored on gpg card, no storage of gpg private keys on
disk
- mounting of volumes early during boot
Until I know how to do that with dm-crypt, I stay with loop-aes.

best wishes,

Winfried









--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4C138A36.9000105@tilanus.com">http://lists.debian.org/4C138A36.9000105@tilanus.com
 
Old 06-12-2010, 01:54 PM
Ben Hutchings
 
Default Bug#585609: linux-base: postinstall script fails on loop-aes partitions

On Sat, 2010-06-12 at 15:23 +0200, Winfried Tilanus wrote:
> On 06/12/2010 01:28 PM, Ben Hutchings wrote:
>
> Hi,
>
> > I don't think this is fixable. Since these partitions are encrypted we
> > cannot read the filesystem label or UUID before they are mounted.
>
> If this isn't fixable, the script should not fail (leaving the system in
> an inconsistent state) but warn it can't use UUID's or labels on some
> file systems, including the warning that the system might not boot
> correctly.

It does not leave the system in an inconsistent state. You need to
reconfigure linux-base and answer the questions differently.

It is really a problem of the loop-aes package that it changes the
semantics of the fstab type and options.

> I am happy to switch to dm-crypt if somebody can help me to setup
> dm-crypt with the following characteristics:
> - master key gpg encrypted, decryptable with multiple private gpg keys
> - gpg private keys stored on gpg card, no storage of gpg private keys on
> disk
> - mounting of volumes early during boot
> Until I know how to do that with dm-crypt, I stay with loop-aes.

I expect that cryptsetup supports this.

Ben.

--
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.
 
Old 06-13-2010, 05:43 AM
Winfried Tilanus
 
Default Bug#585609: linux-base: postinstall script fails on loop-aes partitions

On 06/12/2010 03:54 PM, Ben Hutchings wrote:
> It is really a problem of the loop-aes package that it changes the
> semantics of the fstab type and options.

If you think so, then please reassign this bug to loop-aes-utils.

>> > I am happy to switch to dm-crypt if somebody can help me to setup
>> > dm-crypt with the following characteristics:
>> > - master key gpg encrypted, decryptable with multiple private gpg keys
>> > - gpg private keys stored on gpg card, no storage of gpg private keys on
>> > disk
>> > - mounting of volumes early during boot
>> > Until I know how to do that with dm-crypt, I stay with loop-aes.
> I expect that cryptsetup supports this.

Again: can you, or somebody else, please give a hint or a link on how to
do this with with cryptsetup? I couldn't get it working, so this is not
a valid work-around.

Winfried




--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4C14701F.9070905@tilanus.com">http://lists.debian.org/4C14701F.9070905@tilanus.com
 
Old 06-25-2010, 11:53 AM
Adam Spragg
 
Default Bug#585609: linux-base: postinstall script fails on loop-aes partitions

Another loop-aes user here...

"It does not leave the system in an inconsistent state. You need to
reconfigure linux-base and answer the questions differently."

Hmmm....interesting idea, except,

root@host:~# dpkg-reconfigure linux-base
/usr/sbin/dpkg-reconfigure: linux-base is broken or not fully installed
root@host:~# dpkg-preconfigure --priority=low linux-base_2.6.32-15_all.deb
root@host:~#

(No output on the preconfigure, and attempts at reinstallation still fail)

Sorry if I should know this already being a user of "testing", but *how* do I
reconfigure linux-base if it's currently broken in this manner?

Adam

--
Adam Spragg <adam.spragg@octaltelecom.co.uk>
Developer
Octal Telecom <http://www.octaltelecom.co.uk/>

It reverses the logical flow of conversation!
> Why?
> > No.
> > > Should I top post?
<http://www.google.com/search?q=%22top+posting%22>



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201006251253.46022.adam.spragg@octaltelecom.co.uk" >http://lists.debian.org/201006251253.46022.adam.spragg@octaltelecom.co.uk
 
Old 06-25-2010, 01:00 PM
Ben Hutchings
 
Default Bug#585609: linux-base: postinstall script fails on loop-aes partitions

On Fri, 2010-06-25 at 12:53 +0100, Adam Spragg wrote:
> Another loop-aes user here...
>
> "It does not leave the system in an inconsistent state. You need to
> reconfigure linux-base and answer the questions differently."
>
> Hmmm....interesting idea, except,
>
> root@host:~# dpkg-reconfigure linux-base
> /usr/sbin/dpkg-reconfigure: linux-base is broken or not fully installed
> root@host:~# dpkg-preconfigure --priority=low linux-base_2.6.32-15_all.deb
> root@host:~#
>
> (No output on the preconfigure, and attempts at reinstallation still fail)
>
> Sorry if I should know this already being a user of "testing", but *how* do I
> reconfigure linux-base if it's currently broken in this manner?

dpkg --configure --pending

Ben.

--
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.
 
Old 06-25-2010, 01:45 PM
Adam Spragg
 
Default Bug#585609: linux-base: postinstall script fails on loop-aes partitions

On Friday 25 June 2010 14:00:32 Ben Hutchings wrote:
> > Sorry if I should know this already being a user of "testing", but *how*
> > do I reconfigure linux-base if it's currently broken in this manner?
>
> dpkg --configure --pending

root@host:~# dpkg --configure --pending
Setting up linux-base (2.6.32-15) ...
tune2fs 1.41.12 (17-May-2010)
tune2fs: Bad magic number in super-block while trying to open /dev/sda6
Couldn't find valid filesystem superblock.
tune2fs failed: 256 at /var/lib/dpkg/info/linux-base.postinst line 1045,
<STDIN> line 10.
dpkg: error processing linux-base (--configure):
subprocess installed post-installation script returned error exit status 9
dpkg: dependency problems prevent configuration of linux-image-2.6.32-5-686:
linux-image-2.6.32-5-686 depends on linux-base (>= 2.6.32-15); however:
Package linux-base is not configured yet.
dpkg: error processing linux-image-2.6.32-5-686 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-2.6-686:
linux-image-2.6-686 depends on linux-image-2.6.32-5-686; however:
Package linux-image-2.6.32-5-686 is not configured yet.
dpkg: error processing linux-image-2.6-686 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-base
linux-image-2.6.32-5-686
linux-image-2.6-686
root@host:~#


:-(

Adam

--
Adam Spragg <adam.spragg@octaltelecom.co.uk>
Developer
Octal Telecom <http://www.octaltelecom.co.uk/>


It reverses the logical flow of conversation!
> Why?
> > No.
> > > Should I top post?
<http://www.google.com/search?q=%22top+posting%22>



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201006251445.27895.adam.spragg@octaltelecom.co.uk" >http://lists.debian.org/201006251445.27895.adam.spragg@octaltelecom.co.uk
 
Old 06-26-2010, 09:50 PM
Ben Hutchings
 
Default Bug#585609: linux-base: postinstall script fails on loop-aes partitions

On Fri, 2010-06-25 at 14:45 +0100, Adam Spragg wrote:
> On Friday 25 June 2010 14:00:32 Ben Hutchings wrote:
> > > Sorry if I should know this already being a user of "testing", but *how*
> > > do I reconfigure linux-base if it's currently broken in this manner?
> >
> > dpkg --configure --pending
>
> root@host:~# dpkg --configure --pending
> Setting up linux-base (2.6.32-15) ...
> tune2fs 1.41.12 (17-May-2010)
> tune2fs: Bad magic number in super-block while trying to open /dev/sda6
> Couldn't find valid filesystem superblock.
> tune2fs failed: 256 at /var/lib/dpkg/info/linux-base.postinst line 1045,
> <STDIN> line 10.

Without asking any questions? Hmm, that makes things difficult.

I think you can work around this by purging linux-base and then
reintstalling. But I should change the post-installation script to
recover from this and start asking questions again.

Ben.

--
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.
 
Old 06-27-2010, 08:03 PM
Adam Spragg
 
Default Bug#585609: linux-base: postinstall script fails on loop-aes partitions

On Saturday 26 June 2010 22:50:42 Ben Hutchings wrote:
> On Fri, 2010-06-25 at 14:45 +0100, Adam Spragg wrote:
> > root@host:~# dpkg --configure --pending
> > Setting up linux-base (2.6.32-15) ...
> > tune2fs 1.41.12 (17-May-2010)
> > tune2fs: Bad magic number in super-block while trying to open /dev/sda6
> > Couldn't find valid filesystem superblock.
> > tune2fs failed: 256 at /var/lib/dpkg/info/linux-base.postinst line 1045,
> > <STDIN> line 10.
>
> Without asking any questions? Hmm, that makes things difficult.

Yup, no questions at all asked, and no apparent way to recover.

> I think you can work around this by purging linux-base and then
> reintstalling.

Yup, that then asked me if I wanted to update fstab and friends to use UUIDs
instead of (unstable) device names, to which I replied "no", and it installed
fine then.

> But I should change the post-installation script to
> recover from this and start asking questions again.

Probably a good idea. :-)

Thanks,

Adam

--
Adam Spragg <adam.spragg@octaltelecom.co.uk>
Developer
Octal Telecom <http://www.octaltelecom.co.uk/>


It reverses the logical flow of conversation!
> Why?
> > No.
> > > Should I top post?
<http://www.google.com/search?q=%22top+posting%22>



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201006272103.34537.adam.spragg@octaltelecom.co.uk" >http://lists.debian.org/201006272103.34537.adam.spragg@octaltelecom.co.uk
 

Thread Tools




All times are GMT. The time now is 07:41 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org