From e0c9f457ad774005ad4a176f1d00405eb5482c90 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sat, 7 Apr 2018 20:10:11 +0200 Subject: /tmp can't be used The reason being, arch-chroot flushes /tmp on each command execution. So unless all commands are executed in one big gulp, another folder needs to be used. Hence, /root --- deployments/08:00:27:d4:fd:ef.json | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'deployments') diff --git a/deployments/08:00:27:d4:fd:ef.json b/deployments/08:00:27:d4:fd:ef.json index 4fd8ca10..8c72c9d2 100644 --- a/deployments/08:00:27:d4:fd:ef.json +++ b/deployments/08:00:27:d4:fd:ef.json @@ -6,15 +6,13 @@ }, "install slimdhcp": { - "git clone https://aur.archlinux.org/slimdhcp-git.git /tmp/slimdhcp" : {"cwd" : "/tmp/"}, - "pwd" : {"cwd" : "/tmp/"}, - "ls -l /tmp/" : null, - "chown -R builder.builder /tmp/slimdhcp" : null, - "su - builder -c \"cd /tmp/slimdhcp; /usr/bin/makepkg -s --noconfirm\"" : null, - "pacman -U --noconfirm /tmp/slimdhcp/*.xz" : null + "git clone https://aur.archlinux.org/slimdhcp-git.git /root/slimdhcp" : {"cwd" : "/tmp/"}, + "chown -R builder.builder /root/slimdhcp" : null, + "su - builder -c \"cd /root/slimdhcp; /usr/bin/makepkg -s --noconfirm\"" : null, + "pacman -U --noconfirm /root/slimdhcp/*.xz" : null }, "Remove temp build env": { - "rm -rf /tmp/slimdhcp" : null, + "rm -rf /root/slimdhcp" : null, "sed -i 's/%wheel ALL=(ALL) NO/# %wheel ALL=(ALL) NO/' /etc/sudoers" : null } } -- cgit v1.2.3-54-g00ecf