[Bug 784203] Re: cryptroot hook does not handle quotes in fstab

xenoson xenoson at gmx.net
Wed Jul 27 16:47:57 UTC 2011


Hey, sorry I didn't check back here for a while.
Steve you are right, on the first glance two unrelated things.
My use case gives the relation: I was restoring a box from file system backups to a crypt container with new file systems and UUIDs and used blkid output to edit my fstab. I saw the output and thought, ok do we put quotes there now? In the changeroot 'mount -a' worked with quotes so it seemed the way to go. But building the initrd failed with warnings about invalid lines. I changed back the quotes, still got the warning but found my conf/conf.d/cryptroot in the ramdisk image. So I investigated the reason for the warning that didn't give helpful information.

-- 
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/784203

Title:
  cryptroot hook does not handle quotes in fstab

Status in “cryptsetup” package in Ubuntu:
  Expired

Bug description:
  Binary package hint: cryptsetup

  Hello!
  It seems all the utils handle UUID="" and LABEL="" statements in fstab with quotes like blkid prints them.
  While chasing a missing conf/conf.d/cryptroot in initrd.img I noticed a misleading warning message, but sure enough another opened crypto container does not need to be in /etc/crypttab so this should not be reason to complain about an invalid line.

  [ -h "$dev" ] fails on something like "/dev/disk/by-uuid/"foo"" so I
  would suggest we strip quotes first.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/784203/+subscriptions




More information about the foundations-bugs mailing list