Public bug reported:

Binary package hint: upstart

I set up a new server today that would only boot into single user mode.
I tracked the problem to this line is /etc/event.d/rc-default:

        if grep -q -w -- "-s\|single\|S" /proc/cmdline; then

The machine's hostname contained a -s.  LVM seems to default to using
the hostname as part of the volume names.  Since there was a -s in the
volume name, it perpetually started in single user mode.

I got around the problem by temporarily removing the -s from the regex.

I am aware of 'single,' and I am aware of the S (because you can
normally supply any runlevel on the command line), but I never heard of
the -s.

I was going to write up a patch to check for some whitespace, but I
found another bug related to not being able to choose runlevel from the
command line.  Would a patch that extends the script to allowing the
selection of runlevels be accepted?

** Affects: upstart (Ubuntu)
     Importance: Undecided
         Status: New

-- 
only boots to single user with lvm and certain hostnames
https://bugs.launchpad.net/bugs/123147
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

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

Reply via email to