[Bug 1362884] [NEW] Only one device of multidevice btrfs is decrypted in cryptroot

Marek Dopiera marek at dopiera.pl
Fri Aug 29 01:39:02 UTC 2014


Public bug reported:

Setup
---

Description:    Ubuntu 14.04.1 LTS
Release:        14.04
cryptsetup:
  Installed: 2:1.6.1-1ubuntu1
  Candidate: 2:1.6.1-1ubuntu1
  Version table:
 *** 2:1.6.1-1ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status

The setup is 2 LUKS encrypted partitions on top of which is btrfs setup
as RAID 1. The problem is that only one device is decrypted in the
generated initramfs image.

Reason for failure
---
I debugged the problem myself and the reason is:
- there is no LVM-like code in the initramfs hook to include others as well

Solution
---
The solution is to make the hooks aware of other btrfs devices.

Workaround
---
Manually specify other devices as resume devices.

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

** Patch added: "btrfs.patch"
   https://bugs.launchpad.net/bugs/1362884/+attachment/4189555/+files/btrfs.patch

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

Title:
  Only one device of multidevice btrfs is decrypted in cryptroot

Status in “cryptsetup” package in Ubuntu:
  New

Bug description:
  Setup
  ---

  Description:    Ubuntu 14.04.1 LTS
  Release:        14.04
  cryptsetup:
    Installed: 2:1.6.1-1ubuntu1
    Candidate: 2:1.6.1-1ubuntu1
    Version table:
   *** 2:1.6.1-1ubuntu1 0
          500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
          100 /var/lib/dpkg/status

  The setup is 2 LUKS encrypted partitions on top of which is btrfs
  setup as RAID 1. The problem is that only one device is decrypted in
  the generated initramfs image.

  Reason for failure
  ---
  I debugged the problem myself and the reason is:
  - there is no LVM-like code in the initramfs hook to include others as well

  Solution
  ---
  The solution is to make the hooks aware of other btrfs devices.

  Workaround
  ---
  Manually specify other devices as resume devices.

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



More information about the foundations-bugs mailing list