Bug 9874

Summary: auto-inst doesn't work with 2 swaps areas
Product: Mageia Reporter: Bruno Cornec <bruno>
Component: InstallerAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: dvgevers, thierry.vignaud
Version: 3Keywords: NEEDINFO
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description Bruno Cornec 2013-04-26 17:34:37 CEST
Description of problem:

auto-inst doesn't work with 2 swaps areas. I want to do this on a SW MD Raid 1 configuration, using 1 partition of 1 GB on each disk to become swap space.

Version-Release number of selected component (if applicable):
Installation with Mageia Cauldron

How reproducible:
each time

Steps to Reproduce:
create an auto_inst which tries to create 2 swap partitions:

           # 2 x 1 GB swap spaces
         {
            'fs_type' => 'swap',
            'mntpoint' => 'swap',
            # 1 GB
            'size' => 2038086,
            'hd' => 'sda',
         },
         # seems there is a bug preventing the creation of 2 swaps parts
         # TODO in postinstall instead
         {
            'fs_type' => 'swap',
            'mntpoint' => 'swap',
            # 1 GB
            'size' => 2038086,
            'hd' => 'sdb',
         },
Workaround: create a FS instead and transform it into swap in the post section:
         {
            'fs_type' => 'ext4',
            'mntpoint' => '/swap',
            # 1 GB
            'size' => 2038086,
            'hd' => 'sdb',
         },

The installer aborts when trying to partition the disks.

Reproducible: 

Steps to Reproduce:
Comment 1 Thierry Vignaud 2013-04-26 22:40:41 CEST
what's the error?
please rerun it. Once you hit the error, plug an USB key, go to the second console and run the "bug" command.
Then attach the report.bug.xz found on that key to this bug report

Keywords: (none) => NEEDINFO
CC: (none) => thierry.vignaud

Comment 2 Bruno Cornec 2013-04-30 00:44:42 CEST
As I have since installed that system anyway, I don't have the original report files and I don't want to redo the install on this machine now that I've started setting it up :-(

I'll try to reproduce with a VM and provide the required files.
Comment 3 Dick Gevers 2014-12-02 16:51:42 CET
Waiting for promised info since 19 months. Closing as OLD.

Please note pre-5 installers will not be fixed. You may reopen against current installer (5beta1 or higher) if seen still (with requested report, please :))

Thanks.

Status: NEW => RESOLVED
CC: (none) => dvgevers
Resolution: (none) => OLD

Comment 4 Bruno Cornec 2014-12-03 00:10:32 CET
I wasn't able to redeploy these systems once installed as they are used everyday. So let's see the next time I'll need to do that indeed.
Comment 5 Mageia Robot 2016-07-05 23:16:37 CEST
commit 6d124136b1fbb2551d651c115de0cff85aca349d
Author: Thierry Vignaud <thierry.vignaud@...>
Date:   Tue Jul 5 23:12:51 2016 +0200

    enable to set several swap partitions (mga#9874)
---
 Commit Link:
   http://gitweb.mageia.org/software/drakx/commit/?id=6d124136b1fbb2551d651c115de0cff85aca349d
Comment 6 Thierry Vignaud 2016-07-05 23:17:56 CEST
Fixed

Resolution: OLD => FIXED