[Bug 332950] Re: Misleading "cryptsetup: WARNING: invalid line in /etc/crypttab - "
David Schoen
332950 at bugs.launchpad.net
Thu Mar 7 15:37:55 UTC 2013
This seems to still break in Quantal (12.10) when upgrading from 12.04.
I was getting the "cryptsetup: WARNING: invalid line in /etc/crypttab -
" errors when running update-initramfs (under a live CD because the
machine was completely unbootable).
After following advice from
http://forums.linuxmint.com/viewtopic.php?f=189&t=83763 I started
digging around and in /usr/share/initramfs-tools/hooks/cryptroot and
found it couldn't parse /etc/crypttab if the target field wasn't exactly
the device name that was root was sitting under, e.g. changing it from
"sda2_crypt" (what I believe 12.04 alternative installer set it to) to
"sda2" meant update-initramfs and update-grub both ran without issue and
the machine now boots without issue - seems like some dodgy parsing
going on in that hook?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cryptsetup in Ubuntu.
https://bugs.launchpad.net/bugs/332950
Title:
Misleading "cryptsetup: WARNING: invalid line in /etc/crypttab - "
Status in “cryptsetup” package in Ubuntu:
Fix Released
Status in “cryptsetup” source package in Lucid:
Triaged
Status in “cryptsetup” source package in Maverick:
Won't Fix
Status in “cryptsetup” package in Debian:
Fix Released
Bug description:
Binary package hint: cryptsetup
When there's no line for the cryptsetup root device, a misleading warning is issued during update-initramfs:
cryptsetup: WARNING: invalid line in /etc/crypttab -
I'm attaching a patch that handles this better, by outputting
cryptsetup: WARNING: Missing line in /etc/crypttab for $target
in this case.
I've ran into this when manually doing the "mdadm-cryptsetup-
lvm2-initramfs" dance, and used another name during "cryptsetup
luksOpen".
ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: nvidia
Package: cryptsetup 2:1.0.6-7ubuntu5 [modified: usr/share/initramfs-tools/hooks/cryptroot]
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: cryptsetup
Uname: Linux 2.6.28-8-generic i686
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/332950/+subscriptions
More information about the foundations-bugs
mailing list