diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2022-08-22 12:43:01 +0200 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2022-08-22 12:43:01 +0200 |
commit | 451261d497b5b39b7dc12978f72298c7e093b8e7 (patch) | |
tree | 90ed137a26c9c36d53f94caffed1aed7d9efeb86 | |
parent | 068cb27e9c41af97dfe988a621a404844a049519 (diff) |
PoC: chroot special filesystem mounter
-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 |