<font size=2 face="sans-serif">I'm working with an embedded device that
mounts / and /var in initrd. It then switches root and fires up systemd.
Early in the boot, after paths target, /var gets unmounted. I want systemd
to not do that, but I can't figure out how to stop it.</font>
<p><font size=2 face="sans-serif">I would like systemd to leave /var mounted,
but still unmount it during shutdown. I would rather not move the mounting
of /var out of initrd. Is this possible?</font>
<p><font size=2 face="sans-serif">I'm trying to use a very stripped down
systemd. As minimal as possible. I'm using systemd-219. The logs say that
var.mount is bound to an inactive unit, and it is stopping too. I assume
that is why /var gets unmounted, but I don't know what to do to stop it.
There is no /etc/fstab file. There is no var.mount file.</font>
<p><font size=2 face="sans-serif">I assume I'm either missing something
simple, or it is not possible.</font>
<p><tt><font size=1># systemctl --all</font></tt>
<br><tt><font size=1>...</font></tt>
<br><tt><font size=1>var.mount            
                     
                loaded    inactive
dead    /var</font></tt>
<br><tt><font size=1>...</font></tt>
<br>
<br><tt><font size=1># journalctl</font></tt>
<br><tt><font size=1>...</font></tt>
<br><tt><font size=1>systemd[1]: Unit var.mount is bound to inactive unit.
Stopping, too.</font></tt>
<br><tt><font size=1>...</font></tt>
<br><tt><font size=1>systemd[1]: Reached target Paths.<br>
systemd[1]: Starting Paths.<br>
systemd[1]: Unmounting /var...<br>
systemd[1]: Unmounted /var.<br>
systemd[1]: Created slice System Slice.</font></tt>