On Thu, May 17, 2012 at 08:29:50PM +0200, Tollef Fog Heen wrote: > Can you check what /run/systemd/generator/cryptsetup@sda2_crypt.service > looks like and tell me? Also, what does ??systemctl show
[Unit] Description=Cryptography Setup for %I Conflicts=umount.target DefaultDependencies=no BindTo=dev-disk-by\x2duuid-14b2f7c9\x2daf24\x2d4c5c\x2dbbac\x2d98766083aa16.device dev-mapper-%i.device After=systemd-readahead-collect.service systemd-readahead-replay.service dev-disk-by\x2duuid-14b2f7c9\x2daf24\x2d4c5c\x2dbbac\x2d98766083aa16.device Before=umount.target Before=cryptsetup.target Before=local-fs.target [Service] Type=oneshot RemainAfterExit=yes TimeoutSec=0 ExecStart=/lib/systemd/systemd-cryptsetup attach 'sda2_crypt' '/dev/disk/by-uuid/14b2f7c9-af24-4c5c-bbac-98766083aa16' 'none' 'luks' ExecStop=/lib/systemd/systemd-cryptsetup detach 'sda2_crypt' > cryptsetup@sda2_crypt.service?? tell you? Id=cryptsetup@sda2_crypt.service Names=cryptsetup@sda2_crypt.service Requires=systemd-journald.socket BindTo=dev-disk-by\x2duuid-14b2f7c9\x2daf24\x2d4c5c\x2dbbac\x2d98766083aa16.device dev-mapper-sda2_crypt.device RequiredBy=cryptsetup.target dev-mapper-sda2_crypt.device WantedBy=dev-disk-by\x2duuid-14b2f7c9\x2daf24\x2d4c5c\x2dbbac\x2d98766083aa16.device Conflicts=umount.target Before=umount.target cryptsetup.target local-fs.target After=systemd-readahead-collect.service systemd-readahead-replay.service dev-disk-by\x2duuid-14b2f7c9\x2daf24\x2d4c5c\x2dbbac\x2d98766083aa16.device systemd-journald.socket Description=Cryptography Setup for sda2_crypt LoadState=loaded ActiveState=failed SubState=failed FragmentPath=/run/systemd/generator/cryptsetup@sda2_crypt.service InactiveExitTimestamp=Fri, 18 May 2012 15:27:24 +0100 InactiveExitTimestampMonotonic=44876159 ActiveEnterTimestamp=Fri, 18 May 2012 15:27:25 +0100 ActiveEnterTimestampMonotonic=45316060 ActiveExitTimestamp=Fri, 18 May 2012 15:28:41 +0100 ActiveExitTimestampMonotonic=122176104 InactiveEnterTimestamp=Fri, 18 May 2012 15:28:42 +0100 InactiveEnterTimestampMonotonic=122344250 CanStart=yes CanStop=yes CanReload=no CanIsolate=no StopWhenUnneeded=no RefuseManualStart=no RefuseManualStop=no AllowIsolate=no DefaultDependencies=no OnFailureIsolate=no IgnoreOnIsolate=no IgnoreOnSnapshot=no DefaultControlGroup=name=systemd:/system/[email protected]/sda2_crypt ControlGroup=cpu:/system/[email protected]/sda2_crypt name=systemd:/system/[email protected]/sda2_crypt NeedDaemonReload=no JobTimeoutUSec=0 ConditionTimestamp=Fri, 18 May 2012 15:27:24 +0100 ConditionTimestampMonotonic=44851399 ConditionResult=yes Type=oneshot Restart=no NotifyAccess=none RestartUSec=100ms TimeoutUSec=0 WatchdogUSec=0 WatchdogTimestampMonotonic=0 StartLimitInterval=10000000 StartLimitBurst=5 StartLimitAction=none ExecStart={ path=/lib/systemd/systemd-cryptsetup ; argv[]=/lib/systemd/systemd-cryptsetup attach sda2_crypt /dev/disk/by-uuid/14b2f7c9-af24-4c5c-bbac-98766083aa16 none luks ; ignore_errors=no ; start_time=[Fri, 18 May 2012 15:27:24 +0100] ; stop_time=[Fri, 18 May 2012 15:27:24 +0100] ; pid=676 ; code=exited ; status=0 } ExecStop={ path=/lib/systemd/systemd-cryptsetup ; argv[]=/lib/systemd/systemd-cryptsetup detach sda2_crypt ; ignore_errors=no ; start_time=[Fri, 18 May 2012 15:28:41 +0100] ; stop_time=[Fri, 18 May 2012 15:28:42 +0100] ; pid=735 ; code=exited ; status=1 } PermissionsStartOnly=no RootDirectoryStartOnly=no RemainAfterExit=yes GuessMainPID=yes MainPID=0 ControlPID=0 SysVStartPriority=-1 FsckPassNo=0 Result=exit-code UMask=0022 LimitCPU=18446744073709551615 LimitFSIZE=18446744073709551615 LimitDATA=18446744073709551615 LimitSTACK=18446744073709551615 LimitCORE=18446744073709551615 LimitRSS=18446744073709551615 LimitNOFILE=4096 LimitAS=18446744073709551615 LimitNPROC=31242 LimitMEMLOCK=65536 LimitLOCKS=18446744073709551615 LimitSIGPENDING=31242 LimitMSGQUEUE=819200 LimitNICE=0 LimitRTPRIO=0 LimitRTTIME=18446744073709551615 OOMScoreAdjust=0 Nice=0 IOScheduling=0 CPUSchedulingPolicy=0 CPUSchedulingPriority=0 TimerSlackNSec=50000 CPUSchedulingResetOnFork=no NonBlocking=no StandardInput=null StandardOutput=journal StandardError=inherit TTYReset=no TTYVHangup=no TTYVTDisallocate=no SyslogPriority=30 SyslogLevelPrefix=yes SecureBits=0 CapabilityBoundingSet=18446744073709551615 MountFlags=1048576 PrivateTmp=no PrivateNetwork=no SameProcessGroup=no KillMode=control-group KillSignal=15 ControlGroupModify=no ControlGroupPersistent=no IgnoreSIGPIPE=yes ExecMainStartTimestamp=Fri, 18 May 2012 15:27:24 +0100 ExecMainStartTimestampMonotonic=44876150 ExecMainExitTimestamp=Fri, 18 May 2012 15:27:24 +0100 ExecMainExitTimestampMonotonic=44876150 ExecMainPID=676 ExecMainCode=1 ExecMainStatus=0 > In the .service file, you probably have a > ExecStart=/lib/systemd/systemd-cryptsetup attach 'sda2_crypt' > '/dev/disk/by-uuid/14b2f7c9-af24-4c5c-bbac-98766083aa16' 'none' 'luks > line, right? Can you try running that by hand and see if you get any > errors? It says "Volume sda2_crypt already active." and exits with status 0 if I put it in a file and source it but if I run it with $(cat file) I get: | Password file path 'none' is not absolute. Ignoring. | Encountered unknown /etc/crypttab options ''luks'', ignoring. | crypt_init() failed: block device required (I assume due to escaping). Interestingly if I start it by hand the job shows itself as active/exited, I then get a failed udev. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

