[Bug 473615] [NEW] cryptsetup init scripts are redundant and can break the boot

Steve Langasek steve.langasek at canonical.com
Wed Nov 4 01:18:38 UTC 2009


Public bug reported:

Binary package hint: cryptsetup

The cryptsetup package in karmic includes both init scripts and an
upstart job.  The init scripts should be completely redundant, because
the upstart job is written such that it will start all crypted volumes
listed in /etc/crypttab that aren't marked with 'noauto'.  And there
have been reports of regressions in 9.10 as a result of these init
scripts being present (reported on bug #430496), due to adverse
interaction between the init script (rcS runs with 'console owner') and
gdm.  Removing the init scripts should resolve these hangs, because the
cryptsetup job only requires 'console output', not 'console owner', so
doesn't compete with X for control of the VT.

However, this change is not without risk of regression, because the
upstart job (and the init scripts as well) will skip over any devices
that aren't yet available at the time it's called.  The job waits for
udevtrigger to finish, but that doesn't guarantee that all disks have
been detected, so any disks that arrive later won't be decrypted for
use.  So both before and after, this is racy... after, the odds of
running into problems because of the race are greater.

ProblemType: Bug
Architecture: amd64
Date: Tue Nov  3 04:07:39 2009
DistroRelease: Ubuntu 9.10
Package: cryptsetup 2:1.0.6+20090405.svn49-1ubuntu7
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48+ureadahead2-generic
SourcePackage: cryptsetup
Uname: Linux 2.6.31-14-generic x86_64

** Affects: cryptsetup (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: cryptsetup (Ubuntu Lucid)
     Importance: Undecided
         Status: New

** Affects: cryptsetup (Ubuntu Karmic)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug

-- 
cryptsetup init scripts are redundant and can break the boot
https://bugs.launchpad.net/bugs/473615
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list