From a2173c7f9a224655f3c43f61ff64e3891b51d193 Mon Sep 17 00:00:00 2001 From: amy Date: Sun, 23 Jan 2022 19:50:04 +0100 Subject: [PATCH] genfstab shouldn't be run in the chroot --- src/functions/base.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/functions/base.rs b/src/functions/base.rs index 00ce6b8..04eafb3 100755 --- a/src/functions/base.rs +++ b/src/functions/base.rs @@ -26,12 +26,10 @@ pub fn install_base_packages() { pub fn genfstab() { exec_eval( exec_chroot( - "genfstab", + "bash", vec![ - String::from("-U"), - String::from("/mnt"), - String::from(">>"), - String::from("/mnt/etc/fstab"), + String::from("-c"), + String::from("'genfstab -U /mnt >> /mnt/etc/fstab'"), ], ), "Generate fstab",