[Pkg-systemd-maintainers] Bug#712439: Bug#712439: systemd: encrypted swap not brought up, delays boot
Sam Morris
sam at robots.org.uk
Sat Jul 20 19:59:48 BST 2013
On Sat, 2013-07-20 at 17:21 +0200, Michael Biebl wrote:
> Could you post your partition / lvm /cryptsetup layout, your fstab and
> crypttab.
Layout as udisks sees it:
/org/freedesktop/UDisks2/Manager:
org.freedesktop.UDisks2.Manager:
Version: 2.1.0
/org/freedesktop/UDisks2/block_devices/dm_2d0:
org.freedesktop.UDisks2.Block:
Configuration: [('fstab', {'fsname': <b'/dev/disk/by-id/dm-name-swap0'>, 'dir': <b'none'>, 'type': <b'swap'>, 'opts': <b'noauto'>, 'freq': <0>, 'passno': <0>})]
CryptoBackingDevice: '/'
Device: /dev/dm-0
DeviceNumber: 65024
Drive: '/'
HintAuto: false
HintIconName:
HintIgnore: false
HintName:
HintPartitionable: false
HintSymbolicIconName:
HintSystem: true
Id: by-id-dm-name-swap0
IdLabel:
IdType:
IdUUID:
IdUsage:
IdVersion:
MDRaid: '/'
MDRaidMember: '/'
PreferredDevice: /dev/mapper/swap0
ReadOnly: false
Size: 2146418176
Symlinks: /dev/disk/by-id/dm-name-swap0
/dev/disk/by-id/dm-uuid-CRYPT-PLAIN-swap0
/dev/mapper/swap0
/org/freedesktop/UDisks2/block_devices/sda:
org.freedesktop.UDisks2.Block:
Configuration: []
CryptoBackingDevice: '/'
Device: /dev/sda
DeviceNumber: 2048
Drive: '/org/freedesktop/UDisks2/drives/VBOX_HARDDISK_VB64621a99_3c0955c7'
HintAuto: false
HintIconName:
HintIgnore: false
HintName:
HintPartitionable: true
HintSymbolicIconName:
HintSystem: true
Id: by-id-ata-VBOX_HARDDISK_VB64621a99-3c0955c7
IdLabel:
IdType:
IdUUID:
IdUsage:
IdVersion:
MDRaid: '/'
MDRaidMember: '/'
PreferredDevice: /dev/sda
ReadOnly: false
Size: 10737418240
Symlinks: /dev/disk/by-id/ata-VBOX_HARDDISK_VB64621a99-3c0955c7
/dev/disk/by-id/scsi-SATA_VBOX_HARDDISK_VB64621a99-3c0955c7
org.freedesktop.UDisks2.PartitionTable:
Type: gpt
/org/freedesktop/UDisks2/block_devices/sda1:
org.freedesktop.UDisks2.Block:
Configuration: []
CryptoBackingDevice: '/'
Device: /dev/sda1
DeviceNumber: 2049
Drive: '/org/freedesktop/UDisks2/drives/VBOX_HARDDISK_VB64621a99_3c0955c7'
HintAuto: false
HintIconName:
HintIgnore: false
HintName:
HintPartitionable: true
HintSymbolicIconName:
HintSystem: true
Id: by-id-ata-VBOX_HARDDISK_VB64621a99-3c0955c7-part1
IdLabel:
IdType:
IdUUID:
IdUsage:
IdVersion:
MDRaid: '/'
MDRaidMember: '/'
PreferredDevice: /dev/sda1
ReadOnly: false
Size: 1048576
Symlinks: /dev/disk/by-id/ata-VBOX_HARDDISK_VB64621a99-3c0955c7-part1
/dev/disk/by-id/scsi-SATA_VBOX_HARDDISK_VB64621a99-3c0955c7-part1
org.freedesktop.UDisks2.Partition:
Flags: 0
IsContained: false
IsContainer: false
Name:
Number: 1
Offset: 1048576
Size: 1048576
Table: '/org/freedesktop/UDisks2/block_devices/sda'
Type:
UUID:
/org/freedesktop/UDisks2/block_devices/sda2:
org.freedesktop.UDisks2.Block:
Configuration: [('fstab', {'fsname': <b'UUID=583b11a5-430a-469b-96df-e02c19ad67b0'>, 'dir': <b'/'>, 'type': <b'ext4'>, 'opts': <b'acl,errors=remount-ro'>, 'freq': <0>, 'passno': <1>})]
CryptoBackingDevice: '/'
Device: /dev/sda2
DeviceNumber: 2050
Drive: '/org/freedesktop/UDisks2/drives/VBOX_HARDDISK_VB64621a99_3c0955c7'
HintAuto: false
HintIconName:
HintIgnore: false
HintName:
HintPartitionable: true
HintSymbolicIconName:
HintSystem: true
Id: by-id-ata-VBOX_HARDDISK_VB64621a99-3c0955c7-part2
IdLabel:
IdType: ext4
IdUUID: 583b11a5-430a-469b-96df-e02c19ad67b0
IdUsage: filesystem
IdVersion: 1.0
MDRaid: '/'
MDRaidMember: '/'
PreferredDevice: /dev/sda2
ReadOnly: false
Size: 10735304192
Symlinks: /dev/disk/by-id/ata-VBOX_HARDDISK_VB64621a99-3c0955c7-part2
/dev/disk/by-id/scsi-SATA_VBOX_HARDDISK_VB64621a99-3c0955c7-part2
/dev/disk/by-uuid/583b11a5-430a-469b-96df-e02c19ad67b0
org.freedesktop.UDisks2.Filesystem:
MountPoints: /
org.freedesktop.UDisks2.Partition:
Flags: 0
IsContained: false
IsContainer: false
Name: Linux filesystem
Number: 2
Offset: 2097152
Size: 10735304192
Table: '/org/freedesktop/UDisks2/block_devices/sda'
Type: 0fc63daf-8483-4772-8e79-3d69d8477de4
UUID: 2e236b2f-4e32-4d77-b068-b163aab291aa
/org/freedesktop/UDisks2/block_devices/sdb:
org.freedesktop.UDisks2.Block:
Configuration: []
CryptoBackingDevice: '/'
Device: /dev/sdb
DeviceNumber: 2064
Drive: '/org/freedesktop/UDisks2/drives/VBOX_HARDDISK_VB07df0885_4e6b6915'
HintAuto: false
HintIconName:
HintIgnore: false
HintName:
HintPartitionable: true
HintSymbolicIconName:
HintSystem: true
Id: by-id-ata-VBOX_HARDDISK_VB07df0885-4e6b6915
IdLabel:
IdType:
IdUUID:
IdUsage:
IdVersion:
MDRaid: '/'
MDRaidMember: '/'
PreferredDevice: /dev/sdb
ReadOnly: false
Size: 644245094400
Symlinks: /dev/disk/by-id/ata-VBOX_HARDDISK_VB07df0885-4e6b6915
/dev/disk/by-id/scsi-SATA_VBOX_HARDDISK_VB07df0885-4e6b6915
org.freedesktop.UDisks2.PartitionTable:
Type: gpt
/org/freedesktop/UDisks2/block_devices/sdb1:
org.freedesktop.UDisks2.Block:
Configuration: [('fstab', {'fsname': <b'UUID=23852cdb-ad23-47f2-a562-7a84c36589ae'>, 'dir': <b'/home'>, 'type': <b'ext4'>, 'opts': <b'acl,errors=remount-ro'>, 'freq': <0>, 'passno': <2>})]
CryptoBackingDevice: '/'
Device: /dev/sdb1
DeviceNumber: 2065
Drive: '/org/freedesktop/UDisks2/drives/VBOX_HARDDISK_VB07df0885_4e6b6915'
HintAuto: false
HintIconName:
HintIgnore: false
HintName:
HintPartitionable: true
HintSymbolicIconName:
HintSystem: true
Id: by-id-ata-VBOX_HARDDISK_VB07df0885-4e6b6915-part1
IdLabel:
IdType: ext4
IdUUID: 23852cdb-ad23-47f2-a562-7a84c36589ae
IdUsage: filesystem
IdVersion: 1.0
MDRaid: '/'
MDRaidMember: '/'
PreferredDevice: /dev/sdb1
ReadOnly: false
Size: 644244028928
Symlinks: /dev/disk/by-id/ata-VBOX_HARDDISK_VB07df0885-4e6b6915-part1
/dev/disk/by-id/scsi-SATA_VBOX_HARDDISK_VB07df0885-4e6b6915-part1
/dev/disk/by-uuid/23852cdb-ad23-47f2-a562-7a84c36589ae
org.freedesktop.UDisks2.Filesystem:
MountPoints: /home
org.freedesktop.UDisks2.Partition:
Flags: 0
IsContained: false
IsContainer: false
Name: Linux filesystem
Number: 1
Offset: 1048576
Size: 644244028928
Table: '/org/freedesktop/UDisks2/block_devices/sdb'
Type: 0fc63daf-8483-4772-8e79-3d69d8477de4
UUID: d41163c9-3c92-4bb6-857b-844809b071c1
/org/freedesktop/UDisks2/block_devices/sdc:
org.freedesktop.UDisks2.Block:
Configuration: []
CryptoBackingDevice: '/'
Device: /dev/sdc
DeviceNumber: 2080
Drive: '/org/freedesktop/UDisks2/drives/VBOX_HARDDISK_VB49906f38_9338d110'
HintAuto: false
HintIconName:
HintIgnore: false
HintName:
HintPartitionable: true
HintSymbolicIconName:
HintSystem: true
Id: by-id-ata-VBOX_HARDDISK_VB49906f38-9338d110
IdLabel:
IdType:
IdUUID:
IdUsage:
IdVersion:
MDRaid: '/'
MDRaidMember: '/'
PreferredDevice: /dev/sdc
ReadOnly: false
Size: 2147483648
Symlinks: /dev/disk/by-id/ata-VBOX_HARDDISK_VB49906f38-9338d110
/dev/disk/by-id/scsi-SATA_VBOX_HARDDISK_VB49906f38-9338d110
org.freedesktop.UDisks2.PartitionTable:
Type: gpt
/org/freedesktop/UDisks2/block_devices/sdc1:
org.freedesktop.UDisks2.Block:
Configuration: [('crypttab', {'name': <b'swap0'>, 'device': <b'/dev/disk/by-id/scsi-SATA_VBOX_HARDDISK_VB49906f38-9338d110-part1'>, 'passphrase-path': <b'/dev/urandom'>, 'options': <b'swap,cipher=aes-xts-plain64,size=512'>})]
CryptoBackingDevice: '/'
Device: /dev/sdc1
DeviceNumber: 2081
Drive: '/org/freedesktop/UDisks2/drives/VBOX_HARDDISK_VB49906f38_9338d110'
HintAuto: false
HintIconName:
HintIgnore: false
HintName:
HintPartitionable: true
HintSymbolicIconName:
HintSystem: true
Id: by-id-ata-VBOX_HARDDISK_VB49906f38-9338d110-part1
IdLabel:
IdType:
IdUUID:
IdUsage:
IdVersion:
MDRaid: '/'
MDRaidMember: '/'
PreferredDevice: /dev/sdc1
ReadOnly: false
Size: 2146418176
Symlinks: /dev/disk/by-id/ata-VBOX_HARDDISK_VB49906f38-9338d110-part1
/dev/disk/by-id/scsi-SATA_VBOX_HARDDISK_VB49906f38-9338d110-part1
org.freedesktop.UDisks2.Partition:
Flags: 0
IsContained: false
IsContainer: false
Name: Linux swap
Number: 1
Offset: 1048576
Size: 2146418176
Table: '/org/freedesktop/UDisks2/block_devices/sdc'
Type: 0657fd6d-a4ab-43c4-84e5-0933c84b4f4f
UUID: b7ad900d-dd5c-4849-aed8-0064716b5cc5
/org/freedesktop/UDisks2/block_devices/sr0:
org.freedesktop.UDisks2.Block:
Configuration: []
CryptoBackingDevice: '/'
Device: /dev/sr0
DeviceNumber: 2816
Drive: '/org/freedesktop/UDisks2/drives/VBOX_CD_ROM_VB2_1a2b3c4d'
HintAuto: true
HintIconName:
HintIgnore: false
HintName:
HintPartitionable: false
HintSymbolicIconName:
HintSystem: false
Id:
IdLabel:
IdType:
IdUUID:
IdUsage:
IdVersion:
MDRaid: '/'
MDRaidMember: '/'
PreferredDevice: /dev/sr0
ReadOnly: true
Size: 0
Symlinks: /dev/cdrom
/dev/disk/by-id/ata-VBOX_CD-ROM_VB2-1a2b3c4d
/org/freedesktop/UDisks2/drives/VBOX_CD_ROM_VB2_1a2b3c4d:
org.freedesktop.UDisks2.Drive:
CanPowerOff: false
Configuration: {}
ConnectionBus:
Ejectable: true
Id: VBOX-CD-ROM-VB2-1a2b3c4d
Media:
MediaAvailable: false
MediaChangeDetected: true
MediaCompatibility: optical_cd
optical_dvd
optical_mrw
optical_mrw_w
MediaRemovable: true
Model: VBOX CD-ROM
Optical: false
OpticalBlank: false
OpticalNumAudioTracks: 0
OpticalNumDataTracks: 0
OpticalNumSessions: 0
OpticalNumTracks: 0
Removable: true
Revision: 1.0
RotationRate: -1
Seat: seat0
Serial: VB2-1a2b3c4d
SiblingId:
Size: 0
SortKey: 00coldplug/11removable/sr0
TimeDetected: 1374332452778410
TimeMediaDetected: 0
Vendor:
WWN:
org.freedesktop.UDisks2.Drive.Ata:
AamEnabled: false
AamSupported: false
AamVendorRecommendedValue: 0
ApmEnabled: false
ApmSupported: false
PmEnabled: false
PmSupported: false
SecurityEnhancedEraseUnitMinutes: 0
SecurityEraseUnitMinutes: 0
SecurityFrozen: false
SmartEnabled: false
SmartFailing: false
SmartNumAttributesFailedInThePast: -1
SmartNumAttributesFailing: -1
SmartNumBadSectors: 1
SmartPowerOnSeconds: 0
SmartSelftestPercentRemaining: -1
SmartSelftestStatus:
SmartSupported: false
SmartTemperature: 0.0
SmartUpdated: 0
WriteCacheEnabled: false
WriteCacheSupported: false
/org/freedesktop/UDisks2/drives/VBOX_HARDDISK_VB07df0885_4e6b6915:
org.freedesktop.UDisks2.Drive:
CanPowerOff: false
Configuration: {}
ConnectionBus:
Ejectable: false
Id: VBOX-HARDDISK-VB07df0885-4e6b6915
Media:
MediaAvailable: true
MediaChangeDetected: true
MediaCompatibility:
MediaRemovable: false
Model: VBOX HARDDISK
Optical: false
OpticalBlank: false
OpticalNumAudioTracks: 0
OpticalNumDataTracks: 0
OpticalNumSessions: 0
OpticalNumTracks: 0
Removable: false
Revision: 1.0
RotationRate: -1
Seat: seat0
Serial: VB07df0885-4e6b6915
SiblingId:
Size: 644245094400
SortKey: 00coldplug/00fixed/sd____b
TimeDetected: 1374332452784198
TimeMediaDetected: 1374332452784198
Vendor:
WWN:
org.freedesktop.UDisks2.Drive.Ata:
AamEnabled: false
AamSupported: false
AamVendorRecommendedValue: 0
ApmEnabled: false
ApmSupported: false
PmEnabled: true
PmSupported: true
SecurityEnhancedEraseUnitMinutes: 0
SecurityEraseUnitMinutes: 0
SecurityFrozen: false
SmartEnabled: false
SmartFailing: false
SmartNumAttributesFailedInThePast: -1
SmartNumAttributesFailing: -1
SmartNumBadSectors: 1
SmartPowerOnSeconds: 0
SmartSelftestPercentRemaining: -1
SmartSelftestStatus:
SmartSupported: false
SmartTemperature: 0.0
SmartUpdated: 0
WriteCacheEnabled: true
WriteCacheSupported: true
/org/freedesktop/UDisks2/drives/VBOX_HARDDISK_VB49906f38_9338d110:
org.freedesktop.UDisks2.Drive:
CanPowerOff: false
Configuration: {}
ConnectionBus:
Ejectable: false
Id: VBOX-HARDDISK-VB49906f38-9338d110
Media:
MediaAvailable: true
MediaChangeDetected: true
MediaCompatibility:
MediaRemovable: false
Model: VBOX HARDDISK
Optical: false
OpticalBlank: false
OpticalNumAudioTracks: 0
OpticalNumDataTracks: 0
OpticalNumSessions: 0
OpticalNumTracks: 0
Removable: false
Revision: 1.0
RotationRate: 0
Seat: seat0
Serial: VB49906f38-9338d110
SiblingId:
Size: 2147483648
SortKey: 00coldplug/00fixed/sd____c
TimeDetected: 1374332452785623
TimeMediaDetected: 1374332452785623
Vendor:
WWN:
org.freedesktop.UDisks2.Drive.Ata:
AamEnabled: false
AamSupported: false
AamVendorRecommendedValue: 0
ApmEnabled: false
ApmSupported: false
PmEnabled: true
PmSupported: true
SecurityEnhancedEraseUnitMinutes: 0
SecurityEraseUnitMinutes: 0
SecurityFrozen: false
SmartEnabled: false
SmartFailing: false
SmartNumAttributesFailedInThePast: -1
SmartNumAttributesFailing: -1
SmartNumBadSectors: 1
SmartPowerOnSeconds: 0
SmartSelftestPercentRemaining: -1
SmartSelftestStatus:
SmartSupported: false
SmartTemperature: 0.0
SmartUpdated: 0
WriteCacheEnabled: true
WriteCacheSupported: true
/org/freedesktop/UDisks2/drives/VBOX_HARDDISK_VB64621a99_3c0955c7:
org.freedesktop.UDisks2.Drive:
CanPowerOff: false
Configuration: {}
ConnectionBus:
Ejectable: false
Id: VBOX-HARDDISK-VB64621a99-3c0955c7
Media:
MediaAvailable: true
MediaChangeDetected: true
MediaCompatibility:
MediaRemovable: false
Model: VBOX HARDDISK
Optical: false
OpticalBlank: false
OpticalNumAudioTracks: 0
OpticalNumDataTracks: 0
OpticalNumSessions: 0
OpticalNumTracks: 0
Removable: false
Revision: 1.0
RotationRate: 0
Seat: seat0
Serial: VB64621a99-3c0955c7
SiblingId:
Size: 10737418240
SortKey: 00coldplug/00fixed/sd____a
TimeDetected: 1374332452779459
TimeMediaDetected: 1374332452779459
Vendor:
WWN:
org.freedesktop.UDisks2.Drive.Ata:
AamEnabled: false
AamSupported: false
AamVendorRecommendedValue: 0
ApmEnabled: false
ApmSupported: false
PmEnabled: true
PmSupported: true
SecurityEnhancedEraseUnitMinutes: 0
SecurityEraseUnitMinutes: 0
SecurityFrozen: false
SmartEnabled: false
SmartFailing: false
SmartNumAttributesFailedInThePast: -1
SmartNumAttributesFailing: -1
SmartNumBadSectors: 1
SmartPowerOnSeconds: 0
SmartSelftestPercentRemaining: -1
SmartSelftestStatus:
SmartSupported: false
SmartTemperature: 0.0
SmartUpdated: 0
WriteCacheEnabled: true
WriteCacheSupported: true
I'm not using LVM.
$ cat /etc/crypttab
# <target name> <source device> <key file> <options>
swap0 /dev/disk/by-id/scsi-SATA_VBOX_HARDDISK_VB49906f38-9338d110-part1 /dev/urandom swap,cipher=aes-xts-plain64,size=512
$ ls -l /dev/disk/by-id/scsi-SATA_VBOX_HARDDISK_VB49906f38-9338d110-part1
lrwxrwxrwx 1 root root 10 Jul 20 16:01 /dev/disk/by-id/scsi-SATA_VBOX_HARDDISK_VB49906f38-9338d110-part1 -> ../../sdc1
And the fstab:
UUID=583b11a5-430a-469b-96df-e02c19ad67b0 / ext4 acl,errors=remount-ro 0 1
UUID=23852cdb-ad23-47f2-a562-7a84c36589ae /home ext4 acl,errors=remount-ro 0 2
/dev/disk/by-id/dm-name-swap0 none swap noauto
vmshare /media/vmshare vboxsf defaults,comment=systemd.automount,uid=sam,gid=sam,dmode=755,fmode=644
> Not sure if it is related to
> http://packages.qa.debian.org/l/lvm2/news/20130715T130007Z.html
I previously had the version from testing installed. I've just upgraded
to the version from unstable but it didn't change anything.
--
Sam Morris <https://robots.org.uk/>
3412 EA18 1277 354B 991B C869 B219 7FDB 5EA0 1078
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20130720/5ca577fa/attachment-0002.sig>
More information about the Pkg-systemd-maintainers
mailing list