[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#389456: p-a-c: Fails to configure encrypted volumes



On Tuesday 26 September 2006 02:04, David Härdeman wrote:
> Agreed...the problem is probably with the on-demand loading of modules
> and not with p-a-c. It's weird though, partman-crypto-dm does rely
> on the virtual crypto-modules package...
>
> Did the syslog have any failure messages wrt. udeb download before the
> device-mapper errors?

The problem may be that udpkg actually ignores missing dependencies. It
only prints a warning in the syslog, but does not throw an error.
So you need to check for the presence of components in a different way.

Here's the full log from the start of partman. There are some strange anna
lines in there, related to loading the components, but I've no idea exactly
how. (The "anna-install" line was hacked in by me; I've committed a patch
in SVN to make anna-install a bit more verbose by default.)
The lines from anna look fairly safe to ignore though as they are all basic
udebs that are present anyway.

Although the log does not show which udebs were actually installed,
after the failure /var/lib/dpkg shows the following packages installed
(probably newly installed as they are at the bottom of the file):
- cdebconf-newt-entropy
- crypto-modules-$kvers
- cryptsetup-udeb
- dmsetup-udeb
- libpopt0-udeb
- partman-crypto-dm
So it looks to me like dependencies were correctly pulled in?
(libdevmapper1.02-udeb was of course already installed)

Sep 26 03:07:50 main-menu[1965]: INFO: Menu item 'partman-base' selected 
Sep 26 03:07:53 kernel: JFS: nTxBlock = 2009, nTxLock = 16072
Sep 26 03:07:54 kernel: SGI XFS with ACLs, security attributes, realtime, large block numbers, no debug enabled
Sep 26 03:07:54 kernel: SGI XFS Quota Management subsystem
Sep 26 03:07:54 kernel: program parted_devices is using a deprecated SCSI ioctl, please convert it to SG_IO
Sep 26 03:07:54 kernel: end_request: I/O error, dev fd0, sector 0
Sep 26 03:07:54 kernel: end_request: I/O error, dev fd0, sector 0
Sep 26 03:07:54 kernel: program parted_server is using a deprecated SCSI ioctl, please convert it to SG_IO
Sep 26 03:07:54 partman:   PV /dev/sda5   VG Debian   lvm2 [4.75 GB / 0    free]
Sep 26 03:07:54 partman:   Total: 1 [4.75 GB] / in use: 1 [4.75 GB] / in no VG: 0 [0   ]
Sep 26 03:07:54 partman:   Reading all physical volumes.  This may take a while...
Sep 26 03:07:54 partman:   Found volume group "Debian" using metadata type lvm2
Sep 26 03:08:04 kernel: device-mapper: 4.6.0-ioctl (2006-02-17) initialised: dm-devel@redhat.com
Sep 26 03:08:07 net/hw-detect.hotplug: Detected hotpluggable network interface eth0
Sep 26 03:08:07 udevd-event[14866]: run_program: exec of program '/lib/udev/net.agent' failed
Sep 26 03:08:07 net/hw-detect.hotplug: Detected hotpluggable network interface lo
Sep 26 03:08:07 udevd-event[14872]: run_program: exec of program '/lib/udev/net.agent' failed
Sep 26 03:08:18 partman-lvm:   Logical volume "home" successfully removed
Sep 26 03:08:18 partman-lvm:   Logical volume "root" successfully removed
Sep 26 03:08:18 partman-lvm:   Logical volume "swap_1" successfully removed
Sep 26 03:08:18 partman-lvm:   0 logical volume(s) in volume group "Debian" now active
Sep 26 03:08:18 partman-lvm:   Volume group "Debian" successfully removed
Sep 26 03:08:18 partman-lvm:   Labels on physical volume "/dev/sda5" successfully wiped
Sep 26 03:08:20 kernel: program parted_devices is using a deprecated SCSI ioctl, please convert it to SG_IO
Sep 26 03:08:20 kernel: end_request: I/O error, dev fd0, sector 0
Sep 26 03:08:20 kernel: end_request: I/O error, dev fd0, sector 0
Sep 26 03:08:20 kernel: program parted_server is using a deprecated SCSI ioctl, please convert it to SG_IO
Sep 26 03:08:20 partman:   No matching physical volumes found
Sep 26 03:08:20 partman:   Reading all physical volumes.  This may take a while...
Sep 26 03:08:20 partman:   No volume groups found
Sep 26 03:08:23 kernel: program parted_server is using a deprecated SCSI ioctl, please convert it to SG_IO
Sep 26 03:08:28 anna-install: Installing partman-crypto-dm
Sep 26 03:08:28 anna[17168]: DEBUG: resolver (cdebconf-udeb): package doesn't exist (ignored) 
Sep 26 03:08:28 anna[17168]: DEBUG: resolver (ext2-modules): package doesn't exist (ignored) 
Sep 26 03:08:28 anna[17168]: DEBUG: resolver (kernel-image-2.6.17-2-486-di): package doesn't exist (ignored) 
Sep 26 03:08:28 anna[17168]: DEBUG: resolver (hw-detect): package doesn't exist (ignored) 
Sep 26 03:08:28 anna[17168]: DEBUG: resolver (cdebconf-newt-udeb): package doesn't exist (ignored) 
Sep 26 03:08:28 anna[17168]: DEBUG: resolver (libnewt0.52): package doesn't exist (ignored) 
Sep 26 03:08:35 net/hw-detect.hotplug: Detected hotpluggable network interface lo
Sep 26 03:08:35 udevd-event[18125]: run_program: exec of program '/lib/udev/net.agent' failed
Sep 26 03:08:36 net/hw-detect.hotplug: Detected hotpluggable network interface eth0
Sep 26 03:08:36 udevd-event[18138]: run_program: exec of program '/lib/udev/net.agent' failed
Sep 26 03:08:41 kernel: device-mapper: crypt: Error allocating crypto tfm
Sep 26 03:08:41 kernel: device-mapper: error adding target to table
Sep 26 03:08:41 kernel: device-mapper: device doesn't appear to be in the dev hash table.
Sep 26 03:08:41 partman-crypto: Command failed: device-mapper: reload ioctl failed: Invalid argument

(The net/hw-detect.hotplug and udevd-event messages can be ignored; as can
the end_request messages for fd0.)

Attachment: pgprMxD4Q7s5g.pgp
Description: PGP signature


Reply to: