switch to systemd on ubuntu phone xenial

Bug #1625023 reported by You-Sheng Yang
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
Critical
You-Sheng Yang
android-tools (Ubuntu)
Fix Released
Undecided
Łukasz Zemczak
lxc-android-config (Ubuntu)
Fix Released
Undecided
Unassigned
ubuntu-touch-meta (Ubuntu)
Fix Released
Undecided
Łukasz Zemczak
upstart (Ubuntu)
Fix Released
Undecided
Unassigned

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. Following steps are based on rootfs rev 59.

2. Go to Settings::About page to enable developer mode.

[1]: https://code.launchpad.net/~avila-private-team/avila-private/+git/platform_manifest/+ref/xenial

[Prebuilt rootfs tarball]

https://private-fileshare.canonical.com/~vicamo/avila/images/systemd/ubuntu/20161011/rootfs-systemd_rev-56.tar.bz2
md5sum: 4fc880e60fcf66857fbbeff6ce58e025
build_number: 56
version_detail: ubuntu=20161011,device=20160919.0,custom=20161011,version=56

Tags: patch systemd
Changed in canonical-devices-system-image:
importance: Undecided → Critical
milestone: none → x1
status: New → Confirmed
assignee: nobody → Vicamo Yang (vicamo)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-touch-meta (Ubuntu):
status: New → Confirmed
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Prebuilt ubuntu-touch meta package that depends on systemd-sysv instead.

Revision history for this message
You-Sheng Yang (vicamo) wrote :

Append debian build version so that it doesn't confuse dpkg.

Revision history for this message
You-Sheng Yang (vicamo) wrote :

Differences between list of packages install upstart and/or systemd service files:

# diff -Nu /tmp/upstart-packages.list /tmp/systemd-packages.
--- /tmp/upstart-packages.list 2016-09-19 05:55:03.849426548 +0000
+++ /tmp/systemd-packages.list 2016-09-19 05:56:15.139426552 +0000
@@ -1,80 +1,40 @@
-account-polld
-address-book-service
-address-book-updater
+accountsservice
 alsa-utils
-android-tools-adbd
-apparmor
 apport
 apport-noui
-biometryd-bin
+apt
 bluetooth-touch
 bluez
-buteo-syncfw
 cgmanager
-cgroup-lite
-ciborium
 click
-console-setup
 console-setup-linux
 cron
 dbus
-gnome-keyring
-history-service
-hostname
 ifupdown
-indicator-bluetooth
-indicator-datetime
-indicator-display
-indicator-keyboard
-indicator-location
-indicator-messages
-indicator-network
-indicator-power
-indicator-session
-indicator-sound
-indicator-transfer
 keyboard-configuration
-kmod
-libertine-tools
-libunity-scopes1.0
 lightdm
 lxc1
 lxc-android-config
-media-hub
-mediascanner2.0
-mountall
-mtp-server
 network-manager
-nuntium
 ofono
-openssh-client
 openssh-server
-passwd
-pay-service
-procps
+openvpn
+packagekit
+plymouth
+policykit-1
+ppp
 repowerd
 resolvconf
-rfkill
+rsync
 rsyslog
-session-migration
-sync-monitor
-telephony-service
-tone-generator
-ubuntu-app-launch
-ubuntu-location-provider-here
-ubuntu-location-service-bin
-ubuntu-push-client
-ubuntu-touch-customization-hooks
+rtkit
+systemd
 ubuntu-touch-session
 udev
+udisks2
 ufw
-unity8
-unity-scope-click-departmentsdb
-upstart
-upstart-watchdog
+upower
 ureadahead
 urfkill
-url-dispatcher
-usensord
-util-linux
 whoopsie
+wpasupplicant

Revision history for this message
You-Sheng Yang (vicamo) wrote :

It seems there is no repository to land changes for ubuntu-touch-mate package, so here is the patch for manual landing.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "ubuntu-touch-meta.patch" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Prebuilt adbd package that installs systemd service and starts up at early boot stage.

tags: added: systemd
Changed in ubuntu-touch-meta (Ubuntu):
assignee: nobody → Łukasz Zemczak (sil2100)
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Kernel changes in https://code.launchpad.net/~vicamo/avila/+git/kernel-3.10/+merge/306307 , maybe we need another branch for xenial+systemd?

Revision history for this message
You-Sheng Yang (vicamo) wrote :
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Patch used to compile android-tools with systemd support. Note this is currently a dirty hack to enable adbd unconditionally at boot.

You-Sheng Yang (vicamo)
description: updated
You-Sheng Yang (vicamo)
description: updated
description: updated
description: updated
You-Sheng Yang (vicamo)
description: updated
You-Sheng Yang (vicamo)
description: updated
You-Sheng Yang (vicamo)
description: updated
Revision history for this message
You-Sheng Yang (vicamo) wrote :
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in android-tools (Ubuntu):
status: New → Confirmed
Changed in lxc-android-config (Ubuntu):
status: New → Confirmed
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Filed bug 1627613 to track adbd stuff separately.

description: updated
Revision history for this message
Bin Li (binli) wrote :

I tried to install the lxc-android-config, but looks there are some errors.

Preparing to unpack lxc-android-config_0.230+16.04.20160728-0ubuntu1_all.deb ...
Unpacking lxc-android-config (0.230+16.04.20160728-0ubuntu1) over (0.230+16.04.20160728-0ubuntu1) ...
dpkg: error processing archive lxc-android-config_0.230+16.04.20160728-0ubuntu1_all.deb (--install):
 unable to make backup link of './var/lib/lxc/android/pre-start.d/30-no-surface-flinger' before installing new version: Invalid cross-device link
dpkg-deb (subprocess): decompressing archive member: lzma write error: Broken pipe
dpkg-deb: error: subprocess <decompress> returned error exit status 2
Errors were encountered while processing:
 lxc-android-config_0.230+16.04.20160728-0ubuntu1_all.deb

You-Sheng Yang (vicamo)
description: updated
You-Sheng Yang (vicamo)
description: updated
Revision history for this message
You-Sheng Yang (vicamo) wrote :
You-Sheng Yang (vicamo)
description: updated
description: updated
You-Sheng Yang (vicamo)
description: updated
You-Sheng Yang (vicamo)
description: updated
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Reviewed most of the required merge requests, most of them approved out-of-the-box. The meta package changes will need to land last after everything else is in the xenial-overlay already. Will prepare a silo for the landing.

You-Sheng Yang (vicamo)
description: updated
description: updated
You-Sheng Yang (vicamo)
description: updated
You-Sheng Yang (vicamo)
description: updated
You-Sheng Yang (vicamo)
description: updated
You-Sheng Yang (vicamo)
description: updated
Changed in canonical-devices-system-image:
status: Confirmed → In Progress
Changed in lxc-android-config (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Moving upstart upstream task to Ubuntu(upstart), upstart-local-bridge is Ubuntu-only bridge, not present upstream.

Changed in upstart (Ubuntu):
status: New → Confirmed
affects: upstart → upstart (Ubuntu)
Changed in ubuntu-touch-meta (Ubuntu):
status: Confirmed → Fix Released
Changed in lxc-android-config (Ubuntu):
status: Fix Committed → Fix Released
Changed in android-tools (Ubuntu):
status: Confirmed → Fix Released
assignee: nobody → Łukasz Zemczak (sil2100)
You-Sheng Yang (vicamo)
description: updated
You-Sheng Yang (vicamo)
description: updated
You-Sheng Yang (vicamo)
description: updated
You-Sheng Yang (vicamo)
description: updated
You-Sheng Yang (vicamo)
description: updated
You-Sheng Yang (vicamo)
description: updated
Revision history for this message
You-Sheng Yang (vicamo) wrote :

There is no more work to do for systemd bring up.

For snappy bring up, bug 1632272 and bug 1633367 are still open/waiting for review.

Changed in upstart (Ubuntu):
status: New → Fix Released
Revision history for this message
Alex Tu (alextu) wrote :

hello snap works well on the latest build from xenial branch.
The prebuilt image could be found here:
http://people.canonical.com/~alextu/avila/xenial/image/m10_xenial.tar.xz
ubuntu tarball: build number 59

The steps I did:
1. flash images by flash tool[1] with "download only"
2. install snapd by apt-get
3. apply the changes of lp#1632272 and lp#1633367
4. then hello snap works
https://pastebin.canonical.com/167958/

You might need to mount root to rw in each step:
$ sudo mount -o remount,rw /

awesome!

Changed in canonical-devices-system-image:
status: In Progress → Fix Committed
Changed in canonical-devices-system-image:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.