Jump to contentJump to page navigation: previous page [access key p]/next page [access key n]
documentation.suse.com / SUSE Linux Enterprise Server-Dokumentation / AutoYaST Guide / Uses for AutoYaST on Installed Systems / Running AutoYaST in an Installed System
Applies to SUSE Linux Enterprise Server 15 SP2

7 Running AutoYaST in an Installed System

In some cases it is useful to run AutoYaST in a running system. Bear in mind that the partitioning section is ignored in this scenario.

In the following example, an additional software package (foo) is going to be installed. To run this software, a user needs to be added and an NTP client needs to be configured.

The respective AutoYaST profile needs to include a section for the package installation (Section 4.9.7, “Installing Packages in Stage 2”), a user (Section 4.29.1, “Users”) section and an NTP-client (Section 4.20, “NTP Client”) section:

<?xml version="1.0"?>
<!DOCTYPE profile>
<profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
    <peers config:type="list">
        <options> iburst</options>
    <start_at_boot config:type="boolean">true</start_at_boot>
    <start_in_chroot config:type="boolean">false</start_in_chroot>
    <sync_interval config:type="integer">5</sync_interval>
    <synchronize_time config:type="boolean">false</synchronize_time>
    <post-packages config:type="list">
  <users config:type="list">
      <encrypted config:type="boolean">false</encrypted>
      <fullname>Foo user</fullname>

Store this file as /tmp/install_foo.xml and start the AutoYaST installation process by calling:

> sudo yast2 ayast_setup setup filename=/tmp/install_foo.xml dopackages="yes"

For more information, run yast2 ayast_setup longhelp