Author: jsuchome Date: Wed Oct 10 14:33:52 2007 New Revision: 41317 URL: http://svn.opensuse.org/viewcvs/yast?rev=41317&view=rev Log: - add a default user to the iso template (#328145) - new template based on current kiwi-desc-livesystem (#328003) - do not allow configuration without name (#328003) - 2.15.9 Added: branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/init.d/create_xconf (with props) Removed: branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/group branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/init.d/boot branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/inittab branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/passwd branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/shadow branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/sysconfig/console branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/sysconfig/keyboard branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/sysconfig/network/config branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/sysconfig/network/dhcp branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/sysconfig/network/ifcfg-lo branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/sysconfig/network/ifroute-lo branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/sysconfig/network/routes branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/sysconfig/windowmanager branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/xen/root/etc/passwd branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/xen/root/etc/shadow branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/xen/root/etc/sysconfig/network/dhcp branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/xen/root/etc/sysconfig/network/ifcfg-lo branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/xen/root/etc/sysconfig/network/ifroute-lo Modified: branches/SuSE-Linux-10_3-Branch/product-creator/VERSION branches/SuSE-Linux-10_3-Branch/product-creator/agent-kiwi/ag_kiwi branches/SuSE-Linux-10_3-Branch/product-creator/package/yast2-product-creator.changes branches/SuSE-Linux-10_3-Branch/product-creator/src/Kiwi.ycp branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/config.sh branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/config.xml branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/Makefile.am branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/init.d/Makefile.am branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/sysconfig/Makefile.am branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/sysconfig/network/Makefile.am branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/xen/config.xml branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/xen/root/etc/Makefile.am branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/xen/root/etc/sysconfig/network/Makefile.am branches/SuSE-Linux-10_3-Branch/product-creator/src/kiwi_dialogs.ycp Modified: branches/SuSE-Linux-10_3-Branch/product-creator/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-10_3-Branch/product-creator/VERSION?rev=41317&r1=41316&r2=41317&view=diff ============================================================================== --- branches/SuSE-Linux-10_3-Branch/product-creator/VERSION (original) +++ branches/SuSE-Linux-10_3-Branch/product-creator/VERSION Wed Oct 10 14:33:52 2007 @@ -1 +1 @@ -2.15.8 +2.15.9 Modified: branches/SuSE-Linux-10_3-Branch/product-creator/agent-kiwi/ag_kiwi URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-10_3-Branch/product-creator/agent-kiwi/ag_kiwi?rev=41317&r1=41316&r2=41317&view=diff ============================================================================== --- branches/SuSE-Linux-10_3-Branch/product-creator/agent-kiwi/ag_kiwi (original) +++ branches/SuSE-Linux-10_3-Branch/product-creator/agent-kiwi/ag_kiwi Wed Oct 10 14:33:52 2007 @@ -36,7 +36,7 @@ for (my $i=1;$i<= $packageNodeList->size();$i++) { my $node = $packageNodeList -> get_node($i); my $type = $node -> getAttribute ("type"); - y2milestone ("package list type: $type"); + y2debug ("package list type: $type"); $retmap{$key}{$type} = {}; my $patterntype = $node -> getAttribute ("patternType"); $retmap{$key}{$type}{"patternType"} = $patterntype if $patterntype; @@ -60,9 +60,10 @@ } my $prefs = $optionsNodeList -> get_node(1); foreach my $tag ("packagemanager", "version", "rpm-check-signatures", - "rpm-force", "size", "defaultdestination") { + "rpm-force", "size", "defaultdestination", "defaultroot", "locale") + { my $element = $prefs -> getElementsByTagName ($tag); - $retmap{$tag} = $element-> get_node(1)->textContent () if ($element); + $retmap{$tag} = $element->get_node(1)->textContent () if ($element); } # now get the 'type' attributes # example: <type primary="true" boot="isoboot/suse-10.3" flags="compressed">iso</type> @@ -96,11 +97,17 @@ my $image = $systemTree -> getElementsByTagName ("image")->get_node (1); my $image_name = $image -> getAttribute ("name"); - $retmap{"name"} = $image_name if $image_name; + if ($image_name) { + $retmap{"name"} = $image_name; + y2milestone ("image name: $image_name"); + } my $scheme_ver = $image -> getAttribute ("schemeversion"); $retmap{"schemeversion"} = $scheme_ver if $scheme_ver; + my $inherit = $image -> getAttribute ("inherit"); + $retmap{"inherit"} = $inherit if $inherit; + $retmap{"users"} = {}; foreach my $usernode ($usrdataNodeList -> get_nodelist()) { my $group = $usernode -> getAttribute("group"); @@ -123,7 +130,7 @@ for (my $i=1;$i<= $driversNodeList->size();$i++) { my $node = $driversNodeList -> get_node($i); my $type = $node -> getAttribute ("type"); - y2milestone ("driver list type: $type"); + y2debug ("driver list type: $type"); $retmap{$key}{$type} = {}; foreach my $tag ("file") { my @list = (); Modified: branches/SuSE-Linux-10_3-Branch/product-creator/package/yast2-product-creator.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-10_3-Branch/product-creator/package/yast2-product-creator.changes?rev=41317&r1=41316&r2=41317&view=diff ============================================================================== --- branches/SuSE-Linux-10_3-Branch/product-creator/package/yast2-product-creator.changes (original) +++ branches/SuSE-Linux-10_3-Branch/product-creator/package/yast2-product-creator.changes Wed Oct 10 14:33:52 2007 @@ -1,4 +1,12 @@ ------------------------------------------------------------------- +Thu Oct 4 09:50:06 CEST 2007 - jsuchome@suse.cz + +- add a default user to the iso template (#328145) +- new template based on current kiwi-desc-livesystem (#328003) +- do not allow configuration without name (#328003) +- 2.15.9 + +------------------------------------------------------------------- Mon Sep 24 08:44:56 CEST 2007 - jsuchome@suse.cz - do not close module after kiwi failure (#327593) Modified: branches/SuSE-Linux-10_3-Branch/product-creator/src/Kiwi.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-10_3-Branch/product-creator/src/Kiwi.ycp?rev=41317&r1=41316&r2=41317&view=diff ============================================================================== --- branches/SuSE-Linux-10_3-Branch/product-creator/src/Kiwi.ycp (original) +++ branches/SuSE-Linux-10_3-Branch/product-creator/src/Kiwi.ycp Wed Oct 10 14:33:52 2007 @@ -69,7 +69,7 @@ /** * generate the 'repository' tag */ - map get_source_value (string source) { + map get_source_value (string source, map config) { string type = "yast2"; string source_path = adapt_source_path (source); @@ -86,7 +86,7 @@ type = "rpm-md"; } }); - return $[ + map ret = $[ "__key" : "repository", "type" : type, "__children": [ @@ -96,6 +96,7 @@ ] ] ]; + return ret; // FIXME add status? } /** @@ -118,10 +119,11 @@ "__value" : task, "primary" : "true", "boot" : boot_image, -//FIXME (KiwiConfig["compressed"]:false ? ",compressed" : ""), ]; if (task != "iso") - ret["filesystem"] = "ext3"; + ret["filesystem"] = config["type",task,"filesystem"]:"ext3"; + if (config["type",task,"flags"]:"" != "") + ret["flags"] = config["type",task,"flags"]:""; return ret; } @@ -400,7 +402,7 @@ } write_list[0,"__children"] = union (write_list[0,"__children"]:[], maplist (string source, (list<string>) KiwiConfig["sources"]:[], - ``(get_source_value (source)) + ``(get_source_value (source, KiwiConfig)) ) ); write_list[0,"__children"] = union (write_list[0,"__children"]:[], [ @@ -451,6 +453,10 @@ SCR::Execute (.target.bash, "chmod +x " + config_dir + "/" + file); } }); + foreach (string file, KiwiConfig["import_files"]:[], { + y2milestone ("copying %1 to %2", file,config_dir); + SCR::Execute (.target.bash, sformat ("cp -ar %1 %2/", file,config_dir)); + }); return true; } @@ -514,17 +520,26 @@ symbol ret = nil; boolean creating = false; + boolean first_lines = false; + integer lines_show = 0; + integer times_read = 0; do { ret = (symbol) UI::PollInput(); if ((boolean) SCR::Read(.background.output_open) && - (integer) SCR::Read(.background.newlines)>0) + (integer) SCR::Read(.background.newlines) > lines_show) { + if (times_read > 10) + lines_show = 20; + else + times_read = times_read + 1; update_output (); } else if (!(boolean)SCR::Read(.background.isrunning)) { update_output (); + lines_show = 0; + times_read = 0; integer status = (integer) SCR::Read (.background.status); if (status != 0) Modified: branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/config.sh URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/config.sh?rev=41317&r1=41316&r2=41317&view=diff ============================================================================== --- branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/config.sh (original) +++ branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/config.sh Wed Oct 10 14:33:52 2007 @@ -22,6 +22,18 @@ test -f /.profile && . /.profile #====================================== +# Sound? +#-------------------------------------- + +# Load sound drivers by default +perl -ni -e 'm,^blacklist snd-, || print;' \ + /etc/modprobe.d/blacklist + +# and unmute their mixers. +perl -pi -e 's,/sbin/alsactl -F restore,/bin/set_default_volume -f,;' \ + /etc/udev/rules.d/40-alsa.rules + +#====================================== # Greeting... #-------------------------------------- echo "Configure image: [$name]..." @@ -30,10 +42,71 @@ # Activate services #-------------------------------------- suseActivateServices + +#====================================== +# Deactivate services +#-------------------------------------- suseRemoveService boot.multipath suseRemoveService boot.device-mapper suseRemoveService mdadmd suseRemoveService multipathd +suseRemoveService rpmconfigcheck +suseRemoveService waitfornm +suseRemoveService smb +suseRemoveService xfs +suseRemoveService nmb +suseRemoveService autofs +suseRemoveService rpasswdd +suseRemoveService boot.scsidev +suseRemoveService boot.md +suseInsertService create_xconf +suseService boot.rootfsck off +# these two we want to disable for policy reasons +chkconfig sshd off +chkconfig cron off + +# these are disabled because kiwi enables them without being default +chkconfig aaeventd off +chkconfig autoyast off +chkconfig boot.sched off +chkconfig create_xconf off +chkconfig dvb off +chkconfig esound off +chkconfig fam off +chkconfig festival off +chkconfig hotkey-setup off +chkconfig ipxmount off +chkconfig irda off +chkconfig java.binfmt_misc off +chkconfig joystick off +chkconfig lirc off +chkconfig lm_sensors off +chkconfig nfs off +chkconfig ntp off +chkconfig openct off +chkconfig pcscd off +chkconfig powerd off +chkconfig raw off +chkconfig saslauthd off +chkconfig spamd off +chkconfig xinetd off +chkconfig ypbind off + +cd / +patch -p0 < /tmp/config.patch +rm /tmp/config.patch + +insserv + +rpm -e smart +rpm -e rpm-python +rpm -e python + +: > /var/log/zypper.log +rm -rf /var/cache/zypp/raw/* + +zypper addrepo http://download.opensuse.org/distribution/10.3/repo/oss/ 10.3 +zypper addrepo http://download.opensuse.org/update/10.3/ 10.3-update #====================================== # SuSEconfig Modified: branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/config.xml URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/config.xml?rev=41317&r1=41316&r2=41317&view=diff ============================================================================== --- branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/config.xml (original) +++ branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/config.xml Wed Oct 10 14:33:52 2007 @@ -10,41 +10,17 @@ <rpm-check-signatures>False</rpm-check-signatures> <rpm-force>True</rpm-force> </preferences> + <users group="users"> + <user home="/home/linux" name="linux"/> + <user home="/root" name="root"/> + </users> <packages type="image" patternType="plusRecommended"> <package name="xkeyboard-config"/> + <package name="sax2"/> <opensusePattern name="default"/> <opensusePattern name="base"/> <opensusePattern name="x11"/> - <ignore name="smtp_daemon"/> - <ignore name="pfscalibratio"/> - <ignore name="jaf-demo"/> - <ignore name="jaf-javadoc"/> - <ignore name="jaf-manual"/> - <ignore name="jai"/> - <ignore name="java-1_4_2-sun"/> - <ignore name="java-1_4_2-sun-alsa"/> - <ignore name="java-1_4_2-sun-devel"/> - <ignore name="java-1_4_2-sun-jdbc"/> - <ignore name="java-1_4_2-sun-plugin"/> - <ignore name="javamail-manual"/> - <ignore name="jmx-javadoc"/> - <ignore name="jta-javadoc"/> - <ignore name="mcelog"/> - <ignore name="numactl"/> - <ignore name="wesnoth-data-small"/> - <ignore name="sendmail"/> - <ignore name="exim"/> - <ignore name="AdobeICCProfiles"/> - <ignore name="RealPlayer"/> - <ignore name="agfa-fonts"/> - <ignore name="flash-player"/> - <ignore name="java-1_5_0-sun"/> - <ignore name="java-1_5_0-sun-plugin"/> - <ignore name="java-1_5_0-sun-jdbc"/> - <ignore name="java-1_5_0-sun-devel"/> - <ignore name="java-1_5_0-sun-alsa"/> - <ignore name="opensuse-quickstart_en"/> - <ignore name="util-linux-crypto"/> + <opensusePattern name="kde"/> </packages> <packages type="xen" memory="512" disk="/dev/sda"> <package name="kernel-xen"/> Modified: branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/Makefile.am URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/Makefile.am?rev=41317&r1=41316&r2=41317&view=diff ============================================================================== --- branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/Makefile.am (original) +++ branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/Makefile.am Wed Oct 10 14:33:52 2007 @@ -5,11 +5,4 @@ ydatadir = @ydatadir@/product-creator/kiwi_templates/iso/root/etc -ydata_DATA = \ - group \ - passwd \ - shadow \ - inittab - - -EXTRA_DIST = $(ydata_DATA) +#EXTRA_DIST = $(ydata_DATA) Modified: branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/init.d/Makefile.am URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/init.d/Makefile.am?rev=41317&r1=41316&r2=41317&view=diff ============================================================================== --- branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/init.d/Makefile.am (original) +++ branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/init.d/Makefile.am Wed Oct 10 14:33:52 2007 @@ -4,6 +4,6 @@ ydatadir = @ydatadir@/product-creator/kiwi_templates/iso/root/etc/init.d ydata_SCRIPTS = \ - boot + create_xconf EXTRA_DIST = $(ydata_SCRIPTS) Added: branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/init.d/create_xconf URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/init.d/create_xconf?rev=41317&view=auto ============================================================================== --- branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/init.d/create_xconf (added) +++ branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/init.d/create_xconf Wed Oct 10 14:33:52 2007 @@ -0,0 +1,68 @@ +#! /bin/sh +# Copyright (c) 1995-2003 SuSE Linux AG, Nuernberg, Germany. +# All rights reserved. +# +### BEGIN INIT INFO +# Provides: create_xconf +# Required-Start: $local_fs +# Required-Stop: +# Default-Start: 5 +# Default-Stop: +# X-Start-Before: earlyxdm +# Description: Call sax +### END INIT INFO + +# First reset status of this service +. /etc/rc.status +rc_reset + +# Return values acc. to LSB for all commands but status: +# 0 - success +# 1 - generic or unspecified error +# 2 - invalid or excess argument(s) +# 3 - unimplemented feature (e.g. "reload") +# 4 - insufficient privilege +# 5 - program is not installed +# 6 - program is not configured +# 7 - program is not running + +case "$1" in + start) + echo -n "Creating X Config" + # create config file if not yet done + if [ ! -f /etc/X11/xorg.conf ];then + /usr/sbin/sax2 -c 0 -a -i &>/dev/null + fi + rc_status -v + ;; + stop) + ;; + try-restart) + rc_status + ;; + restart) + rc_status + ;; + try-restart-iburst) + rc_status + ;; + force-reload) + # Does not support signalling to reload + $0 try-restart + rc_status + ;; + reload) + rc_status -v + ;; + status) + rc_status -v + ;; + probe) + rc_failed 3 + ;; + *) + echo "Usage: $0 {start|stop|status|try-restart|restart|try-restart-iburst|force-reload|reload|probe|ntptimeset}" + exit 1 + ;; +esac +rc_exit Modified: branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/sysconfig/Makefile.am URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/sysconfig/Makefile.am?rev=41317&r1=41316&r2=41317&view=diff ============================================================================== --- branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/sysconfig/Makefile.am (original) +++ branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/sysconfig/Makefile.am Wed Oct 10 14:33:52 2007 @@ -6,9 +6,6 @@ ydatadir = @ydatadir@/product-creator/kiwi_templates/iso/root/etc/sysconfig ydata_DATA = \ - console \ - displaymanager \ - keyboard \ - windowmanager + displaymanager EXTRA_DIST = $(ydata_DATA) Modified: branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/sysconfig/network/Makefile.am URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/sysconfig/network/Makefile.am?rev=41317&r1=41316&r2=41317&view=diff ============================================================================== --- branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/sysconfig/network/Makefile.am (original) +++ branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/sysconfig/network/Makefile.am Wed Oct 10 14:33:52 2007 @@ -5,12 +5,7 @@ ydatadir = @ydatadir@/product-creator/kiwi_templates/iso/root/etc/sysconfig/network ydata_DATA = \ - config \ - dhcp \ - ifcfg-eth0 \ - ifcfg-lo \ - ifroute-lo \ - routes + ifcfg-eth0 EXTRA_DIST = $(ydata_DATA) Modified: branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/xen/config.xml URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/xen/config.xml?rev=41317&r1=41316&r2=41317&view=diff ============================================================================== --- branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/xen/config.xml (original) +++ branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/xen/config.xml Wed Oct 10 14:33:52 2007 @@ -10,6 +10,10 @@ <rpm-check-signatures>False</rpm-check-signatures> <rpm-force>True</rpm-force> </preferences> + <users group="users"> + <user home="/home/linux" name="linux"/> + <user home="/root" name="root"/> + </users> <packages type="image"> <package name="OpenIPMI"/> <package name="lvm2"/> Modified: branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/xen/root/etc/Makefile.am URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/xen/root/etc/Makefile.am?rev=41317&r1=41316&r2=41317&view=diff ============================================================================== --- branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/xen/root/etc/Makefile.am (original) +++ branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/xen/root/etc/Makefile.am Wed Oct 10 14:33:52 2007 @@ -5,8 +5,4 @@ ydatadir = @ydatadir@/product-creator/kiwi_templates/xen/root/etc -ydata_DATA = \ - passwd \ - shadow - EXTRA_DIST = $(ydata_DATA) Modified: branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/xen/root/etc/sysconfig/network/Makefile.am URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/xen/root/etc/sysconfig/network/Makefile.am?rev=41317&r1=41316&r2=41317&view=diff ============================================================================== --- branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/xen/root/etc/sysconfig/network/Makefile.am (original) +++ branches/SuSE-Linux-10_3-Branch/product-creator/src/data/kiwi_templates/xen/root/etc/sysconfig/network/Makefile.am Wed Oct 10 14:33:52 2007 @@ -5,9 +5,6 @@ ydatadir = @ydatadir@/product-creator/kiwi_templates/xen/root/etc/sysconfig/network ydata_DATA = \ - dhcp \ - ifcfg-eth0 \ - ifcfg-lo \ - ifroute-lo + ifcfg-eth0 EXTRA_DIST = $(ydata_DATA) Modified: branches/SuSE-Linux-10_3-Branch/product-creator/src/kiwi_dialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-10_3-Branch/product-creator/src/kiwi_dialogs.ycp?rev=41317&r1=41316&r2=41317&view=diff ============================================================================== --- branches/SuSE-Linux-10_3-Branch/product-creator/src/kiwi_dialogs.ycp (original) +++ branches/SuSE-Linux-10_3-Branch/product-creator/src/kiwi_dialogs.ycp Wed Oct 10 14:33:52 2007 @@ -759,6 +759,19 @@ KiwiConfig[file] = contents; } }); + // take care of the rest in the input directory (#330052) + list import_files = []; + map out = (map) SCR::Execute (.target.bash_output, + sformat ("ls -A1 -d %1/* 2>/dev/null", kiwi_configuration)); + foreach (string line, splitstring (out["stdout"]:"", "\n"), { + if (line == "") return; + string last = substring (line, findlastof (line, "/") + 1); + if (contains (["images.sh", "config.sh", "config.xml", "root","config"], + last)) + return; + import_files = add (import_files, line); + }); + KiwiConfig["import_files"] = import_files; map<string,any> read_config = Kiwi::ReadConfigXML (kiwi_configuration); if (!KiwiConfig["_imported"]:false) @@ -1411,6 +1424,8 @@ kiwi_configuration = dir; Config = eval (Kiwi::ReadConfigXML (kiwi_configuration)); name = Config["name"]:""; + if (Config["iso-directory"]:"" != "") + UI::ChangeWidget (`id (`out_dir),`Value,Config["iso-directory"]:""); repositories = $[]; foreach (map repo, (list<map>) Config["repository"]:[], { string source = repo["source",0,"path"]:""; @@ -1618,6 +1633,14 @@ } else if (ret == `next) { + name = (string) UI::QueryWidget (`id (`config), `Value); + if (name == "") + { + // error popup + Report::Error(_("Enter the name of the configuration.")); + UI::SetFocus (`id (`config)); + continue; + } out_dir = (string) UI::QueryWidget (`id (`out_dir), `Value); if (out_dir == "") { @@ -1637,6 +1660,7 @@ } if (ret == `next) { + Config["name"] = name; Config["kiwi_configuration_" + kiwi_task] = kiwi_configuration; Config["_imported"] = true; Config["iso-directory"] = out_dir; @@ -1650,8 +1674,6 @@ Pkg::SourceRestore (); Pkg::SourceLoad(); } - if (Config["name"]:"" == "") - Config["name"] = UI::QueryWidget (`id (`config), `Value); ProductCreator::Config = Config; ProductCreator::kiwi_task = kiwi_task; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org