Changing packer tmpdir

This is for ARMv8 based devices

Changing packer tmpdir

Postby 147 » Tue Dec 19, 2017 3:56 am

I'm running Arch Linux Arm on my RPi. I've installed packer and the default build directory is /tmp. However this directory is only 496MB and is obviously not near enough. I would like to change the default build directory for packer from /tmp to ~/.tmp. But I can't make it work. Please help, and excuse my n00biness :D

here is the part of the /usr/bin/packer that I think is relevant:
$this->bbcode_second_pass_code('', '
# set tmpfile stuff, clean tmpdir
tmpdir="${TMPDIR:-/tmp}/packertmp-$UID"
rm -rf "$tmpdir" &>/dev/null
mkdir -p "$tmpdir"
')

I tried changing the 2nd line to ...
$this->bbcode_second_pass_code('', 'tmpdir="${TMPDIR:-/home/m147/.tmp}/packertmp-$UID"')
and

$this->bbcode_second_pass_code('', 'tmpdir="${TMPDIR:-~/.tmp}/packertmp-$UID"')

but neither seems to work. What am I doing wrong? Thank you.
147
 
Posts: 10
Joined: Wed Jun 28, 2017 5:36 pm

Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 3 guests