diff options
-rw-r--r-- | src/makechrootpkg.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/makechrootpkg.in b/src/makechrootpkg.in index 895c1de..5d3eaae 100644 --- a/src/makechrootpkg.in +++ b/src/makechrootpkg.in @@ -24,6 +24,7 @@ clean_first=0 run_namcap=0 run_checkpkg=0 temp_chroot=0 +tmp_opts="nosuid,nodev,size=50%,nr_inodes=2m" bindmounts_ro=() bindmounts_rw=() @@ -365,6 +366,7 @@ prepare_chroot if arch-nspawn "$copydir" \ --bind="${PWD//:/\\:}:/startdir" \ --bind="${SRCDEST//:/\\:}:/srcdest" \ + --tmpfs="/tmp:${tmp_opts}" \ "${bindmounts_ro[@]}" "${bindmounts_rw[@]}" \ /chrootbuild "${makepkg_args[@]}" then |