<div dir="ltr"><div dir="ltr">On Wed, Feb 12, 2020 at 10:31 AM Xogium <<a href="mailto:contact@xogium.me">contact@xogium.me</a>> wrote:<br></div><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I am wondering about how to best implement a mechanism to recreate a specific <br>
filesystem in case of the slightest data corruption done to it. <br></blockquote><div><br></div><div>I am not sure if there is a built-in method to do what you are asking, but I think you could <br></div><div>use a drop-in to do it. Simply use a drop-in to add a requires/after into systemd-makefs</div><div>for a service of your own. Your service would do whatever checks you want and, if</div><div>necessary, wipe out the file system altogether, which would then trigger systemd-makefs</div><div>to rebuild it.</div><div><br></div><div>You would, of course, need to be careful to write your service intelligently enough to avoid</div><div>wiping out file systems you care to keep around...</div><div><br></div><div>..Ch:W..<br></div><div> </div></div></div>