Skip to content
Snippets Groups Projects
  1. Sep 07, 2024
  2. Sep 06, 2024
  3. Sep 02, 2024
    • Clayton Craft's avatar
      install: create_device_rootfs: install pmos-base-systemd first (MR 2383) · 36c86cd9
      Clayton Craft authored
      When building a systemd image, this patch installs pmos-base-systemd
      (and its dependencies) first before building the rest of the device
      chroot. This is a workaround for...
      
      The pmos-base-systemd package provides distro-wide systemd presets for
      services, and when it's added to the `install_packages` list then
      there's no guarantee that apk will install it *before* service packages
      execute `systemctl preset`. In other words: `preset` may be run before
      the distro presets are actually installed, and crushing expectations. By
      making sure pmos-base-systemd is installed in the chroot first, we can
      provide some guarantee that presets will be there when services are
      installed a bit later.
      Unverified
      36c86cd9
  4. Sep 01, 2024
  5. Aug 25, 2024
  6. Aug 21, 2024
  7. Aug 12, 2024
  8. Aug 11, 2024
  9. Jul 30, 2024
  10. Jul 29, 2024
  11. Jul 28, 2024
  12. Jul 23, 2024
  13. Jul 22, 2024
    • Oliver Smith's avatar
      Add FIXME comment about docs for mirrors.systemd (MR 2371) · f47115b6
      Oliver Smith authored and Caleb Connolly's avatar Caleb Connolly committed
      Unverified
      f47115b6
    • 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.
      Unverified
      ebfda16d
  14. Jul 21, 2024
  15. Jul 20, 2024
  16. Jul 19, 2024
  17. Jul 18, 2024
  18. Jul 17, 2024
    • Oliver Smith's avatar
      Fix "pmbootstrap config args /new/path" (MR 2374) · b14a872f
      Oliver Smith authored
      Fix writing config options that are stored as CSV-list. Without this
      patch:
      
      $ pmbootstrap config aports /tmp/pmaports
      [23:43:58] Config changed: aports='/tmp/pmaports'
      $ pmbootstrap config aports
      [PosixPath('/'), PosixPath('t'), PosixPath('m'), PosixPath('p'), PosixPath('/'), PosixPath('p'), PosixPath('m'), PosixPath('a'), PosixPath('p'), PosixPath('o'), PosixPath('r'), PosixPath('t'), PosixPath('s')]
      
      Storing strings as CSV list isn't great and we probably want to
      implement this more elegantly, see the related issue. But let's fix this
      first.
      
      Related: pmbootstrap issue 2412
      Unverified
      b14a872f
  19. Jul 16, 2024
  20. Jul 15, 2024
    • Oliver Smith's avatar
      docs/mirrors: new document (MR 2361) · 37244e1c
      Oliver Smith authored
      Unverified
      37244e1c
    • Oliver Smith's avatar
      docs: support markdown (MR 2361) · 89a3136f
      Oliver Smith authored
      Let's write all new documentation in markdown, and convert existing ones
      at some point. I think we are all much more familiar with markdown than
      with the rst format.
      Unverified
      89a3136f
    • Oliver Smith's avatar
      Support setting custom mirrors + disabling mirrors (MR 2361) · 591a7377
      Oliver Smith authored
      Allow setting _custom mirrors in the config:
      * alpine_custom
      * pmaports_custom
      * systemd_custom
      
      When these are set, they are added to /etc/apk/repositories before real
      repositories. This is used by bpo to build packages with a WIP
      repository enabled, in addition to the final repository.
      
      All mirrors can also be set to "none" to be disabled. This is important
      for bootstrapping from pure Alpine without any binary repository, and
      the bpo testsuite also uses this.
      
      I've discussed with Caleb whether to name it _wip instead of _custom,
      but the latter is more generic and people may also use this for other
      use cases than the bpo wip repository thing.
      Unverified
      591a7377
    • Oliver Smith's avatar
    • Oliver Smith's avatar
      pmb.config: remove config file migration logic (MR 2361) · 7c3af8c3
      Oliver Smith authored
      We have decided to let the user generate a pmbootstrap_v3.cfg file
      instead of attempting to automatically migrate the file. This way we
      don't need to worry about potential migration bugs and users can also
      temporarily go back to v2 to compare behavior with v3 without problems.
      
      Remove migration logic related to mirror_alpine and
      mirrors_postmarketos, before I add support for using multiple
      repositories with these again (as needed for bpo). This reduces
      complexity and removes a note about "multiple mirrors are not supported"
      that won't be valid anymore.
      Unverified
      7c3af8c3
    • Oliver Smith's avatar
      init: mirror selection: set systemd mirror too (MR 2361) · e7af3c49
      Oliver Smith authored
      When selecting a different mirror in "pmbootstrap init", then select the
      systemd mirror as well. It will always be the normal postmarketOS mirror
      plus some path appended. Currently it is the path for the staging
      repository, this will change when the systemd changes are merged to
      pmaports master and bpo can build it. I'll adjust this before we release
      pmbootstrap v3.
      
      I have considered changing the code so that we don't store a separate
      systemd mirror in the config. But I think it's useful to be able to
      point to systemd mirrors with different paths for debugging purposes,
      and also it would make the logic more complex once we re-introduce
      support for multiple mirrors of the same type for bpo. So I've
      intentionally kept that part as-is.
      Unverified
      e7af3c49
    • Oliver Smith's avatar
Loading