Results 1 to 3 of 3

Thread: Autoyast swap auto partitioning doesn't work correctly

  1. #1

    Default Autoyast swap auto partitioning doesn't work correctly

    Hi community,

    I'm using autoyast to perform an auto installation of tumbleweed on a laptop with 16 gigs of RAM using an existing manual install as a template.
    As seen in the code snippet form the autoinst.xml file posted below, I have configured the partitioning for boot/efi to auto, swap to auto and root as max.
    The problem is that during installation yast sets the SWAP to 1 gig instead of 16.
    Anyone know how to fix this? I can't resort to hardcoding the SWAP as i'll use this autoyast config on laptops with various RAM sized.
    I have attached images with the desired disk partitioning I'm trying to emulate with autoyast.

    Code:
        <partitioning config:type="list">
        <drive>
          <device>/dev/system</device>
          <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">swap</filesystem>
              <format config:type="boolean">true</format>
              <lv_name>swap</lv_name>
              <mount>swap</mount>
              <mountby config:type="symbol">device</mountby>
              <pool config:type="boolean">false</pool>
              <resize config:type="boolean">false</resize>
              <size>auto</size>
              <stripes config:type="integer">1</stripes>
              <stripesize config:type="integer">0</stripesize>
            </partition>
            <partition>
              <create config:type="boolean">true</create>
              <filesystem config:type="symbol">ext4</filesystem>
              <format config:type="boolean">true</format>
              <lv_name>root</lv_name>
              <mount>/</mount>
              <mountby config:type="symbol">device</mountby>
              <pool config:type="boolean">false</pool>
              <resize config:type="boolean">false</resize>
              <size>max</size>
              <stripes config:type="integer">1</stripes>
              <stripesize config:type="integer">0</stripesize>
            </partition>
          </partitions>
          <pesize>auto</pesize>
          <type config:type="symbol">CT_LVM</type>
        </drive>
        <drive>
          <device>/dev/nvme0n1</device>
          <disklabel>gpt</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">vfat</filesystem>
              <format config:type="boolean">true</format>
              <mount>/boot/efi</mount>
              <mountby config:type="symbol">uuid</mountby>
              <partition_id config:type="integer">259</partition_id>
              <partition_nr config:type="integer">1</partition_nr>
              <resize config:type="boolean">false</resize>
              <size>auto</size>
            </partition>
            <partition>
              <create config:type="boolean">true</create>
              <crypt_fs config:type="boolean">true</crypt_fs>
              <crypt_key>justatest</crypt_key>
              <format config:type="boolean">true</format>
              <loop_fs config:type="boolean">true</loop_fs>
              <lvm_group>system</lvm_group>
              <partition_id config:type="integer">142</partition_id>
              <partition_nr config:type="integer">2</partition_nr>
              <resize config:type="boolean">false</resize>
              <size>max</size>
            </partition>
          </partitions>
          <type config:type="symbol">CT_DISK</type>
          <use>all</use>
        </drive>
      </partitioning>



  2. #2
    Join Date
    Jan 2017
    Location
    Nürnberg, Germany
    Posts
    204

    Default Re: Autoyast swap auto partitioning doesn't work correctly

    Quote Originally Posted by agherghesanu View Post
    Code:
        <partitioning config:type="list">
        <drive>
          <device>/dev/system</device>
          <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">swap</filesystem>
              <format config:type="boolean">true</format>
              <lv_name>swap</lv_name>
              <mount>swap</mount>
              <mountby config:type="symbol">device</mountby>
              <pool config:type="boolean">false</pool>
              <resize config:type="boolean">false</resize>
              <size>auto</size>
              […]
    Instead of »<size>auto</size>«, try
    Code:
    <size>16G</size>
    … the other partitions should then max out the rest of the disk after AutoYaST fulfills this constraint.

  3. #3

    Default Re: Autoyast swap auto partitioning doesn't work correctly

    Quote Originally Posted by unix111 View Post
    Instead of »<size>auto</size>«, try
    Code:
    <size>16G</size>
    … the other partitions should then max out the rest of the disk after AutoYaST fulfills this constraint.

    Like I said in my original post, i can't set the SWAP to hardcoded values as the config will be used on machines with various RAM sizes. That's why I used the auto, as the documentation says it should set the swap according to the RAM size of each machine automatically.

    Is this a bug in the autoyast?

Posting Permissions

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