Skip to content

Instantly share code, notes, and snippets.

@vinipsmaker
Created October 5, 2013 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vinipsmaker/6840464 to your computer and use it in GitHub Desktop.
Save vinipsmaker/6840464 to your computer and use it in GitHub Desktop.
# você também pode usar o comando "ln -f" no lugar de cp
cp /etc/passwd* /srv/chroot/lucid/etc
cp /etc/group* /srv/chroot/lucid/etc
# se você também usa sudo no seu Archlinux
# vai lhe poupar o trabalho de configurar o sudo do ambiente chroot
cp /etc/sudoers /srv/chroot/lucid/etc
# se você quiser o mesmo conjunto de senhas
cp /etc/shadow* /srv/chroot/lucid/etc
# opcional, somente para resolução de DNS
cp /etc/resolv.conf /srv/chroot/lucid/etc
cp /etc/localtime /srv/chroot/lucid/etc
cp /etc/mtab /srv/chroot/lucid/etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment