Mailinglist Archive: yast-commit (535 mails)

< Previous Next >
[yast-commit] r41305 - in /trunk/live-installer: package/yast2-live-installer.changes src/live-installer.ycp
  • From: jsrain@xxxxxxxxxxxxxxxx
  • Date: Wed, 10 Oct 2007 10:48:21 -0000
  • Message-id: <20071010104821.EA47917476@xxxxxxxxxxxxxxxx>
Author: jsrain
Date: Wed Oct 10 12:48:21 2007
New Revision: 41305

URL: http://svn.opensuse.org/viewcvs/yast?rev=41305&view=rev
Log:
issue warning if DMRAID detected (#328388)


Modified:
    trunk/live-installer/package/yast2-live-installer.changes
    trunk/live-installer/src/live-installer.ycp

Modified: trunk/live-installer/package/yast2-live-installer.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/live-installer/package/yast2-live-installer.changes?rev=41305&r1=41304&r2=41305&view=diff
==============================================================================
--- trunk/live-installer/package/yast2-live-installer.changes (original)
+++ trunk/live-installer/package/yast2-live-installer.changes Wed Oct 10 12:48:21 2007
@@ -1,7 +1,8 @@
 -------------------------------------------------------------------
-Wed Oct 10 10:29:13 CEST 2007 - jsrain@xxxxxxx
+Wed Oct 10 12:46:18 CEST 2007 - jsrain@xxxxxxx
 
 - added registration to the live installation workflow (#325560)
+- issue warning if DMRAID detected (#328388)
 
 -------------------------------------------------------------------
 Thu Oct  4 14:26:12 CEST 2007 - locilka@xxxxxxx

Modified: trunk/live-installer/src/live-installer.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/live-installer/src/live-installer.ycp?rev=41305&r1=41304&r2=41305&view=diff
==============================================================================
--- trunk/live-installer/src/live-installer.ycp (original)
+++ trunk/live-installer/src/live-installer.ycp Wed Oct 10 12:48:21 2007
@@ -17,6 +17,7 @@
     import "Storage";
     import "Product";
     import "CommandLine";
+    import "Popup";
 
     // Bugzilla #269890, CommanLine "support"
     // argmap is only a map, CommandLine uses string parameters
@@ -32,6 +33,33 @@
     Installation::destdir = "/mnt";
     Installation::scr_destdir = "/mnt";
 
+    // do several checks because of DMRAID problems - bug #328388
+    map out = (map)SCR::Execute (.target.bash_output, "
+/etc/init.d/boot.device-mapper start
+/etc/init.d/boot.lvm start
+echo 1 > /sys/module/md_mod/parameters/start_ro
+mdadm --examine --scan --config=partitions >/tmp/mdadm.conf
+mdadm --assemble --scan --config=/tmp/mdadm.conf
+");
+    y2milestone ("Device initialization output: %1", out);
+    out = (map)SCR::Execute (.target.bash_output, "
+hwinfo --disk | grep \"^Drive status: soft raid\"
+");
+    y2milestone ("Soft raid detection: %1", out);
+    if (out["exit"]:-1 == 0)
+    {
+       if (! Popup::ContinueCancel (
+// continue-cancel popup
+_("openSUSE installer detected DMRAID array.
+It is not supported by the openSUSE live installer.
+Continuing the installation may cause data loss.")))
+       {
+           UI::CloseDialog ();
+           return `back;
+       }
+    }
+
+
     // FIXME hack because of bootloader - libzypp does not contain product database
     Product::name = "openSUSE";
 

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages