/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
This commit is contained in:
Anton Hvornum 2018-04-07 20:10:11 +02:00 committed by GitHub
parent a8287c43e5
commit e0c9f457ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 7 deletions

View File

@ -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
}
}