Re: Start only second stage in console mode

Robert Klein <[email protected]>
Newsgroups gmane.linux.suse.autoinstall
Organization Max Planck-Institut für Polymerforschung
Message-ID <[email protected]>
On 11/14/2013 06:50 PM, Joschi Brauchle wrote:
> Ok, thanks for the hint! That is a good start...
> 
> So I have a default PXE menu entry (and other options to start an
> autoinstall). Thus, I would like to keep this entry identical for all
> systems I install, i.e. workstations with X and headless servers.
> 
> But I could possibly add textmode=1 after stage 1 has finished...
> 
> As per default the second stage is started via kexec, how would I
> accomplish this? Does kexec take its arguments from somewhere (e.g. grub
> menu)?


Hi,

you can install workstations with X also using textmode=1.  The
installation mode may cause the installation of X (don't know), but if
you want X, you say so in your autoyast control file runlevel section
and your software selection.  For example, a minimal configuration for X
with XFCE as desktop might be:

<?xml version="1.0"?>
<!DOCTYPE profile>
<profile xmlns="http://www.suse.com/1.0/yast2ns"
xmlns:config="http://www.suse.com/1.0/configns">
  <runlevel>
    <default>5</default>
  </runlevel>
  <software>
    <patterns config:type="list">
      <pattern>base</pattern>
      <pattern>enhanced_base</pattern>
      <pattern>x11</pattern>
      <pattern>xfce</pattern>
      <pattern>xfce_basis</pattern>
    </patterns>
  </software>
</profile>

(Note: I left out the other sections of the control file.)

Typically for headless servers I just choose the "base" and "enhanced
base" patterns (or, in SLES "Minimal" and "base").  For our 50+ desktops
I install almost the whole shebang of patterns, including Gnome and KDE
desktops.  I install both variants with textmode=1.

Best regards
Robert




> 
> 
> 
> On 11/14/2013 11:17 AM, Robert Klein wrote:
>> On 11/14/2013 05:03 PM, Joschi Brauchle wrote:
>>> Hello everyone,
>>>
>>> I have a autoyast setup where I would like to install a headless server.
>>>
>>> The machine starts an Xserver in Stage 1 of the installation process
>>> just fine and installation begins (a monitor is attached but turned
>>> off).
>>>
>>> After RPM installation and rebooting/kexec into stage 2, starting XDM
>>> fails for some reason. As the machine is supposed to run headless in
>>> console mode anyway, I would not care at all. I even disable XDM
>>> completely later on as it is not needed.
>>>
>>> But I seems like the second stage fails to start due to XDM failing.
>>>
>>> Instead of fixing the reason for XDM failing, I would like to tell the
>>> *second* stage ahead of time to simply start in console mode.
>>>
>>> Is this possible somehow?
>>> I.e.: start stage 1 with X enabled, start stage 2 with X disabled in
>>> console mode.
>>>
>>> The AutoYast configuration options for services is done at the end of
>>> stage 2, which is too late for this case.
>>>
>>> Thanks for any suggestions!
>>>
>>>
>>
>>
>> Hi,
>>
>> do you need the X Server in stage 1?  If not, add "textmode=1" as
>> parameter to linuxrc.  (If you use PXE, add it to the "append" line.)
>>
>> Best regards
>> Robert
>>
>>
>>
> 


-- 
Robert Klein
UNIX Operations, Max Planck-Institut für Polymerforschung
Ackermannweg 10
55218 Mainz
-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.