fix: run e2fsck before restart boot, set panic=0 to prevent reboot loops

This commit is contained in:
Harivansh Rathi 2026-04-11 14:41:02 +00:00
parent 2cef6aace5
commit 73cdf2eb74
3 changed files with 7 additions and 1 deletions

View file

@ -647,3 +647,7 @@ func syncDir(path string) error {
}
return nil
}
func repairDirtyFilesystem(diskPath string) {
_ = exec.Command("e2fsck", "-fy", diskPath).Run()
}