[systemd-devel] Check if systems is container in "systemd-remount-fs.service"
Cristian RodrÃguez
crrodriguez at opensuse.org
Wed Apr 8 20:01:08 PDT 2015
On Wed, Apr 8, 2015 at 6:55 PM, Lennart Poettering
<lennart at poettering.net> wrote:
> On Tue, 17.03.15 10:54, Peter Paule (systemd-devel at fedux.org) wrote:
>
>> Hi,
>>
>> does it make sense to check if the system is started as a container in
>> "systemd-remount-fs.service" and only start the service if the system is NOT
>> a container?
>
> Why?
The service always fail when running in a container.. for example
systemd-nspawn -D / -xb
Apr 08 23:59:30 xps15z systemd-remount-fs[16]: /bin/mount for / exited
with exit status 1.
Apr 08 23:59:30 xps15z systemd-remount-fs[16]: mount: can't find
UUID=01a467ea-82ff-4d5a-a8a1-f2fb4e797ea0
More information about the systemd-devel
mailing list