Merge lp:~morphis/phablet-tools/citrain-changes into lp:phablet-tools

Proposed by Simon Fels on 2015-09-15
Status: Merged
Approved by: Oliver Grawert on 2015-09-15
Approved revision: 343
Merged at revision: 342
Proposed branch: lp:~morphis/phablet-tools/citrain-changes
Merge into: lp:phablet-tools
Diff against target: 22 lines (+6/-1)
1 file modified
citrain (+6/-1)
To merge this branch: bzr merge lp:~morphis/phablet-tools/citrain-changes
Reviewer Review Type Date Requested Status
Oliver Grawert 2015-09-15 Approve on 2015-09-15
PS Jenkins bot continuous-integration Needs Fixing on 2015-09-15
Review via email: mp+271094@code.launchpad.net

Commit Message

citrain: Do not require a writable image for silo upgrades and don't restart service while upgrading their packages as this is done on the reboot we perform anyway.

Description of the Change

This fixes some important things:

 * don't force a writable-image but use a mount -o remount instead to come closer to a production environment when testing silos where rootfs is not writable.
 * don't restart any services when upgrading packages. This will just not work for some packages and we do a full device reboot anyway once we're done installing a silo

To post a comment you must log in.
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:342
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https://code.launchpad.net/~morphis/phablet-tools/citrain-changes/+merge/271094/+edit-commit-message

http://jenkins.qa.ubuntu.com/job/phablet-tools-ci/445/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/phablet-tools-vivid-amd64-ci/22
    SUCCESS: http://jenkins.qa.ubuntu.com/job/phablet-tools-vivid-armhf-ci/22
    SUCCESS: http://jenkins.qa.ubuntu.com/job/phablet-tools-vivid-i386-ci/22

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/phablet-tools-ci/445/rebuild

review: Needs Fixing (continuous-integration)
343. By Simon Fels on 2015-09-15

Don't add --force-yes

Oliver Grawert (ogra) wrote :

looks good

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'citrain'
2--- citrain 2015-05-07 15:24:45 +0000
3+++ citrain 2015-09-15 12:02:18 +0000
4@@ -92,12 +92,17 @@
5 DISTRO="ubuntu"
6 fi
7 fi
8- phablet-config writable-image -r $PASSWORD --ppa $PPA/$DISTRO/$SILO
9 adb shell "echo -e '#\x21/bin/sh\necho $PASSWORD' >/tmp/askpass.sh"
10 adb shell chmod +x /tmp/askpass.sh
11+ adb shell SUDO_ASKPASS=/tmp/askpass.sh sudo -A mount -o remount,rw /
12+ adb shell SUDO_ASKPASS=/tmp/askpass.sh sudo -A add-apt-repository -y $PPA/$DISTRO/$SILO
13+ adb shell cp /usr/sbin/policy-rc.d /tmp/policy-rc.d
14+ adb shell "echo 'exit 101' | SUDO_ASKPASS=/tmp/askpass.sh sudo -A tee /usr/sbin/policy-rc.d"
15+ adb shell SUDO_ASKPASS=/tmp/askpass.sh sudo -A chmod +x /usr/sbin/policy-rc.d
16 adb shell "echo -e 'Package: *\nPin: release o=LP-PPA-ci-train-ppa-service-$SILO\nPin-Priority: 1100' | SUDO_ASKPASS=/tmp/askpass.sh sudo -A tee /etc/apt/preferences.d/silo.pref"
17 adb shell SUDO_ASKPASS=/tmp/askpass.sh sudo -A apt-get -o Dir::Etc::SourceList=/dev/null update
18 adb shell SUDO_ASKPASS=/tmp/askpass.sh sudo -A apt-get dist-upgrade --yes
19+ adb shell SUDO_ASKPASS=/tmp/askpass.sh sudo -A mv /tmp/policy-rc.d /usr/sbin/policy-rc.d
20 adb shell rm -f /tmp/askpass.sh
21 adb reboot
22 ;;

Subscribers

People subscribed via source and target branches