mirror of
https://github.com/philmmanjaro/alma.git
synced 2025-07-26 06:59:28 +02:00
Fix broken encryption
This commit is contained in:
parent
10faad551b
commit
7f6a0c0a0f
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user