Hello community, here is the log from the commit of package yast2-firstboot for openSUSE:Factory checked in at 2015-02-06 10:23:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-firstboot (Old) and /work/SRC/openSUSE:Factory/.yast2-firstboot.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "yast2-firstboot" Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-firstboot/yast2-firstboot.changes 2014-12-19 09:37:49.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.yast2-firstboot.new/yast2-firstboot.changes 2015-02-06 10:23:08.000000000 +0100 @@ -1,0 +2,7 @@ +Thu Feb 5 09:08:40 UTC 2015 - ancor@suse.com + +- Fixed the step for host name configuration + (bnc#911952, bnc#802822) +- 3.1.8 + +------------------------------------------------------------------- Old: ---- yast2-firstboot-3.1.7.tar.bz2 New: ---- yast2-firstboot-3.1.8.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-firstboot.spec ++++++ --- /var/tmp/diff_new_pack.vK0at1/_old 2015-02-06 10:23:09.000000000 +0100 +++ /var/tmp/diff_new_pack.vK0at1/_new 2015-02-06 10:23:09.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package yast2-firstboot # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: yast2-firstboot -Version: 3.1.7 +Version: 3.1.8 Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build ++++++ yast2-firstboot-3.1.7.tar.bz2 -> yast2-firstboot-3.1.8.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-firstboot-3.1.7/control/firstboot.xml new/yast2-firstboot-3.1.8/control/firstboot.xml --- old/yast2-firstboot-3.1.7/control/firstboot.xml 2014-12-18 19:37:08.000000000 +0100 +++ new/yast2-firstboot-3.1.8/control/firstboot.xml 2015-02-05 14:27:10.000000000 +0100 @@ -133,7 +133,7 @@ <module> <label>Host Name</label> <enabled config:type="boolean">false</enabled> - <name>inst_hostname</name> + <name>firstboot_hostname</name> </module> <module> <label>Network</label> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-firstboot-3.1.7/package/yast2-firstboot.changes new/yast2-firstboot-3.1.8/package/yast2-firstboot.changes --- old/yast2-firstboot-3.1.7/package/yast2-firstboot.changes 2014-12-18 19:37:08.000000000 +0100 +++ new/yast2-firstboot-3.1.8/package/yast2-firstboot.changes 2015-02-05 14:27:10.000000000 +0100 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Thu Feb 5 09:08:40 UTC 2015 - ancor@suse.com + +- Fixed the step for host name configuration + (bnc#911952, bnc#802822) +- 3.1.8 + +------------------------------------------------------------------- Thu Dec 18 18:35:37 UTC 2014 - lslezak@suse.cz - fixed bashisms in "S09-cleanup" script (authored by "Ledest") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-firstboot-3.1.7/package/yast2-firstboot.spec new/yast2-firstboot-3.1.8/package/yast2-firstboot.spec --- old/yast2-firstboot-3.1.7/package/yast2-firstboot.spec 2014-12-18 19:37:08.000000000 +0100 +++ new/yast2-firstboot-3.1.8/package/yast2-firstboot.spec 2015-02-05 14:27:10.000000000 +0100 @@ -17,7 +17,7 @@ Name: yast2-firstboot -Version: 3.1.7 +Version: 3.1.8 Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-firstboot-3.1.7/src/Makefile.am new/yast2-firstboot-3.1.8/src/Makefile.am --- old/yast2-firstboot-3.1.7/src/Makefile.am 2014-12-18 19:37:08.000000000 +0100 +++ new/yast2-firstboot-3.1.8/src/Makefile.am 2015-02-05 14:27:10.000000000 +0100 @@ -22,7 +22,8 @@ clients/firstboot_license_novell.rb \ clients/firstboot_network_write.rb \ clients/firstboot_setup_dhcp.rb \ - clients/firstboot_auto.rb + clients/firstboot_auto.rb \ + clients/firstboot_hostname.rb yncludedir = @yncludedir@/firstboot ynclude_DATA = \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-firstboot-3.1.7/src/clients/firstboot_hostname.rb new/yast2-firstboot-3.1.8/src/clients/firstboot_hostname.rb --- old/yast2-firstboot-3.1.7/src/clients/firstboot_hostname.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/yast2-firstboot-3.1.8/src/clients/firstboot_hostname.rb 2015-02-05 14:27:10.000000000 +0100 @@ -0,0 +1,83 @@ +# encoding: utf-8 + +#*************************************************************************** +# +# Copyright (c) 2015 SUSE LLC +# All Rights Reserved. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of version 2 of the GNU General Public License as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, contact Novell, Inc. +# +# To contact SUSE about this file by physical or electronic mail, +# you may find current contact information at www.suse.com +# +#************************************************************************** +# +module Yast + # Client to set the hostname during first boot + # + # This is just a renamed version of InstHostnameClient, which was removed from + # YaST2-Network when the second stage was removed from the installation + # process + class FirstbootHostnameClient < Client + def main + Yast.import "UI" + + textdomain "network" + + Yast.import "Arch" + Yast.import "DNS" + Yast.import "Host" + Yast.import "NetworkConfig" + Yast.import "String" + Yast.import "Wizard" + Yast.import "ProductControl" + Yast.import "ProductFeatures" + + Yast.include self, "network/services/dns.rb" + + # only once, do not re-propose if user gets back to this dialog from + # the previous screen - bnc#438124 + if !DNS.proposal_valid + DNS.Read # handles NetworkConfig too + DNS.ProposeHostname # generate random hostname, if none known so far + + # propose settings + DNS.dhcp_hostname = !Arch.is_laptop + + # get default value, from control.xml + DNS.write_hostname = DNS.DefaultWriteHostname + end + + Wizard.SetDesktopIcon("dns") + ret = HostnameDialog() + + if ret == :next + Host.Read + Host.ResolveHostnameToStaticIPs + Host.Write + + # do not let Lan override us, #152218 + DNS.proposal_valid = true + + # In InstHostname writing was delayed to do it with the rest of + # network configuration in lan_proposal. + # In FirstbootHostname it's probably safer to do it right away. + DNS.Write + end + + ret + end + end +end + +Yast::FirstbootHostnameClient.new.main -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org