[yast-commit] r62563 - /branches/tmp/jsrain/unattended-migration/update/src/modules/RootPart.ycp
Author: jsrain Date: Thu Oct 7 10:58:27 2010 New Revision: 62563 URL: http://svn.opensuse.org/viewcvs/yast?rev=62563&view=rev Log: better handling of warning in autoupgrade Modified: branches/tmp/jsrain/unattended-migration/update/src/modules/RootPart.ycp Modified: branches/tmp/jsrain/unattended-migration/update/src/modules/RootPart.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/jsrain/unattended-migration/update/src/modules/RootPart.ycp?rev=62563&r1=62562&r2=62563&view=diff ============================================================================== --- branches/tmp/jsrain/unattended-migration/update/src/modules/RootPart.ycp (original) +++ branches/tmp/jsrain/unattended-migration/update/src/modules/RootPart.ycp Thu Oct 7 10:58:27 2010 @@ -29,6 +29,7 @@ import "Report"; import "Label"; import "Stage"; + import "Wizard"; include "partitioning/custom_part_dialogs.ycp"; @@ -1398,10 +1399,15 @@ if (FstabUsesKernelDeviceNameForHarddisks(fstab)) { y2warning("fstab on %1 uses kernel device name for hard disks", root_device_current); - Popup::Warning(sformat(_("Some partitions in the system on %1 are mounted by kernel-device name. This is + string warning = sformat (_("Some partitions in the system on %1 are mounted by kernel-device name. This is not reliable for the update since kernel-device names are unfortunately not persistent. It is strongly recommended to start the old system and change the -mount-by method to any other method for all partitions."), root_device_current)); +mount-by method to any other method for all partitions."), root_device_current); + if (Mode::autoupgrade()) { + Popup::TimedWarning(warning, 10); + } else { + Popup::Warning(warning); + } } if (size (fstab) == 0) -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
jsrain@svn2.opensuse.org