I wasn't sure if this solution is correct in the general case, as I also get a warning from GRUB "/dev/mapper/foo-root is not a valid boot device", but that is probably another issue.