mirror of
https://github.com/kairos-io/immucore.git
synced 2025-09-24 19:57:51 +00:00
Add fsck before mounting (#56)
Respect all options from systemd-fsck as that it what is currently used on kairos. Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
@@ -116,6 +116,10 @@ func (s *State) MountOP(what, where, t string, options []string, timeout time.Du
|
||||
MountOption: mountPoint,
|
||||
FstabEntry: *tmpFstab,
|
||||
Target: where,
|
||||
PrepareCallback: func() error {
|
||||
_ = internalUtils.Fsck(what)
|
||||
return nil
|
||||
},
|
||||
}
|
||||
|
||||
err = op.run()
|
||||
|
Reference in New Issue
Block a user