I tried to test pivot_root from command line after an unsuccessful
container start:

  # cd /mnt/lxc
  # ls
  bin  boot  dev  etc  home  lib  lib64  media  mnt  opt  proc  root run  sbin  
selinux  srv  sys  tmp  usr  var
  # ls mnt
  # pivot_root . /mnt/lxc/mnt
  pivot_root: Invalid argument

There is some interesting piece of information in pivot_root(2) man
page:

  The following restrictions apply to new_root and put_old:
  ...
  -  new_root and put_old must not be on the same file system as the
     current root.
  ...

Maybe there is some difference in file systems between boot time and
running lxc-start later from a command line.  But I'm afraid I don't
understand the pivot_root thing.

I'll try to summarize my findings on the lxc mailing list, maybe someone
can explain what's going on.




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to