Improve install-to-RAM verification for ISO boots

This commit is contained in:
Mikhail Chusavitin
2026-04-07 20:21:06 +03:00
parent 531d1ca366
commit 0a4bb596f6
4 changed files with 68 additions and 10 deletions

View File

@@ -26,3 +26,8 @@ func loopChangeFD(loopDev, newFile string) error {
}
return nil
}
// bindMount binds src over dst using the syscall directly (avoids exec PATH issues).
func bindMount(src, dst string) error {
return syscall.Mount(src, dst, "", syscall.MS_BIND, "")
}