[Bug 966480] Re: The prompt asking for media removal is not shown at the end of the installation

Chris Bainbridge chris.bainbridge at gmail.com
Sun Feb 1 23:54:40 UTC 2015


Confirmed in Ubuntu 14.04.1. There seems to be caused by a race
condition or undefined behaviour.

"/etc/rc0.d/casper stop" does "plymouth --ping" to test whether plymouth
is running, then does "plymouth message" to print the message to the
screen , then "plymouth watch-keystroke" to read the enter key press.
But at this point, "plymouthd --mode=shutdown" is already running. This
results in a hang with the following processes running:

root      3527  0.0  0.0   4444   652 ?        Ss   21:28   0:00 /bin/sh -e /proc/self/fd/9
root      3625  0.0  0.0  18072   368 ?        S    21:28   0:00 @sbin/plymouthd --mode=shutdown
root      3629  0.0  0.0   4444   804 ?        S    21:28   0:00 /bin/sh /etc/init.d/rc 0
root      3863  0.1  0.0   4444   804 ?        S    21:28   0:00 /bin/sh -x /etc/rc0.d/S89casper stop
root      4089  0.0  0.0   4444   388 ?        S    21:28   0:00 /bin/sh -x /etc/rc0.d/S89casper stop
root      4096  0.0  0.0  12808   448 ?        S    21:28   0:00 plymouth watch-keystroke

There could be a race condition between the "plymouth --ping" test and
the action, or between plymouthd being shutdown and the casper script
running plymouth, or it could be that the plymouth commands just don't
work when plymouthd is in shutdown mode. Either way, this can be fixed
by removing the use of plymouth from casper and reverting to the
alternative actions which read and write /dev/console. Patch attached.

** Patch added: "casper_rm_plymouth.patch"
   https://bugs.launchpad.net/ubuntu/+source/casper/+bug/966480/+attachment/4310060/+files/casper_rm_plymouth.patch

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

Title:
  The prompt asking for media removal is not shown at the end of the
  installation

Status in casper package in Ubuntu:
  Triaged
Status in casper source package in Precise:
  Triaged

Bug description:
  *** Edit ***
  This bug affects Ubuntu and other flavours as well and yes, it is alive and doing well with Saucy as well.

  See:
  https://bugs.launchpad.net/ubuntu/+source/casper/+bug/966480/comments/22

  *** End of Edit ***

  At the end of the installation, just after clicking on "Reboot Now" to
  restart the computer, the graphical environment is shut down and the
  TERM signal is sent, asking all processes to terminate. However, the
  prompt asking the user to remove the CD and press Enter is not shown
  (the CD is ejected, then the system hangs).

  Tested on today's (27 March 2012) KUbuntu Precise daily ISO in a VirtualBox VM (using VirtualBox 4.1.8, 1 GiB of RAM, 16 GiB HD, 4 CPUs, EFI disabled).
  ---
  ApportVersion: 1.95-0ubuntu1
  Architecture: amd64
  DistroRelease: Ubuntu 12.04
  InstallCmdLine: file=/cdrom/preseed/kubuntu.seed boot=casper maybe-ubiquity initrd=/casper/initrd.lz quiet splash -- debian-installer/language=it keyboard-configuration/layoutcode?=it
  InstallationMedia: Kubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120327)
  Package: ubiquity (not installed)
  ProcEnviron:
   LANGUAGE=
   TERM=xterm
   LANG=it_IT.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 3.2.0-20.32-generic 3.2.12
  Tags:  precise ubiquity-2.10.3
  Uname: Linux 3.2.0-20-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

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



More information about the foundations-bugs mailing list