Results 1 to 4 of 4

Thread: AutoYast and extended partition

  1. #1
    Join Date
    Sep 2008
    Location
    France
    Posts
    22

    Default AutoYast and extended partition

    Hello,

    I have the following autoinst.xml
    Code:
    <?xml version="1.0"?>
    <!DOCTYPE profile>
    <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
      <add-on>
        <add_on_products config:type="list"/>
      </add-on>
      <bootloader>
        <global>
          <append>resume=/dev/disk/by-id/ata-Micron_M550_2.5__7mm_256GB_14220C34F020-part5 splash=silent quiet showopts</append>
          <gfxmode>auto</gfxmode>
          <hiddenmenu>false</hiddenmenu>
          <os_prober>true</os_prober>
          <terminal>gfxterm</terminal>
          <timeout config:type="integer">8</timeout>
          <trusted_grub>false</trusted_grub>
          <xen_kernel_append>vga=gfx-1024x768x16</xen_kernel_append>
        </global>
        <loader_type>grub2</loader_type>
      </bootloader>
      <deploy_image>
        <image_installation config:type="boolean">false</image_installation>
      </deploy_image>
      <general>
        <ask-list config:type="list"/>
        <mode>
          <confirm config:type="boolean">false</confirm>
        </mode>
        <proposals config:type="list"/>
        <signature-handling>
          <accept_file_without_checksum config:type="boolean">true</accept_file_without_checksum>
          <accept_non_trusted_gpg_key config:type="boolean">true</accept_non_trusted_gpg_key>
          <accept_unknown_gpg_key config:type="boolean">true</accept_unknown_gpg_key>
          <accept_unsigned_file config:type="boolean">true</accept_unsigned_file>
          <accept_verification_failed config:type="boolean">false</accept_verification_failed>
          <import_gpg_key config:type="boolean">true</import_gpg_key>
        </signature-handling>
        <storage>
          <start_multipath config:type="boolean">false</start_multipath>
        </storage>
      </general>
      <groups config:type="list">
        <group>
          <encrypted config:type="boolean">true</encrypted>
          <gid>100</gid>
          <group_password>x</group_password>
          <groupname>users</groupname>
          <userlist/>
        </group>
    ...
        <group>
          <encrypted config:type="boolean">true</encrypted>
          <gid>475</gid>
          <group_password>x</group_password>
          <groupname>sshd</groupname>
          <userlist/>
        </group>
      </groups>
      <host>
        <hosts config:type="list">
          <hosts_entry>
            <host_address>127.0.0.1</host_address>
            <names config:type="list">
              <name>localhost</name>
            </names>
          </hosts_entry>
          <hosts_entry>
            <host_address>::1</host_address>
            <names config:type="list">
              <name>localhost ipv6-localhost ipv6-loopback</name>
            </names>
          </hosts_entry>
          <hosts_entry>
            <host_address>fe00::0</host_address>
            <names config:type="list">
              <name>ipv6-localnet</name>
            </names>
          </hosts_entry>
          <hosts_entry>
            <host_address>ff00::0</host_address>
            <names config:type="list">
              <name>ipv6-mcastprefix</name>
            </names>
          </hosts_entry>
          <hosts_entry>
            <host_address>ff02::1</host_address>
            <names config:type="list">
              <name>ipv6-allnodes</name>
            </names>
          </hosts_entry>
          <hosts_entry>
            <host_address>ff02::2</host_address>
            <names config:type="list">
              <name>ipv6-allrouters</name>
            </names>
          </hosts_entry>
          <hosts_entry>
            <host_address>ff02::3</host_address>
            <names config:type="list">
              <name>ipv6-allhosts</name>
            </names>
          </hosts_entry>
        </hosts>
      </host>
      <keyboard>
        <keymap>french</keymap>
      </keyboard>
      <language>
        <language>fr_FR</language>
        <languages/>
      </language>
      <login_settings/>
      <networking>
        <dhcp_options>
          <dhclient_client_id/>
          <dhclient_hostname_option>AUTO</dhclient_hostname_option>
        </dhcp_options>
        <dns>
          <dhcp_hostname config:type="boolean">true</dhcp_hostname>
          <domain>insa-lyon.fr</domain>
          <hostname>lamcospo187</hostname>
          <resolv_conf_policy>auto</resolv_conf_policy>
          <write_hostname config:type="boolean">false</write_hostname>
        </dns>
        <interfaces config:type="list">
          <interface>
            <bootproto>dhcp</bootproto>
            <device>em1</device>
            <startmode>auto</startmode>
            <zone>public</zone>
          </interface>
          <interface>
            <bootproto>static</bootproto>
            <device>lo</device>
            <firewall>no</firewall>
            <ipaddr>127.0.0.1</ipaddr>
            <netmask>255.0.0.0</netmask>
            <network>127.0.0.0</network>
            <prefixlen>8</prefixlen>
            <startmode>nfsroot</startmode>
            <usercontrol>no</usercontrol>
          </interface>
        </interfaces>
        <ipv6 config:type="boolean">true</ipv6>
        <keep_install_network config:type="boolean">true</keep_install_network>
        <managed config:type="boolean">false</managed>
        <net-udev config:type="list">
          <rule>
            <name>em1</name>
            <rule>ATTR{address}</rule>
            <value>f8:b1:56:dd:76:40</value>
          </rule>
        </net-udev>
        <routing>
          <ipv4_forward config:type="boolean">false</ipv4_forward>
          <ipv6_forward config:type="boolean">false</ipv6_forward>
        </routing>
      </networking>
       <nis>
        <netconfig_policy>auto</netconfig_policy>
        <nis_broadcast config:type="boolean">false</nis_broadcast>
        <nis_broken_server config:type="boolean">false</nis_broken_server>
        <nis_domain/>
        <nis_local_only config:type="boolean">false</nis_local_only>
      </nis>
      <partitioning config:type="list">
        <drive>
          <device>/dev/sda</device>
          <disklabel>msdos</disklabel>
          <enable_snapshots config:type="boolean">false</enable_snapshots>
          <initialize config:type="boolean">true</initialize>
          <partitions config:type="list">
            <partition>
              <create config:type="boolean">true</create>
              <filesystem config:type="symbol">ext4</filesystem>
              <format config:type="boolean">true</format>
              <fstopt>data=ordered,acl,user_xattr</fstopt>
              <mount>/boot</mount>
              <mountby config:type="symbol">uuid</mountby>
              <partition_id config:type="integer">131</partition_id>
              <partition_nr config:type="integer">1</partition_nr>
              <partition_type>primary</partition_type>
              <resize config:type="boolean">false</resize>
              <size>500M</size>
            </partition>
            <partition>
              <create config:type="boolean">true</create>
              <filesystem config:type="symbol">swap</filesystem>
              <format config:type="boolean">true</format>
              <mount>swap</mount>
              <mountby config:type="symbol">uuid</mountby>
              <partition_id config:type="integer">130</partition_id>
              <partition_nr config:type="integer">5</partition_nr>
              <resize config:type="boolean">false</resize>
              <size>8G</size>
            </partition>
            <partition>
              <create config:type="boolean">true</create>
              <filesystem config:type="symbol">ext4</filesystem>
              <format config:type="boolean">true</format>
              <fstopt>acl,user_xattr</fstopt>
              <mount>/</mount>
              <mountby config:type="symbol">uuid</mountby>
              <partition_id config:type="integer">131</partition_id>
              <partition_nr config:type="integer">6</partition_nr>
              <resize config:type="boolean">false</resize>
              <size>150G</size>
            </partition>
            <partition>
              <create config:type="boolean">true</create>
              <filesystem config:type="symbol">ext4</filesystem>
              <format config:type="boolean">true</format>
              <fstopt>acl,user_xattr</fstopt>
              <mount>/machines_virtuelles</mount>
              <mountby config:type="symbol">uuid</mountby>
              <partition_id config:type="integer">131</partition_id>
              <partition_nr config:type="integer">7</partition_nr>
              <resize config:type="boolean">false</resize>
              <size>100G</size>
            </partition>
          </partitions>
          <type config:type="symbol">CT_DISK</type>
          <use>all</use>
        </drive>
      </partitioning>
       <proxy>
        <enabled config:type="boolean">false</enabled>
        <ftp_proxy/>
        <http_proxy/>
        <https_proxy/>
        <no_proxy>localhost, 127.0.0.1</no_proxy>
        <proxy_password/>
        <proxy_user/>
      </proxy>
      <report>
        <errors>
          <log config:type="boolean">true</log>
          <show config:type="boolean">true</show>
          <timeout config:type="integer">0</timeout>
        </errors>
        <messages>
          <log config:type="boolean">true</log>
          <show config:type="boolean">true</show>
          <timeout config:type="integer">0</timeout>
        </messages>
        <warnings>
          <log config:type="boolean">true</log>
          <show config:type="boolean">true</show>
          <timeout config:type="integer">0</timeout>
        </warnings>
        <yesno_messages>
          <log config:type="boolean">true</log>
          <show config:type="boolean">true</show>
          <timeout config:type="integer">0</timeout>
        </yesno_messages>
      </report>
      <services-manager>
        <default_target>graphical</default_target>
        <services>
          <disable config:type="list"/>
          <enable config:type="list">
            <service>apparmor</service>
            <service>auditd</service>
            <service>avahi-daemon</service>
            <service>ca-certificates</service>
            <service>chronyd</service>
            <service>cron</service>
            <service>cups</service>
            <service>display-manager</service>
            <service>firewalld</service>
            <service>haveged</service>
            <service>irqbalance</service>
            <service>iscsi</service>
            <service>kbdsettings</service>
            <service>lvm2-monitor</service>
            <service>mcelog</service>
            <service>ModemManager</service>
            <service>nscd</service>
            <service>postfix</service>
            <service>purge-kernels</service>
            <service>smartd</service>
            <service>sshd</service>
            <service>systemd-fsck-root</service>
            <service>wicked</service>
            <service>wickedd-auto4</service>
            <service>wickedd-dhcp4</service>
            <service>wickedd-dhcp6</service>
            <service>wickedd-nanny</service>
            <service>YaST2-Firstboot</service>
            <service>YaST2-Second-Stage</service>
            <service>getty@tty1</service>
          </enable>
        </services>
      </services-manager>
      <software>
        <image/>
        <install_recommended config:type="boolean">true</install_recommended>
        <instsource/>
        <packages config:type="list">
          <package>openssh</package>
          <package>openSUSE-release</package>
          <package>numactl</package>
          <package>kexec-tools</package>
          <package>irqbalance</package>
          <package>grub2</package>
          <package>glibc</package>
          <package>firewalld</package>
          <package>e2fsprogs</package>
          <package>chrony</package>
          <package>biosdevname</package>
          <package>autoyast2</package>
        </packages>
        <patterns config:type="list">
          <pattern>apparmor</pattern>
          <pattern>apparmor_opt</pattern>
          <pattern>base</pattern>
          <pattern>basesystem</pattern>
          <pattern>devel_C_C++</pattern>
          <pattern>devel_basis</pattern>
          <pattern>devel_java</pattern>
          <pattern>devel_python3</pattern>
          <pattern>devel_qt5</pattern>
          <pattern>devel_tcl</pattern>
          <pattern>enhanced_base</pattern>
          <pattern>enhanced_base_opt</pattern>
          <pattern>fonts</pattern>
          <pattern>fonts_opt</pattern>
          <pattern>imaging</pattern>
          <pattern>imaging_opt</pattern>
          <pattern>minimal_base</pattern>
          <pattern>multimedia</pattern>
          <pattern>multimedia_opt</pattern>
          <pattern>sw_management</pattern>
          <pattern>x11</pattern>
          <pattern>x11_enhanced</pattern>
          <pattern>x11_opt</pattern>
          <pattern>x11_yast</pattern>
          <pattern>xfce</pattern>
          <pattern>xfce_basis</pattern>
          <pattern>xfce_office</pattern>
          <pattern>yast2_basis</pattern>
        </patterns>
         <products config:type="list">
          <product>openSUSE</product>
        </products>
      </software>
      <ssh_import>
        <copy_config config:type="boolean">false</copy_config>
        <import config:type="boolean">false</import>
      </ssh_import>
      <timezone>
        <hwclock>UTC</hwclock>
        <timezone>Europe/Paris</timezone>
      </timezone>
      <user_defaults>
        <expire/>
        <group>100</group>
        <groups/>
        <home>/home</home>
        <inactive>-1</inactive>
        <no_groups config:type="boolean">true</no_groups>
        <shell>/bin/bash</shell>
        <skel>/etc/skel</skel>
        <umask>022</umask>
      </user_defaults>
      <users config:type="list">
        <user>
          <encrypted config:type="boolean">true</encrypted>
          <fullname>systemd Core Dumper</fullname>
          <gid>483</gid>
          <home>/</home>
          <password_settings>
            <expire/>
            <flag/>
            <inact/>
            <max/>
            <min/>
            <warn/>
          </password_settings>
          <shell>/sbin/nologin</shell>
          <uid>483</uid>
          <user_password>!!</user_password>
          <username>systemd-coredump</username>
        </user>
    ...
        <user>
          <encrypted config:type="boolean">true</encrypted>
          <fullname>systemd Network Management</fullname>
          <gid>482</gid>
          <home>/</home>
          <password_settings>
            <expire/>
            <flag/>
            <inact/>
            <max/>
            <min/>
            <warn/>
          </password_settings>
          <shell>/sbin/nologin</shell>
          <uid>482</uid>
          <user_password>!!</user_password>
          <username>systemd-network</username>
        </user>
      </users>
    </profile>
    No error message during the automatic installation.
    Computer rebbot.
    Login with root.

    Code:
    mateis502-pc207:~ # df -h
    Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
    devtmpfs           1,9G       0  1,9G   0% /dev
    tmpfs              1,9G       0  1,9G   0% /dev/shm
    tmpfs              1,9G     18M  1,9G   1% /run
    tmpfs              1,9G       0  1,9G   0% /sys/fs/cgroup
    /dev/sda3          147G    5,2G  134G   4% /
    /dev/sda4           79G     57M   75G   1% /machines_virtuelles
    /dev/sda1          477M     39M  409M   9% /boot
    tmpfs              383M    4,0K  383M   1% /run/user/466
    tmpfs              383M       0  383M   0% /run/user/0
    Code:
    mateis502-pc207:~ # fdisk -l
    Disque /dev/sda : 238,5 GiB, 256060514304 octets, 500118192 secteurs
    Unités : secteur de 1 × 512 = 512 octets
    Taille de secteur (logique / physique) : 512 octets / 512 octets
    taille d'E/S (minimale / optimale) : 512 octets / 512 octets
    Type d'étiquette de disque : dos
    Identifiant de disque : 0x3de2af75
    
    
    Périphérique Amorçage     Début       Fin  Secteurs Taille Id Type
    /dev/sda1                  2048   1026047   1024000   500M 83 Linux
    /dev/sda2               1026048  17803263  16777216     8G 82 partition d'échange Linux / Solaris
    /dev/sda3              17803264 332376063 314572800   150G 83 Linux
    /dev/sda4    *        332376064 500118191 167742128    80G 83 Linux

    Why I don't have an extended partition ?

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,721

    Default Re: AutoYast and extended partition

    I have never used AutoYaST, but maybe that makes me an unbiased observer.

    I see in that configuration partition numbers 1, 5, 6 and 7.
    You apparently assume that the software then concludes from the numbers 5, 6, and 7 that they must be logical partitions because those numbers can not be for primary partitions. You then assume that the software will create an extended partition (number 2?) out of it's own to solve this problem.

    Are those assumptions backed by any documentation of AutoYaST?

    I would not be surprised if that extended partition should be configured like the other ones, it not being created automatically.
    Henk van Velden

  3. #3
    Join Date
    Sep 2008
    Location
    France
    Posts
    22

    Default Re : AutoYast and extended partition

    With Opensuse 42.2, with the code below

    Code:
      <partitioning config:type="list">
       <drive>
        <device>/dev/sda</device>
        <disklabel>msdos</disklabel>
        <initialize config:type="boolean">true</initialize>
        <partitions config:type="list">
         <partition>
          <create config:type="boolean">true</create>
          <filesystem config:type="symbol">ext4</filesystem>
          <filesystem_id config:type="integer">131</filesystem_id>
          <format config:type="boolean">true</format>
          <fstopt>acl,user_xattr</fstopt>
          <mount>/boot</mount>
          <mountby config:type="symbol">uuid</mountby>
          <partition_id config:type="integer">131</partition_id>
          <partition_nr config:type="integer">1</partition_nr>
          <resize config:type="boolean">false</resize>
          <size>500mb</size>
         </partition>
         <partition>
          <create config:type="boolean">true</create>
          <filesystem config:type="symbol">ext4</filesystem>
          <filesystem_id config:type="integer">131</filesystem_id>
          <format config:type="boolean">true</format>
          <fstopt>acl,user_xattr</fstopt>
          <mount>/</mount>
          <mountby config:type="symbol">uuid</mountby>
          <partition_id config:type="integer">131</partition_id>
          <partition_nr config:type="integer">5</partition_nr>
          <resize config:type="boolean">false</resize>
          <size>200Gb</size>
         </partition>
         <partition>
          <create config:type="boolean">true</create>
          <filesystem config:type="symbol">swap</filesystem>
          <filesystem_id config:type="integer">130</filesystem_id>
          <format config:type="boolean">true</format>
          <fstopt>defaults</fstopt>
          <mount>swap</mount>
          <mountby config:type="symbol">uuid</mountby>
          <partition_id config:type="integer">130</partition_id>
          <partition_nr config:type="integer">6</partition_nr>
          <resize config:type="boolean">false</resize>
          <size>8Gb</size>
         </partition>
         <partition>
          <create config:type="boolean">true</create>
          <filesystem config:type="symbol">xfs</filesystem>
          <filesystem_id config:type="integer">131</filesystem_id>
          <format config:type="boolean">true</format>
          <fstopt>defaults</fstopt>
          <mount>/home</mount>
          <mountby config:type="symbol">uuid</mountby>
          <partition_id config:type="integer">131</partition_id>
          <partition_nr config:type="integer">7</partition_nr>
          <resize config:type="boolean">false</resize>
          <size>50Gb</size>
         </partition>
        <partition>
          <create config:type="boolean">true</create>
          <filesystem config:type="symbol">ext4</filesystem>
          <filesystem_id config:type="integer">131</filesystem_id>
          <format config:type="boolean">true</format>
          <fstopt>acl,user_xattr</fstopt>
          <mount>/machines_virtuelles</mount>
          <mountby config:type="symbol">uuid</mountby>
          <partition_id config:type="integer">131</partition_id>
          <partition_nr config:type="integer">8</partition_nr>
          <resize config:type="boolean">false</resize>
          <size>300Gb</size>
         </partition>
        </partitions>
        <type config:type="symbol">CT_DISK</type>
        <use>all</use>
       </drive>
      </partitioning>
    The extended partition and logicals partitions was OK

    Code:
    ge504-104-01:~ # fdisk -l
    Disque /dev/sda : 931,5 GiB, 1000204886016 octets, 1953525168 secteurs
    Unités : secteur de 1 × 512 = 512 octets
    Taille de secteur (logique / physique) : 512 octets / 4096 octets
    taille d'E/S (minimale / optimale) : 4096 octets / 4096 octets
    Type d'étiquette de disque : dos
    Identifiant de disque : 0x0008fc86
    
    
    Périphérique Amorçage     Début        Fin   Secteurs Taille Id Type
    /dev/sda1    *             2048    1028095    1026048   501M 83 Linux
    /dev/sda2               1028096 1953523711 1952495616   931G  f Étendue W95 (LBA)
    /dev/sda5               1030144  538920959  537890816 256,5G 83 Linux
    /dev/sda6             538923008  555710463   16787456     8G 82 partition d'échange Linux / Solaris
    /dev/sda7             555712512  870293503  314580992   150G 83 Linux
    /dev/sda8             870295552 1499447295  629151744   300G 83 Linux

    There was no need to specify the extended partion .

  4. #4
    Join Date
    Sep 2008
    Location
    France
    Posts
    22

    Default Re : AutoYast and extended partition

    I added the code below between /boot and swap but nothing change

    Code:
             <partition>
                <create config:type="boolean">true</create>
                <partition_id config:type="integer">15</partition_id>
                <partition_nr config:type="integer">2</partition_nr>
              </partition>

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •