LINUX.ORG.RU

История изменений

Исправление cumvillain, (текущая версия) :

Лучший конфигуратор системы (yast2),

Бгг. Ну давай сравним с RHEL.

AutoYAST:

<?xml version="1.0"?>
<!DOCTYPE profile>
<profile
  xmlns="http://www.suse.com/1.0/yast2ns"
  xmlns:config="http://www.suse.com/1.0/configns">
  <deploy_image>
    <image_installation config:type="boolean">false</image_installation>
  </deploy_image>
  <general>
    <mode>
      <confirm config:type="boolean">false</confirm>
      <second_stage config:type="boolean">false</second_stage>
      <final_reboot config:type="boolean">true</final_reboot>
    </mode>
    <self_update config:type="boolean">false</self_update>
  </general>
  <software>
    <products config:type="list">
      <product>SLES</product>
    </products>
    <patterns config:type="list">
      <pattern>enhanced_base</pattern>
    </patterns>
  </software>
  <services-manager>
    <default_target>multi-user</default_target>
    <services>
      <enable config:type="list">
        <service>sshd</service>
      </enable>
    </services>
  </services-manager>
  <add-on>
    <add_on_products config:type="list">
      <listentry>
        <media_url><![CDATA[dvd:///?device=/dev/sr0]]></media_url>
        <product_dir>/Module-Basesystem</product_dir>
        <product>sle-module-basesystem</product>
      </listentry>
    </add_on_products>
  </add-on>
  <partitioning config:type="list">
    <drive>
      <device>/dev/vda</device>
      <initialize config:type="boolean">true</initialize>
      <use>all</use>
      <partitions config:type="list">
        <partition>
          <mount>/boot/efi</mount>
          <size>512M</size>
          <partition_id config:type="integer">259</partition_id>
          <filesystem config:type="symbol">vfat</filesystem>
        </partition>
        <partition>
          <filesystem config:type="symbol">ext4</filesystem>
          <size>max</size>
          <mount>/</mount>
        </partition>
      </partitions>
    </drive>
  </partitioning>
  <networking>
    <dns>
      <dhcp_hostname config:type="boolean">true</dhcp_hostname>
    </dns>
    <interfaces config:type="list">
      <interface>
        <name>eth0</name>
        <bootproto>dhcp</bootproto>
        <startmode>auto</startmode>
      </interface>
    </interfaces>
  </networking>
  <firewall>
    <zones config:type="list">
      <zone>
        <name>public</name>
        <services config:type="list">
          <service>dhcpv6-client</service>
          <service>ssh</service>
        </services>
      </zone>
    </zones>
  </firewall>
  <timezone>
    <hwclock>UTC</hwclock>
    <timezone>UTC</timezone>
  </timezone>
  <users config:type="list">
    <user>
      <username>root</username>
      <user_password>*****</user_password>
      <encrypted config:type="boolean">false</encrypted>
    </user>
  </users>
  <scripts>
    <chroot-scripts config:type="list">
      <script>
        <chrooted config:type="boolean">true</chrooted>
        <source>
          <![CDATA[
            #!/bin/sh
            # Force dracut to inlcude all necessary drivers. This is required to
            # boot the image on physical hosts.
            echo 'hostonly="no"' >/etc/dracut.conf.d/99-hostonly-override.conf
            dracut --force
          ]]>
        </source>
      </script>
    </chroot-scripts>
  </scripts>
</profile>

Kickstart:

# Kickstart file for RHEL family

text
lang en_US.UTF-8
keyboard us
timezone UTC
rootpw *******
selinux --disabled
clearpart --all --initlabel
part /boot/efi --fstype=efi --size=512
part / --fstype=ext4 --size=1 --grow
bootloader
reboot

%packages
@Core
%end

%post
# Force dracut to inlcude all necessary drivers. This is required to boot the
# image on physical hosts.
echo 'hostonly="no"' >/etc/dracut.conf.d/99-hostonly-override.conf
dracut --force
%end

Делают они одно и то же. Конфиг AutoYAST минимальный – если что-то выкинуть, оно работать перестанет.

Исходная версия cumvillain, :

Лучший конфигуратор системы (yast2),

Бгг. Ну давай сравним с RHEL.

AutoYAST:

<?xml version="1.0"?>
<!DOCTYPE profile>
<profile
  xmlns="http://www.suse.com/1.0/yast2ns"
  xmlns:config="http://www.suse.com/1.0/configns">
  <deploy_image>
    <image_installation config:type="boolean">false</image_installation>
  </deploy_image>
  <general>
    <mode>
      <confirm config:type="boolean">false</confirm>
      <second_stage config:type="boolean">false</second_stage>
      <final_reboot config:type="boolean">true</final_reboot>
    </mode>
    <self_update config:type="boolean">false</self_update>
  </general>
  <software>
    <products config:type="list">
      <product>SLES</product>
    </products>
    <patterns config:type="list">
      <pattern>enhanced_base</pattern>
    </patterns>
  </software>
  <services-manager>
    <default_target>multi-user</default_target>
    <services>
      <enable config:type="list">
        <service>sshd</service>
      </enable>
    </services>
  </services-manager>
  <add-on>
    <add_on_products config:type="list">
      <listentry>
        <media_url><![CDATA[dvd:///?device=/dev/sr0]]></media_url>
        <product_dir>/Module-Basesystem</product_dir>
        <product>sle-module-basesystem</product>
      </listentry>
    </add_on_products>
  </add-on>
  <partitioning config:type="list">
    <drive>
      <device>/dev/vda</device>
      <initialize config:type="boolean">true</initialize>
      <use>all</use>
      <partitions config:type="list">
        <partition>
          <mount>/boot/efi</mount>
          <size>512M</size>
          <partition_id config:type="integer">259</partition_id>
          <filesystem config:type="symbol">vfat</filesystem>
        </partition>
        <partition>
          <filesystem config:type="symbol">ext4</filesystem>
          <size>max</size>
          <mount>/</mount>
        </partition>
      </partitions>
    </drive>
  </partitioning>
  <networking>
    <dns>
      <dhcp_hostname config:type="boolean">true</dhcp_hostname>
    </dns>
    <interfaces config:type="list">
      <interface>
        <name>eth0</name>
        <bootproto>dhcp</bootproto>
        <startmode>auto</startmode>
      </interface>
    </interfaces>
  </networking>
  <firewall>
    <zones config:type="list">
      <zone>
        <name>public</name>
        <services config:type="list">
          <service>dhcpv6-client</service>
          <service>ssh</service>
        </services>
      </zone>
    </zones>
  </firewall>
  <timezone>
    <hwclock>UTC</hwclock>
    <timezone>UTC</timezone>
  </timezone>
  <users config:type="list">
    <user>
      <username>root</username>
      <user_password>*****</user_password>
      <encrypted config:type="boolean">false</encrypted>
    </user>
  </users>
  <scripts>
    <chroot-scripts config:type="list">
      <script>
        <chrooted config:type="boolean">true</chrooted>
        <source>
          <![CDATA[
            #!/bin/sh
            # Force dracut to inlcude all necessary drivers. This is required to
            # boot the image on physical hosts.
            echo 'hostonly="no"' >/etc/dracut.conf.d/99-hostonly-override.conf
            dracut --force
          ]]>
        </source>
      </script>
    </chroot-scripts>
  </scripts>
</profile>

RHEL:

# Kickstart file for RHEL family

text
lang en_US.UTF-8
keyboard us
timezone UTC
rootpw *******
selinux --disabled
clearpart --all --initlabel
part /boot/efi --fstype=efi --size=512
part / --fstype=ext4 --size=1 --grow
bootloader
reboot

%packages
@Core
%end

%post
# Force dracut to inlcude all necessary drivers. This is required to boot the
# image on physical hosts.
echo 'hostonly="no"' >/etc/dracut.conf.d/99-hostonly-override.conf
dracut --force
%end

Делают они одно и то же. Конфиг AutoYAST минимальный – если что-то выкинуть, оно работать перестанет.