<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, May 26, 2016 at 9:52 AM, Rashmi Ranjan Mohanty <span dir="ltr"><<a href="mailto:RashmiRanjan.Mohanty@microfocus.com" target="_blank">RashmiRanjan.Mohanty@microfocus.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span class="">> What I don't understand in your case though is why you use an explicit<br>
> mount for /opt anyway... The nice thing about btrfs is that subvolumes<br>
> behave pretty much like normal directories that just have a bit more<br>
> features. And because of that there's no need to mount them<br>
> explicitly. Just create a subvolume normally and everything should be<br>
> good, it will then be available at the right place the instant the<br>
> parent subvolume is mounted too.<br>
<br>
</span>I can not really control the partitioning scheme. We just provide the software installer.<br>
Customer installs the OS and then installs our software. So its upto customer discretion<br>
how he wants to create the partitioning scheme. The system on which we found the<br>
issue was having the default partitioning scheme that SUSE (SLES 12) used and /opt<br>
was not a separate partition, but btrfs subvolume of / partition.<br>
<br>
Anyway we are changing the location of unit files to standard /usr/lib/systemd/system to fix<br>
the issue. Tested it and works fine after changing the location.<br>
<br>
Just out of curiosity... If /usr itself is there on a separate partition, can this issue happen<br>
then or systemd can handle that scenario ?<br></blockquote><div><br></div><div>Some distros (e.g. Debian) configure systemd to use /lib instead of /usr/lib.</div><div><br></div><div>In other distros (e.g. Arch or Gentoo), it's generally been agreed that it needs to be pre-mounted by the initramfs – since /usr often contains libraries and binaries required for mounting /usr.</div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</div></div>