nomadbsd / NomadBSD

Livesystem based on FreeBSD
http://nomadbsd.org
BSD 2-Clause "Simplified" License
361 stars 42 forks source link

PKG_CACHEDIR: 1.4G tmpfs for /tmp is too small for an (OctoPkg) upgrade of 130R-20210508 #118

Open grahamperrin opened 2 years ago

grahamperrin commented 2 years ago

Steps

  1. NomadBSD first run
  2. reboot
  3. attempt to upgrade packages

Expected

  1. sufficient capacity in PKG_CACHEDIR for an upgrade of NomadBSD-provided packages

Actual result

  1. during a fetch of 595 files, capacity reached around 98%
  2. during attempts to install, capacity reaches 99% (repeated use of df -h in a terminal), then presumably 100%; killings occur.
grahamperrin commented 2 years ago

Possible workarounds

A

Instead of pkg upgrade:

  1. upgrade a package, or set of packages, then pkg clean -a
  2. again, upgrade a package, or set of packages, then pkg clean -a
  3. again … repeat until it becomes possible to run pkg upgrade without a killing.

Workaround test result (work in progress):

  1. pkg upgrade firefox and encounter a Python-related conflict, make a note
  2. pkg upgrade firefox
  3. pkg clean -a
  4. pkg upgrade libreoffice
  5. … test interrupted by a UFS-related kernel panic, IIRC this coincided with installation of the final package (for LibreOffice itself).

B

A certain workaround:

  1. set PKG_CACHEDIR to somewhere with greater capacity than /tmp/pkg – maybe /data/var/tmp/pkg – for as long as is necessary
  2. remember to pkg clean or pkg clean -a.