Merge lp:~jamesodhunt/ubuntu-cdimage/ubuntu-core-no-livefs-download into lp:ubuntu-cdimage

Proposed by James Hunt
Status: Rejected
Rejected by: Steve Langasek
Proposed branch: lp:~jamesodhunt/ubuntu-cdimage/ubuntu-core-no-livefs-download
Merge into: lp:ubuntu-cdimage
Diff against target: 13 lines (+2/-1)
1 file modified
lib/cdimage/build.py (+2/-1)
To merge this branch: bzr merge lp:~jamesodhunt/ubuntu-cdimage/ubuntu-core-no-livefs-download
Reviewer Review Type Date Requested Status
Colin Watson (community) Disapprove
Review via email: mp+228767@code.launchpad.net

Description of the change

This change allows an image build initiated as follows to complete successfully:

$ UBUNTU_FORCE_LOCAL=1 DEBUG=1 SUBPROJECT=system-image for-project ubuntu-core cron.daily-preinstalled --live

Although this is a pragmatic fix, I'm not 100% convinced this is the safest one since we appear to be overloading the term 'ubuntu-core' in various places. This is in fact what led to the bug this MP fixes I believe so maybe we need a totally separate name for the "new" ubuntu-core image to minimise confusion?

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) wrote :

This looks very wrong, I'm afraid; build_livecd_base is a critical part of the build for this image type, and a preinstalled image must fetch the image from somewhere. To support local building, you should instead modify download_live_filesystems to "download" from the local system.

Do you still need to pursue the UBUNTU_FORCE_LOCAL=1 path now that we have builds up and running in Launchpad? It was only ever a short-term approach to get you bootstrapped. While I'd like to have a nicely assembled local build path in cdimage, you shouldn't allow it to be a distraction from the goal of getting this image working.

review: Disapprove

Unmerged revisions

1445. By James Hunt

* Don't download live filesystem for ubuntu-core daily-preinstalled
  image.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/cdimage/build.py'
2--- lib/cdimage/build.py 2014-07-29 08:47:34 +0000
3+++ lib/cdimage/build.py 2014-07-29 22:07:24 +0000
4@@ -663,7 +663,8 @@
5 if config["UBUNTU_DEFAULTS_LOCALE"]:
6 build_ubuntu_defaults_locale(config)
7 elif live_fs_only:
8- build_livecd_base(config)
9+ if config.image_type != "daily-preinstalled":
10+ build_livecd_base(config)
11 else:
12 if not config["CDIMAGE_PREINSTALLED"]:
13 log_marker("Germinating")

Subscribers

People subscribed via source and target branches