summaryrefslogtreecommitdiffstats
path: root/templates/developers/jams/custom_chroot.sh
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2014-09-03 23:10:16 (GMT)
committerJames Meyer <james.meyer@operamail.com>2014-09-03 23:10:16 (GMT)
commit8bef8020a022c52a8d1d4bb373b5c8cdc256284f (patch)
treeb4ff9cf1c0cbddbc751d93ad18cae4f9b6aaa676 /templates/developers/jams/custom_chroot.sh
parentf93d353b9b47120e0ed102342ab4b66f314aff70 (diff)
downloadlinhes_dev-8bef8020a022c52a8d1d4bb373b5c8cdc256284f.zip
Convert dev chroot to a container.
This was needed to play nice with systemd and the way it mounts /dev/pts inside the chroot as public (breaking the default kernel policy). When public after /dev/pts inside the chroot is unmounted it also unmounts /dev/pts for the host. Same general steps as before. - Create new container with ./setup_env_container.sh - Enter container using ./enter_dev_container.$ARCH.$TS
Diffstat (limited to 'templates/developers/jams/custom_chroot.sh')
-rwxr-xr-xtemplates/developers/jams/custom_chroot.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/templates/developers/jams/custom_chroot.sh b/templates/developers/jams/custom_chroot.sh
index 75fe866..f8e6bce 100755
--- a/templates/developers/jams/custom_chroot.sh
+++ b/templates/developers/jams/custom_chroot.sh
@@ -1,11 +1,13 @@
#!/bin/bash
-set -x
-build_root="../../../../build_root"
+
+build_root=$BROOT
+
#copy in the ssh keys
-cp -rp /home/jams/.ssh $build_root.${1}/root
-chown root.root $build_root.${1}/root/.ssh
+cp -rp /home/jams/.ssh $build_root/root
+chown -R root.root $build_root/root/.ssh
#copy in display
-cp display.sh $build_root.${1}/etc/profile.d
+cp display.sh $build_root/etc/profile.d
+
#copy in .gtkrc
-cp .gtkrc-2.0 $build_root.${1}/root \ No newline at end of file
+#cp .gtkrc-2.0 $build_root/root