[Bug 1778936] Re: please re-add Support-system-image-read-only-etc.patch

Sergio Cazzolato 1778936 at bugs.launchpad.net
Wed Dec 5 18:05:25 UTC 2018


Finally I could verify the fix works well and fixes the issue.

We are building core18 image using the snap which has systemd from
proposed.

Steps to validate:

1. build core18 snap using proposed
  > git clone -b master https://git.launchpad.net/snap-core18
  > cd snap-core18
  > sed -i -e 's/current/pending/g' Makefile
  > sudo snapcraft
2. prepare test
  > git clone https://github.com/sergiocazzolato/snapd.git
  > git checkout tests-validate-lp-1778936
  > cd snapd
  > < copy the core18_18_amd64.snad to tests/lib/ directory >
3. run the tests
  > spread -debug google:ubuntu-core-18-64:tests/main/interfaces-hostname-control

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

Title:
  please re-add Support-system-image-read-only-etc.patch

Status in systemd package in Ubuntu:
  Fix Released
Status in systemd source package in Bionic:
  Fix Committed
Status in systemd source package in Cosmic:
  Fix Released

Bug description:
  [Impact]

   * core18 systems fail to update hostname
   * this happens due to /etc/hostname actually being a symlink to a file under /etc/writable/, adjust hostnamed to take that into account when trying to update /etc/hostname

  [Test Case]

   * run a core18 system, check that dhcp acquire hostname is correctly
  updated in /etc/writable/hostname

  [Regression Potential]

   * This is cherrypick of code that has gone missing since xenial.
   * There is no change of behaviour for the classic systems.
   * Currently, core18 systems simply fail to update hostname/machine-info files, thus the worst case is that they will still fail to do so.

  [Other Info]
   
   * original bug report

  The 16.04 version of systemd had a patch to support the read-only etc.
  For core18 we will also need this change because core18 is still not
  on a fully writable etc.

  I will attach a debdiff against the current bionic version of systemd.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1778936/+subscriptions



More information about the foundations-bugs mailing list