This is an automated reproducer in the form of an autopkgtest. You can
call it like this:

  adt-run --built-tree ./systemd-bootsmoke  --- qemu /srv/vm/adt-
pid1.img

This reboots the VM up to 20 times, and check for stuck jobs or non-
running polkit on each iteration. You can also test with modified
binaries by copying them into the testbed's /tmp/systemd-replace, like
this:

  adt-run --built-tree ./systemd-bootsmoke  --copy /tmp/systemd-
journald:/tmp/systemd-replace/systemd-journald  --- ....

With e. g. systemd-journald from 218 the test passes. Note that there is
sometimes some testbed timeout and other testbed setup failures, due to
various race conditions.

I added a few robustifications to autopkgtest 3.9.7 (just uploaded to
Debian sid, will sync into vivid this evening). You can of course also
just checkout latest autopkgtest git and call /checkout/dir/run-from-
checkout instead of "adt-run".

In principle this works with a standard adt-buildvm-ubuntu-cloud minimal
image (the test installs lightdm, network-manager, etc.), but I still
find it rather hard to reproduce there. I instead built a custom "adt-
pid1.img" which is a standard vivid desktop install with the following
modifications:

  - Prepare the VM for autopkgtest (enable serial console and provide
the root shell on ttyS1 mostly) by running /usr/share/autopkgtest/adt-
setup-vm in it as root once (you *need* autopkgtest 3.9.7 for this, or
grab it from git).

 - Install systemd-sysv

With such an image I usually get the hang after 2 or 3 reboots already,
so that the 20 iterations that the test does should be quite sufficient.

I'll add this test to the systemd package soon, but for now this is
standalone for easier hacking.

** Attachment added: "boot smoke autopkgtest"
   
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1423811/+attachment/4324637/+files/systemd-bootsmoke.tar

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

Title:
  219-1ubuntu1 regression: boot hangs, logind fails

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to