diff options
Diffstat (limited to 'proof-of-concept/helpers/prepare_chroot.sh')
-rwxr-xr-x | proof-of-concept/helpers/prepare_chroot.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/proof-of-concept/helpers/prepare_chroot.sh b/proof-of-concept/helpers/prepare_chroot.sh new file mode 100755 index 0000000..530d276 --- /dev/null +++ b/proof-of-concept/helpers/prepare_chroot.sh @@ -0,0 +1,8 @@ +#! /bin/sh + +mount -o bind /dev /var/lib/tftp/cloner/dev +mount -o bind /dev/pts /var/lib/tftp/cloner/dev/pts +mount -t sysfs /sys /var/lib/tftp/cloner/sys +mount -t proc /proc /var/lib/tftp/cloner/proc + +cp /etc/resolv.conf /var/lib/tftp/cloner/etc/resolv.conf |