init: systemd: fix always switching pmaports to edge

Fix that pmbootstrap doesn't recognize v25.06 with systemd enabled as valid channel and suggests switching to edge. This happens because pmb.config.pmaports.read_config() unconditionally prepends "systemd-" before the channel name if systemd is enabled, even though the init code doesn't expect this.

The result is when running 'yes "" | pmbootstrap init' (as we do in BPO and CI), pmbootstrap attempts to replace the correctly checked out v25.06 branch with edge:

Fix for:

  [20:36:37] Available (12):
  [20:36:37] * edge: Rolling release / Most devices / Occasional breakage: https://postmarketos.org/edge
  [20:36:37] * v25.06: Upcoming stable release (DO NOT USE)
  [20:36:37] * v24.12: Latest release / Recommended for best stability
  [20:36:37] Channel [edge]:
  [20:36:37] Currently checked out branch 'v25.06' of pmaports.git is on channel 'v25.06'.
  [20:36:37] Switching to branch 'master' on channel 'edge'...
  …
  ERROR: pmbootstrap switched to the wrong branch: master

Related: https://builds.sr.ht/~postmarketos/job/1497179#task-bpo_setup-23

Merge request reports

Loading
Loading