<div dir="ltr"><div dir="ltr"><div>On Mon, May 5, 2025 at 10:03 AM Andrei Borzenkov <<a href="mailto:arvidjaar@gmail.com">arvidjaar@gmail.com</a>> wrote:</div></div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, May 5, 2025 at 4:58 PM Kaizaad Bilimorya <<a href="mailto:kaizaad@sharcnet.ca" target="_blank">kaizaad@sharcnet.ca</a>> wrote:<br>
><br>
> Hello Silvio,<br>
> Thank you for your response.<br>
> We're using Ansible to automate some tasks so it is easier (and more reliable) to add/remove mount unit files than having to parse the fstab for our specific mount options.<br>
> And as the Systemd documentation says "For tooling, writing mount units should be preferred over editing /etc/fstab" which is something I agree with. I need the<br>
> "x-initrd.mount" option since we are setting up some custom Dracut hooks early in the boot process for the local disk and want this disk mounted before switch-root.<br>
><br>
<br>
You do not need "x-initrd.mount". </blockquote><div>Isn't the purpose of the "x-initrd.mount" option to have a filesystem mounted in the initrd? Which is what I need.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">You need to add your unit to initrd.<br></blockquote><div>I guess that is an option but why wouldn't I just use the "x-initrd.mount" option if that is available? </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
How did you expect to achieve it with a string in the unit definition?</blockquote><div>I didn't expect anything, I was just reporting that it would be nice if the documentation was consistent since this option works fine in fstab.</div><div><br></div><div>thanks</div><div>-k</div></div></div>