only boots to single user with lvm and certain hostnames
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
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.
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?