Jump to content

Systemd: Difference between revisions

From postmarketOS Wiki
No edit summary
No edit summary
Line 1: Line 1:
systemd is being added to postmarketOS, as announced [https://postmarketos.org/blog/2024/03/05/adding-systemd/ in this blog post]. Find current progress at {{issue|2632|pmaports}}.
systemd is being added to postmarketOS (in addition to OpenRC), as announced [https://postmarketos.org/blog/2024/03/05/adding-systemd/ in this blog post].
 
== How to build your own systemd-based postmarketOS images ==
{{note|The steps here will change until it is fully integrated! See {{issue|2632|pmaports}} for details.}}
 
=== Configure pmbootstrap for systemd ===
 
* [[Pmbootstrap#From_git|Clone pmbootstrap from git]]
* Go to your local [[pmaports]] clone, do git fetch and git checkout the <code>master_staging_systemd</code> branch
* Run <code>pmbootstrap init</code>, select systemd and select your device
* Configure the systemd staging repository as mirror:
 
<source lang="shell-session">
$ pmbootstrap config mirrors_postmarketos "http://mirror.postmarketos.org/postmarketos/staging/systemd/"
</source>
 
* (Run <code>pmbootstrap config systemd always</code> if your preferred UI package doesn't have the pmb:systemd option set yet)
* (If the staging repository didn't bootstrap your device's architecture yet, run <code>pmbootstrap repo_bootstrap systemd</code>. See status at [https://build.postmarketos.org/ build.postmarketos.org]. <code>pmbootstrap install</code> will tell you that this needs to be done, if necessary.)
 
* Run <code>pmbootstrap install</code>
 
=== Undo configuration for systemd ===
 
* Checkout <code>master</code> again in pmaports
* Run <code>pmbootstrap config systemd default</code>
* Reset the mirror to the default (or select your preferred one in <code>pmbootstrap init</code>):
 
<source lang="shell-session">
$ pmbootstrap config mirrors_postmarketos http://mirror.postmarketos.org/postmarketos/
</source>

Revision as of 21:20, 3 April 2024

systemd is being added to postmarketOS (in addition to OpenRC), as announced in this blog post.

How to build your own systemd-based postmarketOS images

Note The steps here will change until it is fully integrated! See pmaports#2632 for details.

Configure pmbootstrap for systemd

  • Clone pmbootstrap from git
  • Go to your local pmaports clone, do git fetch and git checkout the master_staging_systemd branch
  • Run pmbootstrap init, select systemd and select your device
  • Configure the systemd staging repository as mirror:
$ pmbootstrap config mirrors_postmarketos "http://mirror.postmarketos.org/postmarketos/staging/systemd/"
  • (Run pmbootstrap config systemd always if your preferred UI package doesn't have the pmb:systemd option set yet)
  • (If the staging repository didn't bootstrap your device's architecture yet, run pmbootstrap repo_bootstrap systemd. See status at build.postmarketos.org. pmbootstrap install will tell you that this needs to be done, if necessary.)
  • Run pmbootstrap install

Undo configuration for systemd

  • Checkout master again in pmaports
  • Run pmbootstrap config systemd default
  • Reset the mirror to the default (or select your preferred one in pmbootstrap init):
$ pmbootstrap config mirrors_postmarketos http://mirror.postmarketos.org/postmarketos/