Git Product home page Git Product logo

yast-autoinstallation's Introduction

YaST - The AutoYaST Framework

Workflow Status Coverage Status

Development

This module is developed as part of YaST. See the development documentation.

Have a look to the AutoYaST Development Documentation if you would like to implement AutoYaST support for your YaST module.

Getting the Sources

To get the source code, clone the GitHub repository:

$ git clone https://github.com/yast/yast-autoinstallation.git

If you want to contribute into the project you can fork the repository and clone your fork.

Testing Environment

There are several possibilities how test an updated code. It also depends on the fact in which stage of installation it comes into effect. First stage runs between the start from installation media to reboot (or kexec), then continues second stage.

First Stage

Either use StartShell=1 option in Linuxrc, edit the installation system and run yast manually or use a DriverUpdate via Linuxrc.

Second Stage

There are two possible ways how to rerun this stage, just keep in mind that the system might be already configured and thus it might behave a bit differently:

cp /var/lib/YaST2/install.inf /etc/
touch /var/lib/YaST2/runme_at_boot
cp /var/adm/autoinstall/cache/installedSystem.xml \
  /var/lib/autoinstall/autoconf/autoconf.xml
reboot

or faster without rebooting but with possible side-effects:

yast ayast_setup setup filename=/var/adm/autoinstall/cache/installedSystem.xml

Auto Upgrade

Beside unattended installation this module provide also ability to do unattended upgrade.

Features

  • Semi automatic mode
  • Without autoyast profile on the boot command line it reads the profile from /root/autoupg.xml file
  • When using the Online installation medium the AutoYaST XML profile can be empty

Testing

To test autoupgrade run upgrade with parameters autoupgrade=1 and profile e.g. autoyast=ftp://example.com/ay_upgrade.xml. Following example profiles used for testing online and full media.

Online on registered system:

<?xml version="1.0"?>
<!DOCTYPE profile>
<profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
</profile>

Full on system without registration:

<?xml version="1.0"?>
<!DOCTYPE profile>
<profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
  <upgrade>
    <stop_on_solver_conflict config:type="boolean">true</stop_on_solver_conflict>
  </upgrade>

  <software>
    <products config:type="list">
      <listentry>SLES</listentry>
    </products>
  </software>

  <add-on>
    <add_on_products config:type="list">
      <listentry>
        <name>Basesystem</name>
        <product>Basesystem</product>
        <product_dir>/Module-Basesystem</product_dir>
        <media_url>relurl://</media_url>
        <ask_on_error config:type="boolean">false</ask_on_error>
      </listentry>
    </add_on_products>
  </add-on>
</profile>

Additional Documentation

  • {file:doc/profile_handling.md Profile Handling}
  • {file:doc/profile_fetching.md Profile Fetching}
  • {file:doc/validation.md Profile Validation}
  • {file:doc/error_reporting.md Error Reporting}
  • {file:doc/network_scenarios.md Network Scenarios}
  • {file:doc/multipath.md Old Multipath Support}

Contact

If you have any question, feel free to ask at the development mailing list or at the #yast IRC channel on freenode.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.