Public bug reported:

[ Impact ]

 * This bug affects buildd images. Specifically it affects buildd image builds 
which have an update in the updates pocket for systemd
 * During the buildd image build process, the following steps take place:
    * We start of with an empty `/etc/machine-id`
    * The 52-linux-virtual-image.binary hook runs `apt-get dist-upgrade`
    * If that upgrades `systemd`, it writes a random ID to `/etc/machine-id`


[ Test Plan ]

Reproducing the bug
 * Build a buildd image which has a update for systemd released in the updates 
pocket (Resolute and before).
 * Check for contents on the file `/etc/machine-id`
 * In the faulty image, this file should have some random value
 * In the patched image, this file should be empty/truncated


[ Where problems could occur ]

 * I believe *Livepatch* uses the machine-id. machine-id is meant to be
unique per machine but due to this bug buildd images for a given serial
had the same machine-id. Unsure how this will affect *Livepatch* if it
does use `/etc/machine-id`


[ Other Info ]

 * This has not affected the base and mininal images.
    * I believe this is because the `dist-upgrade` in 
52-linux-virtual-image.binary hook doesn't run for base and minimal images
 * We caught this bug in CPC's cloud-test-framework.
    * When we previously noticed this bug we didn't have a good timeline for 
how this bug showed up. But for resolute, this bug started showing up recently 
(because systemd got a new update through the updates pocket) and we were able 
to trace it down better.

** Affects: livecd-rootfs (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2175078

Title:
  machine-id is not removed from some buildd images

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/2175078/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to