chiark / gitweb /
switch-root: not only mkdir the parents but the target dir
authorHarald Hoyer <harald@redhat.com>
Wed, 13 Aug 2014 14:45:53 +0000 (16:45 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 13 Aug 2014 14:45:53 +0000 (16:45 +0200)
commit5caeb7d6854e02321e0e00588e17412b161ef176
tree7211a85440879f05a49ce7ce1ebf13b82e185570
parent587f21d8c0ec16f0812fd457b18cb29a9ed60229
switch-root: not only mkdir the parents but the target dir

switch-root would only mkdir the parents of the mount move directories.

With this patch, the mount move target directory is created to make
switch-root to an empty root directory work.
src/core/switch-root.c