[sles-beta] Help, getting an autoyast build for "multi-user" target

Darren Thompson darrent at akurit.com.au
Tue Jun 17 18:50:46 MDT 2014


Team

I have been doing some testing on getting a "default graphical build"
SLES12B8 server to become a "multi-user" server.

It's harder than you would think, mainly due to the way
display-server.service seems to be erroneously activated, even on
multi-user target boots.

I have found this process works:
1. Login to graphical console as root user.
2. run a "terminal" session (the yast service manager process is currently
broken, it would be Bets/easier to just run that).
3. cd /etc/systemd/system
4. rm default.target
5. ln -s /usr/lib/systemd/system/multi-user.target default.target
6. cd /usr/lib/systemd/user
7. rm default.target
8. ln -s /usr/lib/systemd/system/multi-user.target default.target
9. cd /usr/lib/systemd/system
10. rm default.target
11. ln -s /usr/lib/systemd/system/multi-user.target default.target
**** I have no idea why default.target is in these three locations, I would
expect 2 of them are redundant but am not familiar enough with systemd to
guess which ****

This will "tell" systemd that you want to run in "multi-user" mode (e.g.
the old init 3 level, without a X-server/GUI).

The problem is that the display-server.service still seems to be run on
boot (it mast be hard coded in somewhere) and I have not found a "working"
way of stopping it ('systemstl disable display-server' does not help).

What I have had to do is the following, which permanently stops the
display-server from starting.
12. systemctl mask display-server
*** reboot ***
13. shutdown -r now
(you can achieve the same result by typing: 'init 3') if you prefer not to
reboot.

I hope this is found to be helpful.

Darren






On 16 June 2014 13:08, Darren Thompson <darrent at akurit.com.au> wrote:

> Team
>
> Does anyone have an example autoyast file they can share which reliably
> builds a server to the "multi-user" target (e.g. no X/display server
> running).
>
> Simmilarly, what are the steps for go from a server built to the
> "graphical" target and getting it to reliably boot to the "multi-user"
> target.
>
> The "service-manager" Yast module seems to be able to adjust the "target"
> level but I cannot seem to workout how to get it to accept "multi-user" -
> Am I missing something or is that yast module "broken"?
>
> Any/all help appreciated.
>
> background:
> I have traditionally built my SLES servers with the full graphical install.
> I would then go into 'yast2 run-level' module and in 'expert mode' change
> the default to "run level 3".
> This would allow me to run the servers themselves without any graphical
> display, but I could still SSH into them and run all the graphical tools
> (via x-forwarding).
> I'm hoping to be able to achve the same result with SLES12
>
> Regards
> Darren
>
> --
>
> Darren Thompson
>
> Professional Services Engineer / Consultant
>
>  *[image: cid:image001.jpg at 01CB7C0C.6C6A2AE0]*
>
> Level 3, 60 City Road
>
> Southgate, VIC 3006
>
> Mb: 0400 640 414
>
> Mail: darrent at akurit.com.au <steve at akurit.com.au>
> Web: www.akurit.com.au
>



-- 

Darren Thompson

Professional Services Engineer / Consultant

 *[image: cid:image001.jpg at 01CB7C0C.6C6A2AE0]*

Level 3, 60 City Road

Southgate, VIC 3006

Mb: 0400 640 414

Mail: darrent at akurit.com.au <steve at akurit.com.au>
Web: www.akurit.com.au
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.suse.com/mailman/private/sles-beta/attachments/20140618/f134bbe2/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 3692 bytes
Desc: not available
URL: <http://lists.suse.com/mailman/private/sles-beta/attachments/20140618/f134bbe2/attachment.jpg>


More information about the sles-beta mailing list