[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: boot in console mode from grub2



On Mon, May 5, 2014 at 5:57 AM, Andrei POPESCU <andreimpopescu@gmail.com> wrote:
> On Lu, 05 mai 14, 10:30:43, Dom wrote:
>> On 05/05/14 09:58, Tom H wrote:
>>>
>>> Add "text" to the kernel cmdline.
>>
>> Which you can do by editing the /etc/default/grub file and changing
>>
>> GRUB_CMDLINE_LINUX=""
>>
>> to
>>
>> GRUB_CMDLINE_LINUX="text"
>>
>> and running update-grub
>
> Considering the way this is implemented your suggestion will prevent
> starting a display manager later (e.g. by invoking its initscript).
> Assuming the display manager's initscript actually supports this.

You could also create a separate grub.cfg "text" entry either directly
or via "/etc/grub.d/40_custom". You could even use grub-reboot to use
that option for the next reboot.

But simply editing the kernel cmdline at boot is less convoluted...

The grub1 AUTOKERNEL options were more flexible :(

Your earlier suggestion of creating a separate runlevel for a DM via
insserv overrides is probably the best option but you'll still have to
edit the kernel cmdline at boot for one of them...


Reply to: