From bc132afdd2554d0ae2b3c4d4ef56a676870fc5cf Mon Sep 17 00:00:00 2001
From: duyiwei <duyiwei@kylinos.cn>
Date: Fri, 22 Sep 2023 09:37:16 +0800
Subject: [PATCH] modify coreos-rootflags to fix nestos install problem

Signed-off-by: duyiwei <duyiwei@kylinos.cn>
---
 src/bin/rdcore/rootmap.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/rdcore/rootmap.rs b/src/bin/rdcore/rootmap.rs
index fbe85b3..7c404c9 100644
--- a/src/bin/rdcore/rootmap.rs
+++ b/src/bin/rdcore/rootmap.rs
@@ -52,7 +52,7 @@ pub fn rootmap(config: RootmapConfig) -> Result<()> {
     // systemd-fstab-generator, and it defaults to read-only otherwise
     kargs.push("rw".into());
 
-    let rootflags = runcmd_output!("coreos-rootflags", &config.root_mount)?;
+    let rootflags = runcmd_output!("nestos-rootflags", &config.root_mount)?;
     let rootflags = rootflags.trim();
     if !rootflags.is_empty() {
         kargs.push(format!("rootflags={}", rootflags));
@@ -292,4 +292,4 @@ fn write_boot_uuid_grub2_dropin<P: AsRef<Path>>(uuid: &str, p: P) -> Result<()>
     let p = p.as_ref();
     std::fs::write(p, format!("set BOOT_UUID=\"{}\"\n", uuid))
         .with_context(|| format!("writing {}", p.display()))
-}
\ No newline at end of file
+}
-- 
2.33.0

