Add debug log

This commit is contained in:
Roey Darwish Dror 2018-12-02 16:51:08 +02:00
parent 35ffccc352
commit 5f30a38b4a

View File

@ -153,6 +153,7 @@ fn create(command: CreateCommand) -> Result<(), Error> {
let root_partition = block_device.partition_device_path(3)?; let root_partition = block_device.partition_device_path(3)?;
let encrypted_root = if let Some(cryptsetup) = &cryptsetup { let encrypted_root = if let Some(cryptsetup) = &cryptsetup {
info!("Encrypting the root filesystem");
EncryptedDevice::prepare(&cryptsetup, &root_partition)?; EncryptedDevice::prepare(&cryptsetup, &root_partition)?;
Some(EncryptedDevice::open( Some(EncryptedDevice::open(
cryptsetup, cryptsetup,