From 46a694bc5b8e6d5b533eacbc1dcd1df9ce283d1d Mon Sep 17 00:00:00 2001 From: Jeff Bezos Date: Wed, 23 Oct 2024 14:57:29 +0000 Subject: [PATCH] maybe bootctl is finally gonna work --- src/install.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install.cpp b/src/install.cpp index 6140f64..ef5b9d7 100644 --- a/src/install.cpp +++ b/src/install.cpp @@ -159,6 +159,6 @@ void install_soviet(const std::string& target_drive, if (execInChroot("dracut -H -I ' /usr/bin/nano ' --add-drivers ' vfat btrfs ' --strip /tmp/sov-initrd.img") != 0) return; if (execInChroot("/usr/lib/systemd/ukify build --linux=/usr/lib/modules/" + kernel_version + "/vmlinuz-soviet --initrd=/tmp/sov-initrd.img --uname=" + kernel_version + " --splash=/efi/logo-soviet-boot.bmp --cmdline=@/etc/kernel/cmdline --output=/efi/EFI/Linux/sovietlinux-" + build_id + "-initrd.efi") != 0) return; - execInChroot("bootctl install"); + system("bootctl install --root=/mnt --esp-path=/mnt/efi"); std::cout << "Soviet Linux installation completed." << std::endl; }