Problem with overlayfs and switch_root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I'm trying to port Chakra's live cd from aufs to overlayfs since overlay fs is 
now in 3.18. Since I need multiple lowerdir support so I also grab the code 
from overlayfs-next.

Before switch_root, the mount setup is:
* squashfs is mounted at /ro_branch/root-image, /ro_branch/overlay-pkgs, 
/ro_branch/overlay
* tmpfs is mounted at /rw_branch
* Overlayfs is mounted at /new_root with option lowerdir=/ro_branch/overlay-
pkgs:/ro_branch/overlay:/ro_branch/root-
image,upperdir=/rw_branch/uppper,workdir=/rw_branch/work .

Then it will switch_root to /new_root .

Now system boots fine, but with one strange problem, if I execute ls / , it 
shows that there's nothing under / . But I can access files and directory with 
full path.

What's the possible problem that can cause this?

Thanks,
Xuetian
--
To unsubscribe from this list: send the line "unsubscribe linux-unionfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystems Devel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux