Skip to content
Snippets Groups Projects
  1. Mar 17, 2025
    • Oliver Smith's avatar
      pmb.helpers.apk: support PMB_APK_NO_CACHE · 4bf3f11b
      Oliver Smith authored
      Add a new environment variable that disables apk's caching feature for
      space constrained environments such as the bpo image build jobs.
      
      Currently we have a workaround in place in bpo: the apk cache is moved
      to a tmpfs. But this is fragile and just disabling the apk cache is a
      more elegant solution.
      
      I've decided to make this an env var instead of a full pmbootstrap
      option since this option is not relevant for normal users, only for CI
      jobs in space constrained environments. Also we already have another
      `PMB_APK_` env var.
      
      Related: bpo issue 136
      Part-of: !2553
      4bf3f11b
  2. Mar 14, 2025
  3. Mar 02, 2025
  4. Feb 16, 2025
  5. Jan 10, 2025
  6. Jan 06, 2025
  7. Jan 02, 2025
  8. Dec 19, 2024
  9. Dec 10, 2024
  10. Dec 03, 2024
  11. Nov 24, 2024
  12. Nov 07, 2024
  13. Nov 04, 2024
  14. Nov 02, 2024
  15. Oct 22, 2024
  16. Oct 21, 2024
  17. Jul 22, 2024
    • Oliver Smith's avatar
      args: remove -m and -mp (MR 2371) · ebfda16d
      Oliver Smith authored and Caleb Connolly's avatar Caleb Connolly committed
      Remove arguments to set postmarketOS and Alpine mirrors.
      
      The current implementation is broken with the way the mirrors are now
      configured: The current implementation fills a list, but the mirror
      configuration code expects a string. It is not longer possible to set
      an arbitrary amount of mirrors for the postmarketOS mirror. The benefit
      is that we don't have comma separated values in the config file anymore
      but instead just simple strings. Now it is possible to have one proper
      mirror for aports, pmaports and pmaports_systemd, and one _custom one
      to override each of these.
      
      We already have too many options in "pmbootstrap -h", and changing a
      mirror is more of a base configuration that you do once and maybe change
      a few times, but don't need to be able to set it with each pmbootstrap
      run. Users are not going to write this out manually on their
      command-lines, it only makes sense in scripts and wrappers for
      pmbootstrap, and there you could as well use another method (as now
      described in docs/mirrors.md) to set the mirrors.
      
      Less important, but another reason is that using "-mp" (two letters as
      short argument) isn't really elegant.
      ebfda16d
  18. Jul 15, 2024
  19. Jun 30, 2024
    • Oliver Smith's avatar
      kconfig check: move rules to kconfigcheck.toml (MR 2333) · 1dfaafe5
      Oliver Smith authored
      Move all kconfig rules from pmb.config to a separate toml file
      pmb/data/kconfigcheck.toml. This is a fallback, pmbootstrap now prefers
      loading kconfigcheck.toml from the currently checked out pmaports branch
      if it exists.
      
      This finally allows having separate kconfig check rules per pmaports
      branch and makes the workflow of adjusting these rules much more
      pleasant as the rules and kernel configs can just be adjusted at the
      same time in pmaports!
      
      This patch also moves the definition of what rules should be checked for
      community and main devices, those that have pmb:kconfigcheck-community
      in their linux APKBUILD, to the new kconfigcheck.toml. This should make
      it much more intuitive, previously one needed to find the place in the
      pmbootstrap source and edit it there.
      
      Furthermore the "enforce_check" logic is removed. Previously pmbootstrap
      would print warnings for failed config checks in some cases, but not
      exit with error which was very confusing. Now exit 0 means all checks
      passed and exit 1 means, that there is at least one error.
      
      Use toml for the file, as discussed in pmbootstrap issue 2165. Python
      3.11 has a native toml reader, use tomli for previous Python versions
      for compatibility.
      1dfaafe5
  20. Jun 23, 2024
  21. May 14, 2024
Loading