Generating an escrow-packet fails

Bug #2029216 reported by James Paton-Smith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
volume-key (Ubuntu)
New
Undecided
Unassigned

Bug Description

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/storage_administration_guide/ch-volumekey

Attempting to generate an escrow-packet as documented at the above link fails with the following error:

```
sudo volume_key --save ./luks.img --output ./escrow-packet

volume_key: Error opening `./luks.img': Error getting information about volume `./luks.img': Invalid argument
```

The exact same command works on Fedora Workstation 38.

To replicate the issue, do the following:
- On Ubuntu 22.04 (haven't tested other releases)

- Install `volume-key` package

- Generate a LUKS encrypted volume
```
# Pre-allocate a 1GB volume
sudo fallocate -l 1GB ./luks.img

sudo cryptsetup luksFormat ./luks.img
# Follow prompts to setup the volume with a passphrase
```

- Try to generate the escrow-packet
```
sudo volume_key --save ./luks.img --output ./escrow-packet
```

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.