Fix apply upgrade
Bug #1436753 reported by
Federico Gimenez
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ota-tests |
Fix Committed
|
High
|
Federico Gimenez |
Bug Description
After downloading the upgrade and rebooting, the system seems to enter recovery but the upgrade is not applied. Log attached
Related branches
lp:~canonical-platform-qa/ubuntu-ota-tests/apply-dbus-upgrade
- Brendan Donegan (community): Approve
- PS Jenkins bot: Approve (continuous-integration)
- Christopher Lee (community): Approve
- Barry Warsaw (community): Approve
-
Diff: 150 lines (+47/-24)6 files modifiedREADME.rst (+1/-1)
adb-reboot-to-recovery (+8/-1)
debian/tests/control (+9/-4)
debian/tests/ota-dbus-upgrade (+0/-12)
ubuntu_ota_tests/command_line.py (+27/-2)
ubuntu_ota_tests/tests/test_basic_upgrade.py (+2/-4)
Changed in ubuntu-ota-tests: | |
assignee: | nobody → Federico Gimenez (fgimenez) |
To post a comment you must log in.
Executing the test with this command:
$ adt-run -B --unbuilt-tree=. --setup-commands 'mount -o remount,rw /' --setup-commands 'apt-add-repository -y ppa:barry/ systemimage' --setup-commands 'apt-get --no-list-cleanup update -o Dir::Etc: :SourceList= /dev/null' --setup-commands 'apt-get install -y -q system-image-cli system-image-common system-image-dbus' --setup-commands 'if [ ! -d "/etc/system- image/config. d" ]; then mkdir -p /etc/system- image/config. d && cd /etc/system-image && ln -sf ../client.ini config. d/00_default. ini && ln -sf ../channel.ini config. d/01_channel. ini; fi' --setup-commands 'sync; sleep 2; mount -o remount,ro /' --output /tmp/ota --- ssh -s ./adb-reboot- to-recovery
Fixes the issue and the upgrade is applied correctly. The difference is that, instead of copying the system-image config files from /etc/system-image to /etc/system- image/config. d, that command makes symbolic links from the files in /etc/system- image/config. d to the files in /etc/system-image.
It seems that si requires the files at config /etc/system- image/config. d (or in aa custom directory passed by -C) but when the upgrade is applied it modifies the old config files, the ones at /etc/system-image, and the new version installed is not being reported properly.