diff options
author | varac <varacanero@zeromail.org> | 2016-01-18 00:16:35 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2016-01-18 00:16:35 +0100 |
commit | 0cbd39c05f94b6e7d9d7df78c3319b8096411b45 (patch) | |
tree | a46454a3f2df2632a71e602264e35a44cf41bdb6 | |
parent | 3a73eb0351ba02ac1fa9f59cc4b8680fea2137ea (diff) |
added custom.sh, use only one core for atlas builds
-rw-r--r-- | jessie.json | 13 | ||||
-rw-r--r-- | scripts/custom.sh | 7 |
2 files changed, 12 insertions, 8 deletions
diff --git a/jessie.json b/jessie.json index e7ce261..4a8d23e 100644 --- a/jessie.json +++ b/jessie.json @@ -15,6 +15,7 @@ "type": "shell", "scripts": [ "scripts/base.sh", + "scripts/custom.sh", "scripts/virtualbox.sh", "scripts/vagrant.sh", "scripts/dep.sh", @@ -22,6 +23,9 @@ "scripts/zerodisk.sh" ], "override": { + "qemu": { + "execute_command": "echo 'vagrant'|sudo -S bash '{{.Path}}'" + }, "virtualbox-iso": { "execute_command": "echo 'vagrant'|sudo -S bash '{{.Path}}'" } @@ -58,14 +62,7 @@ "iso_url": "http://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-8.2.0-amd64-netinst.iso", "net_device": "virtio-net", "qemuargs": [ - [ - "-m", - "1024M" - ], - [ - "-smp", - "4" - ] + [ "-m", "1024M" ] ], "shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -h now", "ssh_password": "{{user `password`}}", diff --git a/scripts/custom.sh b/scripts/custom.sh new file mode 100644 index 0000000..0e4e3a2 --- /dev/null +++ b/scripts/custom.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Allow root login +sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config + +# Set root pw +usermod -p "$(echo vagrant | openssl passwd -1 -stdin)" root |