[yast-commit] r62874 - in /branches/SuSE-Linux-11_3-Branch/country: VERSION package/yast2-country.changes timezone/src/Timezone.ycp timezone/src/dialogs.ycp
Author: jsuchome Date: Wed Nov 24 11:09:26 2010 New Revision: 62874 URL: http://svn.opensuse.org/viewcvs/yast?rev=62874&view=rev Log: - call mkinitrd also when hwclock changes (bnc#638128, bnc#638185) - 2.19.20 Modified: branches/SuSE-Linux-11_3-Branch/country/VERSION branches/SuSE-Linux-11_3-Branch/country/package/yast2-country.changes branches/SuSE-Linux-11_3-Branch/country/timezone/src/Timezone.ycp branches/SuSE-Linux-11_3-Branch/country/timezone/src/dialogs.ycp Modified: branches/SuSE-Linux-11_3-Branch/country/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-11_3-Branch/country/VERSION?rev=62874&r1=62873&r2=62874&view=diff ============================================================================== --- branches/SuSE-Linux-11_3-Branch/country/VERSION (original) +++ branches/SuSE-Linux-11_3-Branch/country/VERSION Wed Nov 24 11:09:26 2010 @@ -1 +1 @@ -2.19.19 +2.19.20 Modified: branches/SuSE-Linux-11_3-Branch/country/package/yast2-country.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-11_3-Branch/country/package/yast2-country.changes?rev=62874&r1=62873&r2=62874&view=diff ============================================================================== --- branches/SuSE-Linux-11_3-Branch/country/package/yast2-country.changes (original) +++ branches/SuSE-Linux-11_3-Branch/country/package/yast2-country.changes Wed Nov 24 11:09:26 2010 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Wed Nov 24 10:06:31 CET 2010 - jsuchome@suse.cz + +- call mkinitrd also when hwclock changes (bnc#638128, bnc#638185) +- 2.19.20 + +------------------------------------------------------------------- Tue Aug 31 11:43:09 CEST 2010 - jsuchome@suse.cz - mkinitrd call is needed after time change with localtime Modified: branches/SuSE-Linux-11_3-Branch/country/timezone/src/Timezone.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-11_3-Branch/country/timezone/src/Timezone.ycp?rev=62874&r1=62873&r2=62874&view=diff ============================================================================== --- branches/SuSE-Linux-11_3-Branch/country/timezone/src/Timezone.ycp (original) +++ branches/SuSE-Linux-11_3-Branch/country/timezone/src/Timezone.ycp Wed Nov 24 11:09:26 2010 @@ -59,6 +59,8 @@ */ global boolean windows_partition = false; +// if mkinitrd should be called at the end +global boolean call_mkinitrd = false; // translation of correct timezone to the one that could be shown in map widget global map <string,string> yast2zonetab = $[ @@ -754,6 +756,11 @@ y2milestone( "Save Saved data for timezone: <%1>", timezone ); + if (call_mkinitrd && !Stage::initial ()) + { + CallMkinitrd (); + } + return; } Modified: branches/SuSE-Linux-11_3-Branch/country/timezone/src/dialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-11_3-Branch/country/timezone/src/dialogs.ycp?rev=62874&r1=62873&r2=62874&view=diff ============================================================================== --- branches/SuSE-Linux-11_3-Branch/country/timezone/src/dialogs.ycp (original) +++ branches/SuSE-Linux-11_3-Branch/country/timezone/src/dialogs.ycp Wed Nov 24 11:09:26 2010 @@ -386,17 +386,10 @@ if (Timezone::hwclock == "--localtime" && !Stage::initial ()) { Timezone::Set (Timezone::timezone, true); + Timezone::call_mkinitrd = true; } Timezone::SetTime( year, month, day, hour, minute, second ); - - if (Timezone::hwclock == "--localtime" && !Stage::initial ()) - { - // busy message - Popup::ShowFeedback ("", _("Updating initrd...")); - Timezone::CallMkinitrd (); - Popup::ClearFeedback (); - } } } } @@ -439,6 +432,7 @@ boolean changed_time = false; string timezone = Timezone::timezone; string timezone_old = timezone; + string timezone_initial = timezone; string hwclock = Timezone::hwclock; y2milestone ( "timezone_old %1", timezone_old ); @@ -875,6 +869,12 @@ Timezone::user_decision = true; Timezone::user_hwclock = true; Timezone::ntp_used = ntp_used; + // See bnc#638185c5: refresh_initrd should be called if HWCLOCK is changed (--localtime <-> --utc) and/or + // if --localtime is set and TIMEZONE will be changed. + if (hwclock_s != hwclock_s_initial || (hwclock_s == `hwclock_localtime && timezone != timezone_initial)) + { + Timezone::call_mkinitrd = true; + } if (ntp_used && ntp_server != "") { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
jsuchome@svn2.opensuse.org