[Libosinfo] [osinfo-db 03/11] install-script, opensuse: Use ext4 for Leap 42.2 and Tumbleweed

Fabiano Fidêncio fidencio at redhat.com
Tue Apr 18 21:29:23 UTC 2017


From: Fabiano Fidêncio <fabiano at fidencio.org>

Performing an installation using autoyast on openSUSE Leap 42.2 and
Tumbleweed and leaving the installers to choose the default filesystem
(btrfs) leads to a non bootable system.

The problem happens because autoyast(-bootloader?) preprends the
"/@/.snapshots/1/snapshot" to both kernel and initrd command line, which
(even having "rootflags=subvol=@/.snapshots/1/snapshot" as part of the
kernel command line) causes the system to not find any of those files.

Curiously, the snapshot related parts are not added to the kernel/initrd
command line when installing the system normally (not using autoyast).

I've spoken to Josef Reidinger, one of the autoyast maintainers, and his
suggestion was to either disable snapshot support (which I did and did
not work) or use another filesystem for "/".

I do believe we can switch back to btrfs as soon as this issue is fixed
and a new ISO is generated. For now, let's leave the filesystem as ext4
and I'll keep monitoring the bugzilla I've filled for autoyast:
https://bugzilla.opensuse.org/show_bug.cgi?id=1032985

Signed-off-by: Fabiano Fidêncio <fabiano at fidencio.org>
---
 .../opensuse.org/opensuse-autoyast-desktop.xml.in  | 27 ++++++++++++++++++++++
 .../opensuse.org/opensuse-autoyast-jeos.xml.in     | 27 ++++++++++++++++++++++
 2 files changed, 54 insertions(+)

diff --git a/data/install-script/opensuse.org/opensuse-autoyast-desktop.xml.in b/data/install-script/opensuse.org/opensuse-autoyast-desktop.xml.in
index 47d25a6..6fd1b03 100644
--- a/data/install-script/opensuse.org/opensuse-autoyast-desktop.xml.in
+++ b/data/install-script/opensuse.org/opensuse-autoyast-desktop.xml.in
@@ -186,6 +186,33 @@
               <device>/dev/vda</device>
               <type config:type="symbol">CT_DISK</type>
               <use>all</use>
+              <xsl:if test="os/version > 42.1 or contains(os/version, 'tumbleweed')">
+                <partitions config:type="list">
+                  <partition>
+                    <create config:type="boolean">true</create>
+                    <crypt_fs config:type="boolean">false</crypt_fs>
+                    <filesystem config:type="symbol">swap</filesystem>
+                    <format config:type="boolean">true</format>
+                    <fstopt>defaults</fstopt>
+                    <loop_fs config:type="boolean">false</loop_fs>
+                    <mount>swap</mount>
+                    <mountby config:type="symbol">uuid</mountby>
+                    <resize config:type="boolean">false</resize>
+                    <size>auto</size>
+                  </partition>
+                  <partition>
+                    <create config:type="boolean">true</create>
+                    <crypt_fs config:type="boolean">false</crypt_fs>
+                    <filesystem config:type="symbol">ext4</filesystem>
+                    <format config:type="boolean">true</format>
+                    <loop_fs config:type="boolean">false</loop_fs>
+                    <mount>/</mount>
+                    <mountby config:type="symbol">uuid</mountby>
+                    <resize config:type="boolean">false</resize>
+                    <size>max</size>
+                  </partition>
+                </partitions>
+              </xsl:if>
             </drive>
           </partitioning>
             <report>
diff --git a/data/install-script/opensuse.org/opensuse-autoyast-jeos.xml.in b/data/install-script/opensuse.org/opensuse-autoyast-jeos.xml.in
index fd6b052..7a0fa0f 100644
--- a/data/install-script/opensuse.org/opensuse-autoyast-jeos.xml.in
+++ b/data/install-script/opensuse.org/opensuse-autoyast-jeos.xml.in
@@ -181,6 +181,33 @@
               <device>/dev/vda</device>
               <type config:type="symbol">CT_DISK</type>
               <use>all</use>
+              <xsl:if test="os/version > 42.1 or contains(os/version, 'tumbleweed')">
+                <partitions config:type="list">
+                  <partition>
+                    <create config:type="boolean">true</create>
+                    <crypt_fs config:type="boolean">false</crypt_fs>
+                    <filesystem config:type="symbol">swap</filesystem>
+                    <format config:type="boolean">true</format>
+                    <fstopt>defaults</fstopt>
+                    <loop_fs config:type="boolean">false</loop_fs>
+                    <mount>swap</mount>
+                    <mountby config:type="symbol">uuid</mountby>
+                    <resize config:type="boolean">false</resize>
+                    <size>auto</size>
+                  </partition>
+                  <partition>
+                    <create config:type="boolean">true</create>
+                    <crypt_fs config:type="boolean">false</crypt_fs>
+                    <filesystem config:type="symbol">ext4</filesystem>
+                    <format config:type="boolean">true</format>
+                    <loop_fs config:type="boolean">false</loop_fs>
+                    <mount>/</mount>
+                    <mountby config:type="symbol">uuid</mountby>
+                    <resize config:type="boolean">false</resize>
+                    <size>max</size>
+                  </partition>
+                </partitions>
+              </xsl:if>
             </drive>
           </partitioning>
             <report>
-- 
2.9.3




More information about the Libosinfo mailing list