Thanks for the patch!
@@ -181,11 +181,16 @@
key=$( echo $opt | cut -d " " -f3 )
rootopts=$( echo $opt | cut -d " " -f4- )
- if [ -z "$opt" ] || [ -z "$source" ] || [ -z "$key" ] || [ -z
"$rootopts" ]; then
- echo "cryptsetup: WARNING: invalid line in /etc/crypttab -
$opt" >&2
+ if [ -z "$opt" ]; then
+ echo "cryptsetup: INFO: mapped volume $target has no line in
/etc/crypttab" >&2
return 1
fi
+ if [ -z "$source" ] || [ -z "$key" ] || [ -z "$rootopts" ]; then
+ echo "cryptsetup: WARNING: invalid line in /etc/crypttab -
$opt" >&2
+ return 1
+ fi
+
# Sanity checks for $source
if [ -h "$source" ]; then
link=$(readlink -nqe "$source")
This seems unrelated to the present bug report. Isn't only the change
to canonical_dev needed?
Can you provide an example of a tool that handles quotes in /etc/fstab
as you describe, that I can check this behavior against?
** Changed in: cryptsetup (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/784203
Title:
cryptroot hook does not handle quotes in fstab
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs