From 7f6a0c0a0fd8c54cc78e9bca02f96502e6cac1fa Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Wed, 29 May 2019 15:03:35 +0300 Subject: [PATCH] Fix broken encryption --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index c6de174..6f0ec01 100644 --- a/src/main.rs +++ b/src/main.rs @@ -206,13 +206,13 @@ fn create(command: CreateCommand) -> Result<(), Error> { .args(&["mkinitcpio", "-p", "linux"]) .run(ErrorKind::Initramfs)?; - if cryptsetup.is_some() { + if encrypted_root.is_some() { debug!("Setting up GRUB for an encrypted root partition"); let uuid = blkid .unwrap() .execute() - .arg(root_partition.path()) + .arg(root_partition_base.path()) .args(&["-o", "value", "-s", "UUID"]) .run_text_output(ErrorKind::Partitioning)?; let trimmed = uuid.trim();