Mailinglist Archive: yast-commit (1535 mails)

< Previous Next >
[yast-commit] r59256 - in /trunk/live-installer: VERSION package/yast2-live-installer.changes src/live_save_config_finish.ycp
  • From: jsrain@xxxxxxxxxxxxxxxx
  • Date: Fri, 30 Oct 2009 12:52:55 -0000
  • Message-id: <E1N3qyN-0005nb-Rq@xxxxxxxxxxxxxxxx>
Author: jsrain
Date: Fri Oct 30 13:52:55 2009
New Revision: 59256

URL: http://svn.opensuse.org/viewcvs/yast?rev=59256&view=rev
Log:
call correct_live_for_reboot script before reboot (bnc#550874)

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

Modified: trunk/live-installer/VERSION
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/live-installer/VERSION?rev=59256&r1=59255&r2=59256&view=diff
==============================================================================
--- trunk/live-installer/VERSION (original)
+++ trunk/live-installer/VERSION Fri Oct 30 13:52:55 2009
@@ -1 +1 @@
-2.18.7
+2.18.8

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=59256&r1=59255&r2=59256&view=diff
==============================================================================
--- trunk/live-installer/package/yast2-live-installer.changes (original)
+++ trunk/live-installer/package/yast2-live-installer.changes Fri Oct 30
13:52:55 2009
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Fri Oct 30 13:46:38 CET 2009 - jsrain@xxxxxxx
+
+- call correct_live_for_reboot script before reboot (bnc#550874)
+- 2.18.8
+
+-------------------------------------------------------------------
Wed Sep 9 14:54:15 CEST 2009 - jsrain@xxxxxxx

- enhanced error reporting (bnc#533601)

Modified: trunk/live-installer/src/live_save_config_finish.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/live-installer/src/live_save_config_finish.ycp?rev=59256&r1=59255&r2=59256&view=diff
==============================================================================
--- trunk/live-installer/src/live_save_config_finish.ycp (original)
+++ trunk/live-installer/src/live_save_config_finish.ycp Fri Oct 30 13:52:55
2009
@@ -21,6 +21,7 @@
import "Keyboard";
import "Installation";
import "Language";
+import "FileUtils";

any ret = nil;
string func = "";
@@ -60,6 +61,23 @@
Progress::Title (_("Saving time zone..."));
Timezone::Save();

+ // bnc#550874
+ // Call a script if it exists
+ string scriptname = "/usr/bin/correct_live_for_reboot";
+ if (FileUtils::Exists (scriptname)) {
+ y2milestone ("Calling %1 returned %2",
+ scriptname,
+ SCR::Execute (.target.bash_output, scriptname)
+ );
+ y2milestone ("Removing %1 returned %2",
+ scriptname,
+ SCR::Execute (.target.bash_output, sformat ("/bin/rm %1",
scriptname))
+ );
+ } else {
+ y2milestone ("Script %1 doesn't exist, skipping...", scriptname);
+ }
+
+
}
else
{

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

< Previous Next >
This Thread
  • No further messages