Skip to content
Snippets Groups Projects
  1. Mar 09, 2025
  2. Mar 05, 2025
  3. Feb 21, 2025
  4. Jan 14, 2025
  5. Jan 02, 2025
  6. Dec 12, 2024
  7. Dec 05, 2024
  8. Dec 01, 2024
    • Oliver Smith's avatar
      main/postmarketos-base: pmb_recommends: add doas-sudo-shim (MR 5867) · d0567293
      Oliver Smith authored
      Fix the following error during "pmbootstrap install":
      
        ERROR: unable to select packages:
          sudo-1.9.16_p1-r1:
            conflicts: doas-sudo-shim-0.1.1-r1[cmd:sudo=1.9.16_p1-r1]
            breaks: doas-sudo-shim-0.1.1-r1[!sudo]
            satisfies: postmarketos-base-38-r0[sudo-virt]
                       postmarketos-base-nofde-38-r0[sudo-virt]
          doas-sudo-shim-0.1.1-r1:
            conflicts: sudo-1.9.16_p1-r1[cmd:sudo=0.1.1-r1]
            satisfies: postmarketos-base-doas-38-r0[doas-sudo-shim]
                       postmarketos-base-38-r0[sudo-virt]
                       postmarketos-base-nofde-38-r0[sudo-virt]
      
      How the error gets triggered:
      * postmarketos-base depends on sudo-virt. During "pmbootstrap install",
        pmbootstrap has to resolve this to a sudo implementation (sudo, doas,
        ...).
      * pmbootstrap does this by looking at the packages that get installed
        at the same time. Before this patch we did not install doas-sudo-shim
        directly through _pmb_recommends, only indirectly through a
        postmarketos-base-doas subpackage that pulls doas-sudo-shim in via
        install_if.
      * pmbootstrap cannot look at install_if as it resolves dependencies,
        so it has to pick one and goes for "sudo".
      * pmbootstrap tells apk to install a list of packages including "sudo",
        and because apk also resolves install_if correctly, the solver fails
        at the conflict between "doas-sudo-shim" and "sudo". (This only fails
        since apk-tools-static 2.14.6-r0, apparently beforehand apk just
        installed "doas-sudo-shim" in this scenario.)
      
      Teaching pmbootstrap to look at install_if while resolving packages
      would be one way to fix this. But it would be a lot of effort, not
      feasible to quickly stop the problem at hand that breaks "pmbootstrap
      install" for all edge installs. IMHO it is not worth implementing this
      at all in pmbootstrap, as it is just supposed to do some more or less
      basic package resolving until apk takes over and does it properly.
      
      Put doas-sudo-shim in _pmb_recommends so pmbootstrap knows that this is
      the sudo implementation we want without looking at install_if.
      
      Remove the now obsolete postmarketos-base-doas subpackage. This will
      lead to doas-sudo-shim getting removed for old installations on upgrade,
      but it can easily be installed back (doas add doas-sudo-shim). I'll make
      an edge post about it and put it in the v24.12 release notes. If we
      don't remove it here, we would need to keep this legacy subpackage
      around forever and I'd rather avoid that to reduce maintenance effort.
      
      Another alternative to this was removing sudo-virt from depends="". But
      that would lead to sudo getting uninstalled for users upgrading from
      old releases from before we had doas in pmb_recommends, so I've decided
      against it.
      
      Fixes: pmaports issue 3340
      d0567293
  9. Nov 12, 2024
  10. Nov 06, 2024
  11. Nov 04, 2024
  12. Oct 07, 2024
  13. Oct 04, 2024
  14. Sep 29, 2024
    • Pablo Correa Gomez's avatar
      main/postmarketos-base: move udev rules under /usr (MR 5662) · aa5b708a
      Pablo Correa Gomez authored and Clayton Craft's avatar Clayton Craft committed
      aa5b708a
    • Jakko's avatar
      main/postmarketos-base-mesa: add mesa-gles (MR 5654) · 469db05e
      Jakko authored and Pablo Correa Gomez's avatar Pablo Correa Gomez committed
      Since mesa upgrade from 24.0.9 to 24.1.2 PulseAudio Volume Control
      "pavucontrol" needs "mesa-gles" to start on some devices. There is no
      direct dependency, however. Instead it's "libepoxy", a Direct Rendering
      Manager runtime library, that calls the necessary mesa library.
      
      Other than user interface MATE, where e.g. "mate-session-manager" draws
      in "mesa-gles", and other than mesa packages like "mesa-gl" that gets drawn
      in by e.g. "xorg-server", there is no direct connection between Xfce4 and
      "mesa-gles".
      
      Adding package "mesa-gles" to "postmarketos-base-mesa" is a straightforward
      fix for this issue.
      
      Fixes #3042
      [ci:skip-build]: already built successfully in CI
      469db05e
  15. Sep 23, 2024
  16. Sep 11, 2024
  17. Sep 06, 2024
  18. Jul 24, 2024
  19. Jul 23, 2024
  20. Jun 18, 2024
  21. May 21, 2024
  22. May 16, 2024
  23. Mar 05, 2024
  24. Dec 25, 2023
  25. Dec 21, 2023
    • Pablo Correa Gomez's avatar
      main/postmarketos-base: add service to mount /tmp as tmpfs (MR 4588) · 1229616e
      Pablo Correa Gomez authored
      And enable it by default, since it's a sensible thing to do.
      
      This makes the bootmisc config file unnecessary, since it was only
      used before to make sure that /tmp was wiped on every boot.
      
      Mounting /tmp as a tmpfs will be skipped if:
      * The user or maintainer configured deviceinfo_tmp_as_tmpfs_size=0
      * If they didn't but the device has less than 2GB of RAM
      * And in any case, if it is already mounted, to respect users that
        might have it in /etc/fstab
      
      The options for mounting /tmp has been copied from my local debian
      tmp.mount service. The only real difference is that we are mounting it
      after /etc/fstab, and they do so before.
      
      Fixes #2233
      1229616e
  26. Dec 15, 2023
  27. Dec 09, 2023
  28. Dec 07, 2023
    • Clayton Craft's avatar
      main/postmarketos-base: enable zram-init service on upgrade (MR 4598) · dbd23fb1
      Clayton Craft authored and Oliver Smith's avatar Oliver Smith committed
      The post-upgrade script in pmos-base isn't symlinked to the post-install
      script, so zram-init wasn't being enabled on systems that upgraded to
      the pmos-base version that intro'd this feature. I think this should
      have been enabled by default on upgraded systems. There's a deviceinfo
      toggle for it, so users who won't want to use this can set that var to
      disable it, in that case having the service enabled is basically a
      no-op.
      
      Update by Oliver: add a comment to mention the deviceinfo variable
      
      [ci:skip-build]: already built successfully in CI
      dbd23fb1
  29. Nov 02, 2023
  30. Sep 25, 2023
  31. Aug 07, 2023
  32. Jun 03, 2023
  33. Apr 02, 2023
  34. Mar 09, 2023
    • Clayton Craft's avatar
      postmarketos-base: depend on postmarketos-initramfs (MR 3895) · eed47609
      Clayton Craft authored and Pablo Correa Gomez's avatar Pablo Correa Gomez committed
      Changes the dependency from pmos-mkinitfs to pmos-initramfs, so now the
      dependency chain for boot config packages is:
      
          base -> postmarketos-initramfs -> postmarketos-mkinitfs -> boot-deploy
      
      Sorting dependencies this way makes sense because "base" just needs an
      initramfs, it doesn't care about the implementation (that currently uses
      "postmarketos-mkinitfs.")
      
      [ci:ignore-count]
      [ci:skip-build] already successfully built in CI
      eed47609
  35. Feb 18, 2023
  36. Feb 08, 2023
  37. Jan 11, 2023
    • Clayton Craft's avatar
      postmarketos-base: enable using zram swap by default (MR 3752) · bca632d4
      Clayton Craft authored and Newbyte's avatar Newbyte committed
      This installs zram-init and sets it to start on boot for all
      devices/UIs. The included conf.d/zram-init also allows diabling using
      zram swap or overriding the size by using a deviceinfo var.
      
      I did an analysis of the pmos base install size with the 'none' UI
      selected, after depending on zram-init, and the following new package is
      installed:
              zram-init-11.1-r1 installed size: 40 KiB
      
      These packages are dependencies of zram-init, however they are already
      installed in the base image (with 'none' UI) so they are not counted
      above:
              util-linux-misc-2.38.1-r0 installed size: 6816 KiB
              e2fsprogs-extra-1.46.5-r4 installed size: 1324 KiB
      
      So this seems like a very small price to pay for the benefit of not
      making the logic/implementation more complicated than this.
      
           * Starting busybox syslog ... [ ok ]
          ssh-keygen: generating new host keys: RSA ECDSA ED25519
           * Starting sshd ... [ ok ]
          zram swap: activating with size: 243 MB
           * Loading zram module...
           [ ok ]
           * Swap->zram0
           [ ok ]
           * Starting local ... [ ok ]
      
      This change introduces one new deviceinfo variable:
      deviceinfo_zram_swap_pct: percentage of RAM to use for zram swap
      
      Default percentages if the second var is unset are explained in the
      zram-init file this commit adds. A value of 0 disables zram swap.
      
      fixes #1133
      bca632d4
Loading