[systemd-devel] [opensuse-kernel] New mount restriction?

David Strauss david at davidstrauss.net
Thu Apr 11 23:45:15 PDT 2013


I posted this to another, related thread, but here's the relevant
commit and reasoning:
http://cgit.freedesktop.org/systemd/systemd/commit/?id=b3ac5f8cb98757416d8660023d6564a7c411f0a0

On Tue, Apr 9, 2013 at 5:15 AM, Tetsuo Handa
<penguin-kernel at i-love.sakura.ne.jp> wrote:
> Andrey Borzenkov wrote:
>> This seems to be yest another fallout of changed systemd policy - it
>> now makes / shared mount.
>>
>> bor at opensuse:~> sudo mount --move /tmp/old /tmp/new
>> mount: wrong fs type, bad option, bad superblock on /tmp/old,
>>        missing codepage or helper program, or other error
>>        In some cases useful info is found in syslog - try
>>        dmesg | tail or so
>> bor at opensuse:~> sudo mount --make-private /
>> bor at opensuse:~> sudo mount --move /tmp/old /tmp/new
>> bor at opensuse:~> cd
>>
> OK. Changing mount flags solves this problem.
>
> Current way of mounting seems to be breaking not only "mount --move" but also
> "pivot_root".
>
> linux:~ # /usr/bin/newns /sbin/pivot_root /proc/ /proc/self/
> Starting /sbin/pivot_root
> pivot_root: failed to change root from `/proc/' to `/proc/self/': Invalid argument
> linux:~ # mount --make-private /
> linux:~ # mount --make-private /proc/
> linux:~ # /usr/bin/newns /sbin/pivot_root /proc/ /proc/self/
> Starting /sbin/pivot_root
> linux:~ #
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel



-- 
David Strauss
   | david at davidstrauss.net
   | +1 512 577 5827 [mobile]


More information about the systemd-devel mailing list