mirror of
https://github.com/getcompanion-ai/computer-host.git
synced 2026-04-16 07:04:23 +00:00
fix: run e2fsck before restart boot, set panic=0 to prevent reboot loops
This commit is contained in:
parent
2cef6aace5
commit
73cdf2eb74
3 changed files with 7 additions and 1 deletions
|
|
@ -647,3 +647,7 @@ func syncDir(path string) error {
|
|||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func repairDirtyFilesystem(diskPath string) {
|
||||
_ = exec.Command("e2fsck", "-fy", diskPath).Run()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue