[Bug 1625023] Re: switch to systemd on ubuntu phone xenial

Vicamo Yang 1625023 at bugs.launchpad.net
Tue Oct 4 07:55:22 UTC 2016


** Description changed:

  Snappy heavily rely on systemd system session and xenial has systemd by
  default.
  
  [steps to construct systemd-based avila]
  
  1. flash images built from xenial branch [1]. This should gives a
  working xenial+upstart avila.
  
  2. Install systemd-sysv rather than upstart-sysv (Bug 1625023)
  2.1. rebuild latest ubuntu-touch package from source [2] with patch [3] applied.
  2.2. download latest systemd-sysv package [4].
  2.3. dpkg -i ubuntu-touch_*.deb systemd-sysv_*.deb
  
  3. Install android-tools-adbd for systemd (Bug 1627613)
  3.1. Install prebuilt package [5] or recompile it from source [6] with patch [7] applied.
  3.2. Install the package from Terminal app because it will break adb connection and interrupt the installation process leaving a very bad state of the package.
  
  4. Modify lxc-android-config package systemd service file by hand as the
  merge proposal [8][9][10][11] does. (Bug 1625445, bug 1625916, bug
  1626012, bug 1627613).
  
  5. Recompile upstart with merge proposal [12] include and install at
  least the built binary /sbin/upstart-local-bridge.
  
  6. Reboot.
  
  [1]: https://code.launchpad.net/~avila-private-team/avila-private/+git/platform_manifest/+ref/xenial
  [2]: http://ppa.launchpad.net/ci-train-ppa-service/stable-phone-overlay/ubuntu/pool/main/u/ubuntu-touch-meta/
  [3]: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1625023/+attachment/4744047/+files/0001-depends-on-systemd-sysv-instead.patch
  [4]: http://ppa.launchpad.net/ci-train-ppa-service/stable-phone-overlay/ubuntu/pool/main/s/systemd/
  [5]: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1627613/+attachment/4751442/+files/android-tools-adbd_5.1.1r36+git20160322-0ubuntu3.1~overlay1_arm64.deb
  [6]: http://ppa.launchpad.net/ci-train-ppa-service/stable-phone-overlay/ubuntu/pool/main/a/android-tools/
  [7]: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1627613/+attachment/4750792/+files/0001-install-systemd-service-files.patch
  [8]: https://code.launchpad.net/~vicamo/lxc-android-config/fix-systemd-service-startup/+merge/306435
  [9]: https://code.launchpad.net/~vicamo/lxc-android-config/add-upstart-local-bridge/+merge/307144
  [10]: https://code.launchpad.net/~vicamo/lxc-android-config/systemd-writable-paths/+merge/306184
  [11]: https://code.launchpad.net/~vicamo/lxc-android-config/disable-systemd-alsa-restore/+merge/306587
  [12]: https://code.launchpad.net/~vicamo/upstart/xenial-escape-systemd-strings/+merge/307140
  
  [All Pending MPs]
  
  1. ubuntu-touch-meta:
  * https://bugs.launchpad.net/canonical-devices-system-image/+bug/1625023/+attachment/4744047/+files/0001-depends-on-systemd-sysv-instead.patch
  2. lxc-android-config:
  * https://code.launchpad.net/~vicamo/lxc-android-config/fix-systemd-service-startup/+merge/306435
  * https://code.launchpad.net/~vicamo/lxc-android-config/add-upstart-local-bridge/+merge/307144
  * https://code.launchpad.net/~vicamo/lxc-android-config/systemd-writable-paths/+merge/306184
  * https://code.launchpad.net/~vicamo/lxc-android-config/disable-systemd-alsa-restore/+merge/306587
  3. upstart:
  * https://code.launchpad.net/~vicamo/upstart/xenial-escape-systemd-strings/+merge/307140
  
  [Prebuilt rootfs tarball]
  
- https://private-fileshare.canonical.com/~vicamo/avila/images/systemd/ubuntu/20161004/rootfs-systemd.tar.bz2
- md5sum: dd185cf1c7aada1623e57319ae139c72
+ https://private-fileshare.canonical.com/~vicamo/avila/images/systemd/ubuntu/20161004/rootfs-systemd.tar.bz2 (updated 15:55 +0800)
+ md5sum: 220c811b8ad7cb978d6b695679ad21fc
  build_number: 49
  version_detail: ubuntu=20161001,device=20160919.0,custom=20161001,version=49

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1625023

Title:
  switch to systemd on ubuntu phone xenial

Status in Canonical System Image:
  Confirmed
Status in android-tools package in Ubuntu:
  Confirmed
Status in lxc-android-config package in Ubuntu:
  Confirmed
Status in ubuntu-touch-meta package in Ubuntu:
  Confirmed

Bug description:
  Snappy heavily rely on systemd system session and xenial has systemd
  by default.

  [steps to construct systemd-based avila]

  1. flash images built from xenial branch [1]. This should gives a
  working xenial+upstart avila.

  2. Install systemd-sysv rather than upstart-sysv (Bug 1625023)
  2.1. rebuild latest ubuntu-touch package from source [2] with patch [3] applied.
  2.2. download latest systemd-sysv package [4].
  2.3. dpkg -i ubuntu-touch_*.deb systemd-sysv_*.deb

  3. Install android-tools-adbd for systemd (Bug 1627613)
  3.1. Install prebuilt package [5] or recompile it from source [6] with patch [7] applied.
  3.2. Install the package from Terminal app because it will break adb connection and interrupt the installation process leaving a very bad state of the package.

  4. Modify lxc-android-config package systemd service file by hand as
  the merge proposal [8][9][10][11] does. (Bug 1625445, bug 1625916, bug
  1626012, bug 1627613).

  5. Recompile upstart with merge proposal [12] include and install at
  least the built binary /sbin/upstart-local-bridge.

  6. Reboot.

  [1]: https://code.launchpad.net/~avila-private-team/avila-private/+git/platform_manifest/+ref/xenial
  [2]: http://ppa.launchpad.net/ci-train-ppa-service/stable-phone-overlay/ubuntu/pool/main/u/ubuntu-touch-meta/
  [3]: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1625023/+attachment/4744047/+files/0001-depends-on-systemd-sysv-instead.patch
  [4]: http://ppa.launchpad.net/ci-train-ppa-service/stable-phone-overlay/ubuntu/pool/main/s/systemd/
  [5]: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1627613/+attachment/4751442/+files/android-tools-adbd_5.1.1r36+git20160322-0ubuntu3.1~overlay1_arm64.deb
  [6]: http://ppa.launchpad.net/ci-train-ppa-service/stable-phone-overlay/ubuntu/pool/main/a/android-tools/
  [7]: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1627613/+attachment/4750792/+files/0001-install-systemd-service-files.patch
  [8]: https://code.launchpad.net/~vicamo/lxc-android-config/fix-systemd-service-startup/+merge/306435
  [9]: https://code.launchpad.net/~vicamo/lxc-android-config/add-upstart-local-bridge/+merge/307144
  [10]: https://code.launchpad.net/~vicamo/lxc-android-config/systemd-writable-paths/+merge/306184
  [11]: https://code.launchpad.net/~vicamo/lxc-android-config/disable-systemd-alsa-restore/+merge/306587
  [12]: https://code.launchpad.net/~vicamo/upstart/xenial-escape-systemd-strings/+merge/307140

  [All Pending MPs]

  1. ubuntu-touch-meta:
  * https://bugs.launchpad.net/canonical-devices-system-image/+bug/1625023/+attachment/4744047/+files/0001-depends-on-systemd-sysv-instead.patch
  2. lxc-android-config:
  * https://code.launchpad.net/~vicamo/lxc-android-config/fix-systemd-service-startup/+merge/306435
  * https://code.launchpad.net/~vicamo/lxc-android-config/add-upstart-local-bridge/+merge/307144
  * https://code.launchpad.net/~vicamo/lxc-android-config/systemd-writable-paths/+merge/306184
  * https://code.launchpad.net/~vicamo/lxc-android-config/disable-systemd-alsa-restore/+merge/306587
  3. upstart:
  * https://code.launchpad.net/~vicamo/upstart/xenial-escape-systemd-strings/+merge/307140

  [Prebuilt rootfs tarball]

  https://private-fileshare.canonical.com/~vicamo/avila/images/systemd/ubuntu/20161004/rootfs-systemd.tar.bz2 (updated 15:55 +0800)
  md5sum: 220c811b8ad7cb978d6b695679ad21fc
  build_number: 49
  version_detail: ubuntu=20161001,device=20160919.0,custom=20161001,version=49

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1625023/+subscriptions



More information about the Ubuntu-sponsors mailing list