We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
/sysroot
1 parent 1768f31 commit e434632Copy full SHA for e434632
src/grubconfigs.rs
@@ -31,8 +31,10 @@ pub(crate) fn install(
31
write_uuid: bool,
32
) -> Result<()> {
33
let bootdir = &target_root.sub_dir("boot").context("Opening /boot")?;
34
+ // Should use /sysroot for the physical root
35
+ let rootdir = &target_root.sub_dir("sysroot").context("Opening /sysroot")?;
36
let boot_is_mount = {
- let root_dev = target_root.self_metadata()?.stat().st_dev;
37
+ let root_dev = rootdir.self_metadata()?.stat().st_dev;
38
let boot_dev = bootdir.self_metadata()?.stat().st_dev;
39
log::debug!("root_dev={root_dev} boot_dev={boot_dev}");
40
root_dev != boot_dev
0 commit comments