Advertisement
ponce

overlayfs

Apr 16th, 2022
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. rm -fR /tmp/{changes,workdir,chroot}
  2. mkdir -p /tmp/{changes,workdir,chroot}
  3. mount -t overlay overlay -olowerdir=/,upperdir=/tmp/changes,workdir=/tmp/workdir /tmp/chroot
  4. mount -t proc proc /tmp/chroot/proc
  5. chroot /tmp/chroot
  6. umount /tmp/chroot/proc
  7. umount /tmp/chroot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement