Hello community, here is the log from the commit of package kiwi for openSUSE:12.1 checked in at 2011-10-27 19:32:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:12.1/kiwi (Old) and /work/SRC/openSUSE:12.1/.kiwi.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kiwi", Maintainer is "[email protected]" Changes: -------- --- /work/SRC/openSUSE:12.1/kiwi/kiwi.changes 2011-10-24 12:57:53.000000000 +0200 +++ /work/SRC/openSUSE:12.1/.kiwi.new/kiwi.changes 2011-10-28 17:10:16.000000000 +0200 @@ -1,0 +2,200 @@ +Thu Oct 27 15:26:53 CEST 2011 - [email protected] + +- v4.98.10 released + +------------------------------------------------------------------- +Thu Oct 27 15:24:38 CEST 2011 - [email protected] + +- removed __checkNameValid() checker function and make sure + that an arch string as part of the name attribute doesn't + cause any trouble (bnc #716992) + +------------------------------------------------------------------- +Thu Oct 27 12:38:58 CEST 2011 - [email protected] + +- v4.98.9 released + +------------------------------------------------------------------- +Thu Oct 27 12:38:14 CEST 2011 - [email protected] + +- arch check in __checkNameValid is too restrictive + +------------------------------------------------------------------- +Thu Oct 27 12:15:40 CEST 2011 - [email protected] + +- v4.98.8 released + +------------------------------------------------------------------- +Thu Oct 27 12:07:41 CEST 2011 - [email protected] + +- fixed quoting of parameters in config.isoclient + +------------------------------------------------------------------- +Thu Oct 27 11:47:49 CEST 2011 - [email protected] + +- DB: update documentation + + Date: Thu Oct 27 05:19:20 2011 -0400 + + change URL in spec file to point to the new homw of the source, github vs. berlios + + Date: Thu Oct 27 05:13:15 2011 -0400 + + generated html doc + +------------------------------------------------------------------- +Thu Oct 27 10:59:10 CEST 2011 - [email protected] + +- reverted commit 620e4e65d05b257e4fc8c6017908e6ba9f75e28e + this was a parted bug which is now fixed + + Date: Wed Oct 26 16:28:46 2011 -0400 + + add section about cross platform build, expand the introductory section of chapter 4 + +------------------------------------------------------------------- +Wed Oct 26 21:58:07 CEST 2011 - [email protected] + +- v4.98.7 released + +------------------------------------------------------------------- +Wed Oct 26 21:55:05 CEST 2011 - [email protected] + +- fixed appliance name escaping. One can use any string for + the displayname attribute which is now properly escaped + via perl's quotemeta(). Along with this change the image + name attribute must match the pattern [a-zA-Z0-9_\-\.] + and is not allowed to have the architecture string + as part of the name (bnc #716992) + +------------------------------------------------------------------- +Wed Oct 26 15:57:19 CEST 2011 - [email protected] + +- v4.98.6 released + +------------------------------------------------------------------- +Wed Oct 26 15:55:32 CEST 2011 - [email protected] + +- libcrc32 module depends on crc32c, but it does not state this dependency + explicitely (modules.dep does not contain this information). Since KIWI + relies od modules.dep to clean up unused modules in the initrd, this can + break module loading. This patch ensures that the module is kept in the + initrd and not purged. + +------------------------------------------------------------------- +Wed Oct 26 15:38:59 CEST 2011 - [email protected] + +- revert back to parted hex id's, this reverts commits: + 47f8bf758861a3d8cdbc2c188024f423e6ee45db + 47f8bf758861a3d8cdbc2c188024f423e6ee45db + +------------------------------------------------------------------- +Wed Oct 26 14:47:02 CEST 2011 - [email protected] + +- v4.98.5 released + +------------------------------------------------------------------- +Wed Oct 26 14:44:39 CEST 2011 - [email protected] + +- fixed creation of XML diff in log file + +------------------------------------------------------------------- +Wed Oct 26 12:49:23 CEST 2011 - [email protected] + +- fixed parted flag setup in KIWILinuxRC code, 12.1 and upstream + parted doesn't support the hex id's like 'set type 0x..' + +------------------------------------------------------------------- +Wed Oct 26 12:38:34 CEST 2011 - [email protected] + +- fixed KIWIXMLInfo unit test due to last --info changes + +------------------------------------------------------------------- +Wed Oct 26 11:22:25 CEST 2011 - [email protected] + +- call createURLList() only on demand. Also provide accessor + methods for xml->{urllist} and xml->{urlhash}, don't access + these object data directly anymore. createURLList() was called + in the KIWIXML constructor but changes to the XML might happen + at a later point in time. So it makes sense to build the final + URL list when access to it is requested + +------------------------------------------------------------------- +Tue Oct 25 17:30:15 CEST 2011 - [email protected] + +- call setupNetworkStatic in suse-preinit for s390. With this + change we write the network configuration as received by + the initrd into the system config files below /etc/sysconfig + +------------------------------------------------------------------- +Tue Oct 25 17:20:53 CEST 2011 - [email protected] + +- added function convertCIDRToNetmask() which allows the interpretation + of the CIDR extension like 192.168.1.1/24 to create a standard netmask + 255.255.255.0 out of it. + +------------------------------------------------------------------- +Tue Oct 25 13:04:57 CEST 2011 - [email protected] + +- fixed use of uninitialized value $free in KIWIXML.pm + +------------------------------------------------------------------- +Tue Oct 25 12:33:09 CEST 2011 - [email protected] + +- make the info module write the imagescan XML into a tmpfile (bnc #726337) + +------------------------------------------------------------------- +Tue Oct 25 11:36:43 CEST 2011 - [email protected] + +- added log information about cylinder size and count +- fixed parted flag setup, 12.1 and upstream parted doesn't + support the hex id's like 'set type 0x..' + +------------------------------------------------------------------- +Mon Oct 24 16:00:41 CEST 2011 - [email protected] + +- fixed default boot label selection in syslinux mode + +------------------------------------------------------------------- +Mon Oct 24 10:56:31 CEST 2011 - [email protected] + +- added support for overlay file and archive listing in info module + +------------------------------------------------------------------- +Fri Oct 21 16:43:56 CEST 2011 - [email protected] + +- fixed escaping of chown parameters (bnc #725706) + +------------------------------------------------------------------- +Thu Oct 20 16:53:59 CEST 2011 - [email protected] + +- added update repo path for 11.4 images due to grub bug (bnc #717836) + +------------------------------------------------------------------- +Wed Oct 19 14:44:12 CEST 2011 - [email protected] + +- check for FSTYPE == btrfs in createOriginSnapshot() + +------------------------------------------------------------------- +Wed Oct 19 13:05:00 CEST 2011 - [email protected] + +- fixed creation of btrfs origin snapshot. This is now done + on first boot of the appliance and not after kiwi prepare + +------------------------------------------------------------------- +Wed Oct 19 12:01:38 CEST 2011 - [email protected] + +- added baseSetupBtrfsOrigin() function which allows to add + an origin snapshot for the image root filesystem contents + +------------------------------------------------------------------- +Tue Oct 18 15:38:30 CEST 2011 - [email protected] + +- moved README to mkd style + +------------------------------------------------------------------- +Tue Oct 18 15:37:31 CEST 2011 - [email protected] + ++++ 3 more lines (skipped) ++++ between /work/SRC/openSUSE:12.1/kiwi/kiwi.changes ++++ and /work/SRC/openSUSE:12.1/.kiwi.new/kiwi.changes ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kiwi.spec ++++++ --- /var/tmp/diff_new_pack.VfNi1q/_old 2011-10-28 17:10:17.000000000 +0200 +++ /var/tmp/diff_new_pack.VfNi1q/_new 2011-10-28 17:10:17.000000000 +0200 @@ -17,7 +17,7 @@ # needsrootforbuild -Url: http://kiwi.berlios.de +Url: http://github.com/openSUSE/kiwi Name: kiwi BuildRequires: perl-Config-IniFiles perl-XML-LibXML perl-libwww-perl @@ -69,7 +69,7 @@ %endif %endif Summary: OpenSuSE - KIWI Image System -Version: 4.98.4 +Version: 4.98.10 Release: 1 Group: System/Management License: GPLv2 ++++++ kiwi-docu.tar.bz2 ++++++ /work/SRC/openSUSE:12.1/kiwi/kiwi-docu.tar.bz2 /work/SRC/openSUSE:12.1/.kiwi.new/kiwi-docu.tar.bz2 differ: char 11, line 1 ++++++ kiwi-repo.tar.bz2 ++++++ ++++++ kiwi.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/.revision new/kiwi/.revision --- old/kiwi/.revision 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/.revision 2011-10-26 14:47:33.000000000 +0200 @@ -1 +1 @@ -5ce5840e53704be6ea9749c624382c1e93429f9d +2f88fd27e0501929aeecd5408c0edd4bb4eb7e05 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/README new/kiwi/README --- old/kiwi/README 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/README 1970-01-01 01:00:00.000000000 +0100 @@ -1,49 +0,0 @@ -KIWI -==== - -The openSUSE KIWI Image System provides a complete operating -system image solution for Linux supported hardware platforms as -well as for virtualization systems like Xen, VMware, etc. The KIWI -architecture was designed as a two level system. The first stage, -based on a valid software package source, creates a so called -unpacked image according to the provided image description. -The second stage creates from a required unpacked image an -operating system image. The result of the second stage is called -a packed image or short an image. - -Installation ------------- - -packages for kiwi are provided at the openSUSE buildservice: -http://download.opensuse.org/repositories/Virtualization:/Appliances/ - -Usage ------ - -* make sure you have the kiwi-templates package installed -* build a live ISO example: - - kiwi --build suse-XXX-JeOS -d /tmp/myimage --type iso - -* run your OS in a VM like kvm - - kvm -cdrom /tmp/myimage/*.iso - -Mailing list ------------- - - http://groups.google.com/group/kiwi-images - -Contributing ------------- - -1. Fork it. -2. Create a branch (`git checkout -b my_kiwi`) -3. Commit your changes (`git commit -am "Added Snarkdown"`) -4. Push to the branch (`git push origin my_kiwi`) -5. Create an [Issue][1] with a link to your branch -6. Enjoy a refreshing Diet Coke and wait - -also see the git-review gem - -Remember to have fun :) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/README.mkd new/kiwi/README.mkd --- old/kiwi/README.mkd 1970-01-01 01:00:00.000000000 +0100 +++ new/kiwi/README.mkd 2011-10-25 15:40:01.000000000 +0200 @@ -0,0 +1,54 @@ +KIWI +==== + +Introduction +------------ + +The openSUSE KIWI Image System provides a complete operating +system image solution for Linux supported hardware platforms as +well as for virtualization systems like Xen, VMware, etc. The KIWI +architecture was designed as a two level system. The first stage, +based on a valid software package source, creates a so called +unpacked image according to the provided image description. +The second stage creates from a required unpacked image an +operating system image. The result of the second stage is called +a packed image or short an image. + +Installation +------------ + +packages for kiwi are provided at the openSUSE buildservice: +http://download.opensuse.org/repositories/Virtualization:/Appliances/ + +Usage +----- + +1. make sure you have the kiwi-templates package installed +2. build a live ISO example: + +```kiwi --build suse-XXX-JeOS -d /tmp/myimage --type iso +``` + +3. run your OS in a VM like kvm + +```kvm -cdrom /tmp/myimage/*.iso +``` + +Mailing list +------------ + +* http://groups.google.com/group/kiwi-images + +Contributing +------------ + +1. Fork it. +2. Create a branch (`git checkout -b my_kiwi`) +3. Commit your changes (`git commit -am "Added Snarkdown"`) +4. Push to the branch (`git push origin my_kiwi`) +5. Create an [Issue][1] with a link to your branch +6. Enjoy a refreshing Diet Coke and wait + +also see the git-review gem + +Remember to have fun :) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/kiwi.pl new/kiwi/kiwi.pl --- old/kiwi/kiwi.pl 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/kiwi.pl 2011-10-26 14:47:33.000000000 +0200 @@ -1057,6 +1057,12 @@ } $InitCache =~ s/\/$//; } + if (defined $ListXMLInfo) { + if (($ListXMLInfo !~ /^\//) && (! -d $ListXMLInfo)) { + $ListXMLInfo = $gdata->{System}."/".$ListXMLInfo; + } + $ListXMLInfo =~ s/\/$//; + } #======================================== # store uniq path to image description #---------------------------------------- @@ -1670,13 +1676,6 @@ # private Exit function, exit safely # --- my $code = $_[0]; - my $gdata= $global -> getGlobals(); - #========================================== - # Write temporary XML changes to logfile - #------------------------------------------ - if (defined $kiwi) { - $kiwi -> writeXML ($gdata->{Pretty}); - } #========================================== # Create log object if we don't have one... #------------------------------------------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/modules/KIWIBoot.pm new/kiwi/modules/KIWIBoot.pm --- old/kiwi/modules/KIWIBoot.pm 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/modules/KIWIBoot.pm 2011-10-27 12:16:41.000000000 +0200 @@ -386,7 +386,7 @@ my $minInodes; my $sizeXMLBytes = 0; my $spare = 100 * 1024 * 1024; # 100M free - my $fsoverhead = 1.4; # 4% filesystem overhead + my $fsoverhead = 1.4; my $fsopts = $cmdL -> getFilesystemOptions(); my $inodesize = $fsopts->[1]; my $inoderatio = $fsopts->[2]; @@ -921,7 +921,7 @@ $kiwi -> failed (); return undef; } - print FD "IMAGE=$namecd\n"; + print FD "IMAGE='".$namecd."'\n"; close FD; $kiwi -> info ("Importing system image: $system"); $status = qxx ("mv $system $tmpdir 2>&1"); @@ -1489,7 +1489,7 @@ $this -> cleanLoop (); return undef; } - print FD "IMAGE=$nameusb\n"; + print FD "IMAGE='".$nameusb."'\n"; close FD; $main::global -> umount(); $kiwi -> done(); @@ -2572,7 +2572,7 @@ qxx ("rm -rf $irddir"); return undef; } - print FD "IMAGE=$namecd\n"; + print FD "IMAGE='".$namecd."'\n"; close FD; } #========================================== @@ -2967,7 +2967,7 @@ #========================================== # setup boot loader default boot label/nr #------------------------------------------ - my $defaultBootNr = 0; + my $defaultBootNr = 0; if ($xml) { %type = %{$xml->getImageTypeAndAttributes()}; $cmdline = $type{cmdline}; @@ -3283,16 +3283,30 @@ print FD "gfxboot bootlogo"."\n"; } } + #========================================== + # Setup default title + #------------------------------------------ if ($type =~ /^KIWI (CD|USB)/) { - $title = $this -> makeLabel ("Install/Restore $label"); + if ($defaultBootNr == 0) { + $title = $this -> makeLabel ("Boot from Hard Disk"); + } elsif ($defaultBootNr == 1) { + $title = $this -> makeLabel ("Install/Restore $label"); + } else { + $title = $this -> makeLabel ( + "Failsafe -- Install/Restore $label" + ); + } } else { $title = $this -> makeLabel ("$label [ $type ]"); } print FD "default $title"."\n"; if ($type =~ /^KIWI (CD|USB)/) { - my $localboot = $this -> makeLabel ("Boot from Hard Disk"); - print FD "label $localboot\n"; + $title = $this -> makeLabel ("Boot from Hard Disk"); + print FD "label $title\n"; print FD "localboot 0x80\n"; + $title = $this -> makeLabel ("Install/Restore $label"); + } else { + $title = $this -> makeLabel ("$label [ $type ]"); } print FD "label $title"."\n"; push @labels,$title; @@ -4206,7 +4220,7 @@ chomp $status; $this->{pDiskCylinderSize} = $status; $status = qxx ( - "$parted | head -n 2 | tail -n 1 | cut -f2 -d: | tr -d cyl" + "$parted | head -n 3 | tail -n 1 | cut -f1 -d:" ); $result = $? >> 8; if ($result != 0) { @@ -4215,6 +4229,12 @@ } chomp $status; $this->{pDiskCylinders} = $status; + $kiwi -> loginfo ( + "Disk Cylinder size is: $this->{pDiskCylinderSize} kB\n" + ); + $kiwi -> loginfo ( + "Disk Cylinder count is: $this->{pDiskCylinders}\n" + ); return $status; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/modules/KIWICache.pm new/kiwi/modules/KIWICache.pm --- old/kiwi/modules/KIWICache.pm 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/modules/KIWICache.pm 2011-10-26 14:47:33.000000000 +0200 @@ -312,7 +312,7 @@ #========================================== # write XML changes to logfile... #------------------------------------------ - $kiwi -> writeXML ($this->{gdata}->{Pretty}); + $kiwi -> writeXMLDiff ($this->{gdata}->{Pretty}); #========================================== # Reformat log file for human readers... #------------------------------------------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/modules/KIWIGlobals.pm new/kiwi/modules/KIWIGlobals.pm --- old/kiwi/modules/KIWIGlobals.pm 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/modules/KIWIGlobals.pm 2011-10-27 15:33:03.000000000 +0200 @@ -40,7 +40,7 @@ # Globals (generic) #------------------------------------------ my %data; - $data{Version} = "4.98.4"; + $data{Version} = "4.98.10"; $data{Publisher} = "SUSE LINUX Products GmbH"; $data{Preparer} = "KIWI - http://kiwi.berlios.de"; $data{ConfigName} = "config.xml"; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/modules/KIWIImage.pm new/kiwi/modules/KIWIImage.pm --- old/kiwi/modules/KIWIImage.pm 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/modules/KIWIImage.pm 2011-10-27 12:16:41.000000000 +0200 @@ -1931,15 +1931,15 @@ return undef; } if ((! defined $gzip) || ($gzip =~ /^(unified|clic)/)) { - print FD "IMAGE=/dev/ram1;$namecd\n"; + print FD "IMAGE='/dev/ram1;$namecd'\n"; } else { - print FD "IMAGE=/dev/loop1;$namecd\n"; + print FD "IMAGE='/dev/loop1;$namecd'\n"; } if (defined $gzip) { if ($gzip =~ /^unified/) { - print FD "UNIONFS_CONFIG=/dev/ram1,/dev/loop1,aufs\n"; + print FD "UNIONFS_CONFIG='/dev/ram1,/dev/loop1,aufs'\n"; } elsif ($gzip =~ /^clic/) { - print FD "UNIONFS_CONFIG=/dev/ram1,/dev/loop1,clicfs\n"; + print FD "UNIONFS_CONFIG='/dev/ram1,/dev/loop1,clicfs'\n"; } else { print FD "COMBINED_IMAGE=yes\n"; } @@ -2885,8 +2885,8 @@ # IMAGE information #------------------------------------------ if (($type{compressed}) && ($type{compressed} eq 'true')) { - print FD "IMAGE=${device}${targetPartition};"; - print FD "$namecd;$server;$blocks;compressed"; + print FD "IMAGE='${device}${targetPartition};"; + print FD "$namecd;$server;$blocks;compressed'"; if ("$type{type}" eq "split" && defined $this->{imageTreeRW}) { print FD ",${device}${targetPartitionNext}"; print FD ";$namerw;$server;$blocks;compressed\n"; @@ -2894,8 +2894,8 @@ print FD "\n"; } } else { - print FD "IMAGE=${device}${targetPartition};"; - print FD "$namecd;$server;$blocks"; + print FD "IMAGE='${device}${targetPartition};"; + print FD "$namecd;$server;$blocks'"; if ("$type{type}" eq "split" && defined $this->{imageTreeRW}) { print FD ",${device}${targetPartitionNext}"; print FD ";$namerw;$server;$blocks\n"; @@ -2935,7 +2935,7 @@ $valid = 1; } if ($valid) { - print FD "UNIONFS_CONFIG=$value\n"; + print FD "UNIONFS_CONFIG='".$value."'\n"; } } #========================================== @@ -4025,7 +4025,7 @@ my $xml = $this->{xml}; my $mini = qxx ("find $extend | wc -l"); chomp $mini; my $minsize= qxx ("du -s --block-size=1 $extend | cut -f1"); chomp $minsize; - my $fsohead= 1.4; # 4% filesystem overhead + my $fsohead= 1.4; my $spare = 100 * 1024 * 1024; my $files = $mini; my $fsopts = $cmdL -> getFilesystemOptions(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/modules/KIWIImageCreator.pm new/kiwi/modules/KIWIImageCreator.pm --- old/kiwi/modules/KIWIImageCreator.pm 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/modules/KIWIImageCreator.pm 2011-10-26 14:47:33.000000000 +0200 @@ -174,6 +174,7 @@ # Apply XML over rides from command line #------------------------------------------ $xml = $this -> __applyBaseXMLOverrides($xml); + $kiwi -> writeXMLDiff ($this->{gdata}->{Pretty}); return $this -> __prepareTree ( $xml,$configDir,$rootTgtDir,$systemTree ); @@ -230,6 +231,7 @@ #------------------------------------------ $xml = $this -> __applyBaseXMLOverrides($xml); $xml = $this -> __applyAdditionalXMLOverrides($xml); + $kiwi -> writeXMLDiff ($this->{gdata}->{Pretty}); if (! $krc -> prepareChecks()) { return undef; } @@ -310,6 +312,7 @@ #------------------------------------------ $xml = $this -> __applyBaseXMLOverrides($xml); $xml = $this -> __applyAdditionalXMLOverrides($xml); + $kiwi -> writeXMLDiff ($this->{gdata}->{Pretty}); if (! $krc -> prepareChecks()) { return undef; } @@ -364,6 +367,7 @@ # Apply XML over rides from command line #------------------------------------------ $xml = $this -> __applyBaseXMLOverrides($xml); + $kiwi -> writeXMLDiff ($this->{gdata}->{Pretty}); #========================================== # Create destdir if needed #------------------------------------------ @@ -483,6 +487,7 @@ #------------------------------------------ $xml = $this -> __applyBaseXMLOverrides($xml); $xml = $this -> __applyAdditionalXMLOverrides($xml); + $kiwi -> writeXMLDiff ($this->{gdata}->{Pretty}); if (! $krc -> createChecks()) { return undef; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/modules/KIWILinuxRC.sh new/kiwi/modules/KIWILinuxRC.sh --- old/kiwi/modules/KIWILinuxRC.sh 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/modules/KIWILinuxRC.sh 2011-10-26 21:59:23.000000000 +0200 @@ -229,27 +229,18 @@ # will export each entry of the file as variable into # the current shell environment # ---- - IFS=" - " - local prefix=$1 #change name of key with a prefix + local prefix=$1 + cat - | grep -v ^# > /tmp/srcme + source /tmp/srcme while read line;do - echo $line | grep -qi "^#" && continue - key=`echo "$line" | cut -d '=' -f1` - item=`echo "$line" | cut -d '=' -f2-` - if [ -z "$key" ] || [ -z "$item" ];then - continue - fi - if ! echo $item | grep -E -q "^(\"|')";then - item="'"$item"'" - fi - Debug "$prefix$key=$item" - eval export "$prefix$key\=$item" - done + key=$(echo "$line" | cut -d '=' -f1) + eval "export $key" + eval "export $prefix$key=\$$key" + done < /tmp/srcme if [ ! -z "$ERROR_INTERRUPT" ];then Echo -e "$ERROR_INTERRUPT" systemException "*** interrupted ****" "shell" fi - IFS=$IFS_ORIG } #====================================== # unsetFile @@ -3960,6 +3951,33 @@ fi } #====================================== +# convertCIDRToNetmask +#-------------------------------------- +function convertCIDRToNetmask { + # /.../ + # convert the CIDR part to a useable netmask + # ---- + local cidr=$1 + local count=0 + for count in `seq 1 4`;do + if [ $((cidr / 8)) -gt 0 ];then + echo -n 255 + else + local remainder=$((cidr % 8)) + if [ $remainder -gt 0 ];then + echo -n $(( value = 256 - (256 >> remainder))) + else + echo -n 0 + fi + fi + cidr=$((cidr - 8)) + if [ $count -lt 4 ];then + echo -n . + fi + done + echo +} +#====================================== # setupNetworkStatic #-------------------------------------- function setupNetworkStatic { @@ -3968,6 +3986,14 @@ # or save the configuration depending on 'up' parameter # ---- local up=$1 + if [[ $hostip =~ / ]];then + #====================================== + # interpret the CIDR part and remove it from the hostip + #-------------------------------------- + local cidr=$(echo $hostip | cut -f2 -d/) + hostip=$(echo $hostip | cut -f1 -d/) + netmask=$(convertCIDRToNetmask $cidr) + fi if [ "$up" == "1" ];then #====================================== # activate network @@ -8074,6 +8100,25 @@ fi } #====================================== +# createOriginSnapshot +#-------------------------------------- +function createOriginSnapshot { + # /.../ + # create a snapshot origin which allows to keep + # track of any changes happened during the live + # time of the image. This origin snapshot requires + # the use of the btrfs filesystem + # ---- + if [ ! "$FSTYPE" = "btrfs" ];then + return + fi + if [ ! -x /sbin/btrfsctl ];then + echo "btrfsprogrs not installed... skipped" + return + fi + btrfsctl -s origin / +} +#====================================== # initialize #-------------------------------------- function initialize { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/modules/KIWILog.pm new/kiwi/modules/KIWILog.pm --- old/kiwi/modules/KIWILog.pm 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/modules/KIWILog.pm 2011-10-26 14:47:33.000000000 +0200 @@ -998,9 +998,9 @@ } #========================================== -# writeXML +# writeXMLDiff #------------------------------------------ -sub writeXML { +sub writeXMLDiff { my $this = shift; my $pretty = shift; my $data = $this->{xmlString}; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/modules/KIWIRoot.pm new/kiwi/modules/KIWIRoot.pm --- old/kiwi/modules/KIWIRoot.pm 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/modules/KIWIRoot.pm 2011-10-25 15:40:01.000000000 +0200 @@ -930,7 +930,7 @@ } } next if ! $ok; - my $data = qxx ("chroot $root chown -c root:root \"$file\" 2>&1"); + my $data = qxx ("chroot $root chown -c root:root '".$file."' 2>&1"); my $code = $? >> 8; if ($code != 0) { $kiwi -> warning ( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/modules/KIWISchema.rnc new/kiwi/modules/KIWISchema.rnc --- old/kiwi/modules/KIWISchema.rnc 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/modules/KIWISchema.rnc 2011-10-26 21:59:23.000000000 +0200 @@ -31,7 +31,7 @@ db:pubdate [ "2008-01-08" ] ] -image-name = xsd:token {pattern = "[^\s/]+"} +image-name = xsd:token {pattern = "[a-zA-Z0-9_\-\.]+"} locale-name = xsd:token {pattern = "[a-z]{2}_[A-Z]{2}(,[a-z]{2}_[A-Z]{2})*"} mac-address-type = xsd:token {pattern = "([0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}"} size-type = xsd:token {pattern = "\d*|image"} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/modules/KIWISchema.rng new/kiwi/modules/KIWISchema.rng --- old/kiwi/modules/KIWISchema.rng 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/modules/KIWISchema.rng 2011-10-26 21:59:23.000000000 +0200 @@ -29,7 +29,7 @@ </db:info> <define name="image-name"> <data type="token"> - <param name="pattern">[^\s/]+</param> + <param name="pattern">[a-zA-Z0-9_\-\.]+</param> </data> </define> <define name="locale-name"> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/modules/KIWIXML.pm new/kiwi/modules/KIWIXML.pm --- old/kiwi/modules/KIWIXML.pm 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/modules/KIWIXML.pm 2011-10-26 21:59:23.000000000 +0200 @@ -218,9 +218,9 @@ $this->{usrdataNodeList} = $usrdataNodeList; $this->{controlFile} = $controlFile; #========================================== - # Store object data (create URL list) + # Store object data #------------------------------------------ - $this -> createURLList (); + $this -> updateXML(); return $this; } @@ -331,6 +331,28 @@ } #========================================== +# getURLHash +#------------------------------------------ +sub getURLHash { + my $this = shift; + if (! $this->{urlhash}) { + $this -> createURLList(); + } + return $this->{urlhash}; +} + +#========================================== +# getURLList +#------------------------------------------ +sub getURLList { + my $this = shift; + if (! $this->{urllist}) { + $this -> createURLList(); + } + return $this->{urllist}; +} + +#========================================== # getImageName #------------------------------------------ sub getImageName { @@ -2352,7 +2374,7 @@ $result{kiwi_iname} = $name; } if ($dname) { - $result{kiwi_displayname} = $dname; + $result{kiwi_displayname} = quotemeta $dname; } if ($iver) { $result{kiwi_iversion} = $iver; @@ -2604,7 +2626,7 @@ foreach my $volume (@vollist) { my $name = $volume -> getAttribute ("name"); my $free = $volume -> getAttribute ("freespace"); - if ($free eq "all") { + if ((defined $free) && ($free eq "all")) { $allFree = $name; last; } @@ -3005,6 +3027,7 @@ my $what = shift; my $nopac= shift; my $kiwi = $this->{kiwi}; + my $urllist = $this -> getURLList(); my %pattr; my $nodes; if ($what ne "metapackages") { @@ -3119,7 +3142,7 @@ #------------------------------------------ # 1) try to use libsatsolver... my $psolve = new KIWISatSolver ( - $kiwi,\@pattlist,$this->{urllist},"solve-patterns", + $kiwi,\@pattlist,$urllist,"solve-patterns", undef,undef,undef,$ptype ); if (! defined $psolve) { @@ -3295,6 +3318,7 @@ my $kiwi = $this->{kiwi}; my $nodes = $this->{packageNodeList}; my $manager = $this->getPackageManager(); + my $urllist = $this -> getURLList(); my @result = (); my @delete = (); my %meta = (); @@ -3384,7 +3408,7 @@ } } else { my $psolve = new KIWISatSolver ( - $kiwi,\@result,$this->{urllist},"solve-patterns", + $kiwi,\@result,$urllist,"solve-patterns", undef,undef,undef,$ptype ); if (! defined $psolve) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/modules/KIWIXMLInfo.pm new/kiwi/modules/KIWIXMLInfo.pm --- old/kiwi/modules/KIWIXMLInfo.pm 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/modules/KIWIXMLInfo.pm 2011-10-26 14:47:33.000000000 +0200 @@ -20,6 +20,7 @@ use strict; use warnings; require Exporter; +use File::Find; use XML::LibXML; #========================================== @@ -135,18 +136,28 @@ # --- my $this = shift; my $requests = shift; + my $kiwi = $this->{kiwi}; my $infoRequests = $this -> __checkRequests($requests); if (! $infoRequests) { return undef; } + my $outfile = qxx ("mktemp -q /tmp/kiwi-xmlinfo-XXXXXX 2>&1"); + my $code = $? >> 8; chomp $outfile; + if ($code != 0) { + $kiwi -> error ("Couldn't create tmp file: $outfile: $!"); + $kiwi -> failed (); + return undef; + } $this -> {kiwi} -> info ("Reading image description [ListXMLInfo]...\n"); my $infoTree = $this -> __getTree($infoRequests); if (! $infoTree) { return undef; } - open (my $F, "|xsltproc $this->{gdata}->{Pretty} -"); + open (my $F, "|xsltproc $this->{gdata}->{Pretty} - | cat > $outfile"); print $F $infoTree -> toString(); close $F; + system ("cat $outfile"); + $kiwi -> info ("Requested information written to: $outfile\n"); return 1; } @@ -184,6 +195,8 @@ $supportedInfoReq{'patterns'} = 'List configured patterns'; $supportedInfoReq{'profiles'} = 'List profiles'; $supportedInfoReq{'repo-patterns'} = 'List available patterns from repos'; + $supportedInfoReq{'overlay-files'} = 'List of files in root overlay'; + $supportedInfoReq{'archives'} = 'List of tar archives to be installed'; $supportedInfoReq{'size'} = 'List install/delete size estimation'; $supportedInfoReq{'sources'} = 'List configured source URLs'; $supportedInfoReq{'types'} = 'List configured types'; @@ -272,12 +285,50 @@ # Initialize XML imagescan element #------------------------------------------ my $scan = new XML::LibXML::Element ("imagescan"); + $scan -> setAttribute ("description",$this->{configDir}); #========================================== # Walk through selection list #------------------------------------------ for my $info (@infoRequests) { SWITCH: for ($info) { #========================================== + # overlay-files + #------------------------------------------ + /^overlay-files/ && do { + my %result; + sub generateWanted { + my $filehash = shift; + my $basedir = shift; + return sub { + my $file = $File::Find::name; + if (! -d $file) { + $file =~ s/$basedir//; + $file = "[root/]$file"; + $filehash->{$file} = $basedir; + } + } + } + if (! -d $this->{configDir}."/root") { + $kiwi -> info ("No overlay root directory present\n"); + } else { + my $wref = generateWanted ( + \%result,$this->{configDir}."/root/" + ); + my $rdir = $this->{configDir}."/root"; + find({ wanted => $wref, follow => 0 }, $rdir); + if (! %result) { + $kiwi -> info ("No overlay files found\n"); + } else { + foreach my $file (sort keys %result) { + my $overlay = new XML::LibXML::Element ("overlay"); + $overlay -> setAttribute ("file","$file"); + $scan -> appendChild ($overlay); + } + } + } + last SWITCH; + }; + #========================================== # repo-patterns #------------------------------------------ /^repo-patterns/ && do { @@ -428,6 +479,19 @@ } last SWITCH; }; + /^archives/ && do { + my @archives = $xml -> getArchiveList(); + if ((scalar @archives) == 0) { + $kiwi -> info ("No archives available\n"); + } else { + foreach my $archive (@archives) { + my $anode = new XML::LibXML::Element ("archive"); + $anode -> setAttribute ("name","$archive"); + $scan -> appendChild ($anode); + } + } + last SWITCH; + }; #========================================== # profiles #------------------------------------------ @@ -476,15 +540,16 @@ my $this = shift; my $xml = shift; my $kiwi = $this->{kiwi}; + my $uhash= $xml -> getURLHash(); my @mountPnts; - if ($xml->{urlhash}) { - for my $source (keys %{$xml->{urlhash}}) { + if ($uhash) { + for my $source (keys %{$uhash}) { #========================================== # iso:// sources #------------------------------------------ if ($source =~ /^iso:\/\/(.*)/) { my $iso = $1; - my $dir = $xml->{urlhash}->{$source}; + my $dir = $uhash->{$source}; my $data = qxx ("mkdir -p $dir; mount -o loop $iso $dir 2>&1"); my $code = $? >> 8; if ($code != 0) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/system/boot/ix86/isoboot/suse-SLED10/config.xml new/kiwi/system/boot/ix86/isoboot/suse-SLED10/config.xml --- old/kiwi/system/boot/ix86/isoboot/suse-SLED10/config.xml 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/system/boot/ix86/isoboot/suse-SLED10/config.xml 2011-10-26 15:57:49.000000000 +0200 @@ -24,6 +24,7 @@ <file name="usb/input/usbhid.ko"/> </drivers> <drivers type="drivers"> + <file name="crypto/*"/> <file name="drivers/md/*"/> <file name="drivers/ide/*"/> <file name="drivers/block/loop.ko"/> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/system/boot/ix86/isoboot/suse-SLES10/config.xml new/kiwi/system/boot/ix86/isoboot/suse-SLES10/config.xml --- old/kiwi/system/boot/ix86/isoboot/suse-SLES10/config.xml 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/system/boot/ix86/isoboot/suse-SLES10/config.xml 2011-10-26 15:57:49.000000000 +0200 @@ -24,6 +24,7 @@ <file name="usb/input/usbhid.ko"/> </drivers> <drivers type="drivers"> + <file name="crypto/*"/> <file name="drivers/md/*"/> <file name="drivers/ide/*"/> <file name="drivers/block/loop.ko"/> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/system/boot/ix86/isoboot/suse-linuxrc new/kiwi/system/boot/ix86/isoboot/suse-linuxrc --- old/kiwi/system/boot/ix86/isoboot/suse-linuxrc 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/system/boot/ix86/isoboot/suse-linuxrc 2011-10-27 15:33:03.000000000 +0200 @@ -117,8 +117,9 @@ 2) imageVersion=$n esac done + IFS=$IFS_ORIG imageReadOnly="$imageName" - imageReadOnly=`echo $imageReadOnly | sed -e s@.$ARCH@@` + imageReadOnly=$(echo $imageReadOnly | sed -e "s@\.${ARCH}\$@@") imageReadOnly="$imageReadOnly-read-only.$ARCH-$imageVersion" imageName="/cdrom/$imageName-$imageVersion" gzippName=$imageName.gz @@ -127,7 +128,6 @@ continue fi while true;do - IFS=" " read sum1 blocks blocksize zblocks zblocksize < $imageMD5s if ! validateSize;then systemException \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/system/boot/ix86/isoboot/suse-preinit new/kiwi/system/boot/ix86/isoboot/suse-preinit --- old/kiwi/system/boot/ix86/isoboot/suse-preinit 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/system/boot/ix86/isoboot/suse-preinit 2011-10-25 15:40:01.000000000 +0200 @@ -41,6 +41,11 @@ createFramebufferDevices #====================================== -# 5) clean mount +# 5) create origin snapshot if possible +#-------------------------------------- +createOriginSnapshot + +#====================================== +# 6) clean mount #-------------------------------------- umountSystemFilesystems diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/system/boot/ix86/netboot/suse-11.3/config.xml new/kiwi/system/boot/ix86/netboot/suse-11.3/config.xml --- old/kiwi/system/boot/ix86/netboot/suse-11.3/config.xml 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/system/boot/ix86/netboot/suse-11.3/config.xml 2011-10-26 15:57:49.000000000 +0200 @@ -76,6 +76,7 @@ <file name="lib/crc16.ko"/> </drivers> <drivers type="drivers" profiles="diskless"> + <file name="crypto/*"/> <file name="drivers/md/*"/> <file name="drivers/ide/*"/> <file name="drivers/block/loop.ko"/> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/system/boot/ix86/netboot/suse-11.4/config.xml new/kiwi/system/boot/ix86/netboot/suse-11.4/config.xml --- old/kiwi/system/boot/ix86/netboot/suse-11.4/config.xml 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/system/boot/ix86/netboot/suse-11.4/config.xml 2011-10-26 15:57:49.000000000 +0200 @@ -79,6 +79,7 @@ <file name="drivers/gpu/drm/radeon/radeon.ko"/> </drivers> <drivers type="drivers" profiles="diskless"> + <file name="crypto/*"/> <file name="drivers/md/*"/> <file name="drivers/ide/*"/> <file name="drivers/block/loop.ko"/> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/system/boot/ix86/netboot/suse-12.1/config.xml new/kiwi/system/boot/ix86/netboot/suse-12.1/config.xml --- old/kiwi/system/boot/ix86/netboot/suse-12.1/config.xml 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/system/boot/ix86/netboot/suse-12.1/config.xml 2011-10-26 15:57:49.000000000 +0200 @@ -79,6 +79,7 @@ <file name="drivers/gpu/drm/radeon/radeon.ko"/> </drivers> <drivers type="drivers" profiles="diskless"> + <file name="crypto/*"/> <file name="drivers/md/*"/> <file name="drivers/ide/*"/> <file name="drivers/block/loop.ko"/> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/system/boot/ix86/netboot/suse-SLED10/config.xml new/kiwi/system/boot/ix86/netboot/suse-SLED10/config.xml --- old/kiwi/system/boot/ix86/netboot/suse-SLED10/config.xml 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/system/boot/ix86/netboot/suse-SLED10/config.xml 2011-10-26 15:57:49.000000000 +0200 @@ -24,6 +24,7 @@ <file name="usb/input/usbhid.ko"/> </drivers> <drivers type="drivers"> + <file name="crypto/*"/> <file name="drivers/md/*"/> <file name="drivers/ide/*"/> <file name="drivers/cdrom/*"/> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/system/boot/ix86/netboot/suse-SLED11/config.xml new/kiwi/system/boot/ix86/netboot/suse-SLED11/config.xml --- old/kiwi/system/boot/ix86/netboot/suse-SLED11/config.xml 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/system/boot/ix86/netboot/suse-SLED11/config.xml 2011-10-26 15:57:49.000000000 +0200 @@ -70,6 +70,7 @@ <file name="drivers/acpi/dock.ko"/> </drivers> <drivers type="drivers" profiles="diskless"> + <file name="crypto/*"/> <file name="drivers/gpu/drm/i915/i915.ko"/> <file name="drivers/char/agp/intel-agp.ko"/> <file name="drivers/md/*"/> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/system/boot/ix86/netboot/suse-SLES10/config.xml new/kiwi/system/boot/ix86/netboot/suse-SLES10/config.xml --- old/kiwi/system/boot/ix86/netboot/suse-SLES10/config.xml 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/system/boot/ix86/netboot/suse-SLES10/config.xml 2011-10-26 15:57:49.000000000 +0200 @@ -24,6 +24,7 @@ <file name="usb/input/usbhid.ko"/> </drivers> <drivers type="drivers"> + <file name="crypto/*"/> <file name="drivers/md/*"/> <file name="drivers/ide/*"/> <file name="drivers/cdrom/*"/> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/system/boot/ix86/netboot/suse-SLES11/config.xml new/kiwi/system/boot/ix86/netboot/suse-SLES11/config.xml --- old/kiwi/system/boot/ix86/netboot/suse-SLES11/config.xml 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/system/boot/ix86/netboot/suse-SLES11/config.xml 2011-10-26 15:57:49.000000000 +0200 @@ -70,6 +70,7 @@ <file name="drivers/acpi/dock.ko"/> </drivers> <drivers type="drivers" profiles="diskless"> + <file name="crypto/*"/> <file name="drivers/gpu/drm/i915/i915.ko"/> <file name="drivers/char/agp/intel-agp.ko"/> <file name="drivers/md/*"/> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/system/boot/ix86/netboot/suse-preinit new/kiwi/system/boot/ix86/netboot/suse-preinit --- old/kiwi/system/boot/ix86/netboot/suse-preinit 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/system/boot/ix86/netboot/suse-preinit 2011-10-25 15:40:01.000000000 +0200 @@ -132,7 +132,12 @@ kernelCheck #====================================== -# 13) kill udev +# 13) create origin snapshot if possible +#-------------------------------------- +createOriginSnapshot + +#====================================== +# 14) kill udev #-------------------------------------- udevSystemStop umountSystemFilesystems diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/system/boot/ix86/oemboot/suse-preinit new/kiwi/system/boot/ix86/oemboot/suse-preinit --- old/kiwi/system/boot/ix86/oemboot/suse-preinit 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/system/boot/ix86/oemboot/suse-preinit 2011-10-25 15:40:01.000000000 +0200 @@ -124,12 +124,17 @@ setupConsole #====================================== -# 11) Run user script +# 11) create origin snapshot if possible +#-------------------------------------- +createOriginSnapshot + +#====================================== +# 12) Run user script #-------------------------------------- runHook preCallInit #====================================== -# 12) kill udev +# 13) kill udev #-------------------------------------- udevSystemStop umountSystemFilesystems diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/system/boot/ix86/vmxboot/suse-preinit new/kiwi/system/boot/ix86/vmxboot/suse-preinit --- old/kiwi/system/boot/ix86/vmxboot/suse-preinit 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/system/boot/ix86/vmxboot/suse-preinit 2011-10-25 15:40:01.000000000 +0200 @@ -84,7 +84,12 @@ setupConsole #====================================== -# 10) kill udev +# 10) create origin snapshot if possible +#-------------------------------------- +createOriginSnapshot + +#====================================== +# 11) kill udev #-------------------------------------- udevSystemStop umountSystemFilesystems diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/system/boot/ppc/netboot/suse-preinit new/kiwi/system/boot/ppc/netboot/suse-preinit --- old/kiwi/system/boot/ppc/netboot/suse-preinit 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/system/boot/ppc/netboot/suse-preinit 2011-10-25 15:40:01.000000000 +0200 @@ -132,7 +132,12 @@ kernelCheck #====================================== -# 13) kill udev +# 13) create origin snapshot if possible +#-------------------------------------- +createOriginSnapshot + +#====================================== +# 14) kill udev #-------------------------------------- udevSystemStop umountSystemFilesystems diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/system/boot/ppc/oemboot/suse-SLES11/config.xml new/kiwi/system/boot/ppc/oemboot/suse-SLES11/config.xml --- old/kiwi/system/boot/ppc/oemboot/suse-SLES11/config.xml 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/system/boot/ppc/oemboot/suse-SLES11/config.xml 2011-10-26 15:57:49.000000000 +0200 @@ -23,6 +23,7 @@ <profile name="ppc64" description="KERNEL: ppc64 kernel"/> </profiles> <drivers type="drivers"> + <file name="crypto/*"/> <file name="drivers/usb/*"/> <file name="drivers/block/loop.ko"/> <file name="drivers/block/brd.ko"/> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/system/boot/ppc/oemboot/suse-preinit new/kiwi/system/boot/ppc/oemboot/suse-preinit --- old/kiwi/system/boot/ppc/oemboot/suse-preinit 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/system/boot/ppc/oemboot/suse-preinit 2011-10-25 15:40:01.000000000 +0200 @@ -124,12 +124,17 @@ setupConsole #====================================== -# 11) Run user script +# 11) create origin snapshot if possible +#-------------------------------------- +createOriginSnapshot + +#====================================== +# 12) Run user script #-------------------------------------- runHook preCallInit #====================================== -# 12) kill udev +# 13) kill udev #-------------------------------------- udevSystemStop umountSystemFilesystems diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/system/boot/ppc/vmxboot/suse-SLES11/config.xml new/kiwi/system/boot/ppc/vmxboot/suse-SLES11/config.xml --- old/kiwi/system/boot/ppc/vmxboot/suse-SLES11/config.xml 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/system/boot/ppc/vmxboot/suse-SLES11/config.xml 2011-10-26 15:57:49.000000000 +0200 @@ -17,6 +17,7 @@ <profile name="ppc64" description="KERNEL: ppc64 kernel"/> </profiles> <drivers type="drivers"> + <file name="crypto/*"/> <file name="drivers/usb/*"/> <file name="drivers/block/loop.ko"/> <file name="net/packet/*"/> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/system/boot/ppc/vmxboot/suse-preinit new/kiwi/system/boot/ppc/vmxboot/suse-preinit --- old/kiwi/system/boot/ppc/vmxboot/suse-preinit 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/system/boot/ppc/vmxboot/suse-preinit 2011-10-25 15:40:01.000000000 +0200 @@ -84,7 +84,12 @@ setupConsole #====================================== -# 10) kill udev +# 10) create origin snapshot if possible +#-------------------------------------- +createOriginSnapshot + +#====================================== +# 11) kill udev #-------------------------------------- udevSystemStop umountSystemFilesystems diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/system/boot/s390/netboot/suse-preinit new/kiwi/system/boot/s390/netboot/suse-preinit --- old/kiwi/system/boot/s390/netboot/suse-preinit 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/system/boot/s390/netboot/suse-preinit 2011-10-26 14:47:33.000000000 +0200 @@ -115,12 +115,24 @@ fi #====================================== -# 10) kernelCheck +# 10) setup static network +#-------------------------------------- +if [ "$systemIntegrity" = "clean" ];then + setupNetworkStatic 0 +fi + +#====================================== +# 11) kernelCheck #-------------------------------------- kernelCheck #====================================== -# 11) kill udev +# 12) create origin snapshot if possible +#-------------------------------------- +createOriginSnapshot + +#====================================== +# 13) kill udev #-------------------------------------- udevSystemStop umountSystemFilesystems diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/system/boot/s390/oemboot/suse-preinit new/kiwi/system/boot/s390/oemboot/suse-preinit --- old/kiwi/system/boot/s390/oemboot/suse-preinit 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/system/boot/s390/oemboot/suse-preinit 2011-10-25 15:40:01.000000000 +0200 @@ -137,12 +137,17 @@ setupConsole #====================================== -# 12) Run user script +# 12) create origin snapshot if possible +#-------------------------------------- +createOriginSnapshot + +#====================================== +# 13) Run user script #-------------------------------------- runHook preCallInit #====================================== -# 13) kill udev +# 14) kill udev #-------------------------------------- udevSystemStop umountSystemFilesystems diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/system/boot/s390/vmxboot/suse-preinit new/kiwi/system/boot/s390/vmxboot/suse-preinit --- old/kiwi/system/boot/s390/vmxboot/suse-preinit 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/system/boot/s390/vmxboot/suse-preinit 2011-10-25 15:40:01.000000000 +0200 @@ -97,7 +97,12 @@ setupConsole #====================================== -# 11) kill udev +# 11) create origin snapshot if possible +#-------------------------------------- +createOriginSnapshot + +#====================================== +# 12) kill udev #-------------------------------------- udevSystemStop umountSystemFilesystems diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/template/ix86/suse-11.4-JeOS/config.xml new/kiwi/template/ix86/suse-11.4-JeOS/config.xml --- old/kiwi/template/ix86/suse-11.4-JeOS/config.xml 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/template/ix86/suse-11.4-JeOS/config.xml 2011-10-25 15:40:01.000000000 +0200 @@ -62,6 +62,9 @@ <repository type="yast2"> <source path="opensuse://11.4/repo/oss"/> </repository> + <repository type="rpm-md"> + <source path="http://download.opensuse.org/repositories/Virtualization:/Appliances:/suse-11.4/openSUSE_11.4"/> + </repository> <packages type="image"> <package name="bootsplash-branding-openSUSE" bootinclude="true" bootdelete="true"/> <package name="gfxboot-branding-openSUSE" bootinclude="true" bootdelete="true"/> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kiwi/tests/unit/lib/Test/kiwiXMLInfo.pm new/kiwi/tests/unit/lib/Test/kiwiXMLInfo.pm --- old/kiwi/tests/unit/lib/Test/kiwiXMLInfo.pm 2011-10-18 12:50:04.000000000 +0200 +++ new/kiwi/tests/unit/lib/Test/kiwiXMLInfo.pm 2011-10-26 14:47:33.000000000 +0200 @@ -145,6 +145,8 @@ $this -> assert_str_equals($expectedMsg, $errMsg); my $msg = $kiwi -> getMessage(); $expectedMsg = "Choose between the following:\n" + . "--> archives :List of tar archives to be installed\n" + . "--> overlay-files :List of files in root overlay\n" . "--> packages :List of packages to be installed\n" . "--> patterns :List configured patterns\n" . "--> profiles :List profiles\n" @@ -211,7 +213,7 @@ my $info = $this -> __getInfoObj($cmd); my @requests = ('packages'); my $tree = $info -> getXMLInfoTree(\@requests); - my $expectedMsg = '<imagescan><package name="kiwi-test-dummy" ' + my $expectedMsg = '<imagescan description="'.$cmd->getConfigDir().'"><package name="kiwi-test-dummy" ' . 'arch="noarch" version="0.0.1-1"/></imagescan>'; $this -> assert_str_equals($expectedMsg, $tree -> toString()); $this -> assert_not_null($tree); @@ -274,6 +276,8 @@ $this -> assert_str_equals($expectedMsg, $errMsg); my $msg = $kiwi -> getMessage(); $expectedMsg = "Choose between the following:\n" + . "--> archives :List of tar archives to be installed\n" + . "--> overlay-files :List of files in root overlay\n" . "--> packages :List of packages to be installed\n" . "--> patterns :List configured patterns\n" . "--> profiles :List profiles\n" @@ -326,7 +330,7 @@ my $info = $this -> __getInfoObj($cmd); my @requests = ('profiles'); my $tree = $info -> getXMLInfoTree(\@requests); - my $expectedMsg = '<imagescan><profile name="first" description="a ' + my $expectedMsg = '<imagescan description="'.$cmd->getConfigDir().'"><profile name="first" description="a ' . 'profile"/><profile name="second" description="another profile"/>' . '</imagescan>'; $this -> assert_not_null($tree); @@ -353,7 +357,7 @@ my $info = $this -> __getInfoObj($cmd); my @requests = ('types'); my $tree = $info -> getXMLInfoTree(\@requests); - my $expectedMsg = '<imagescan><type name="iso" primary="true" ' + my $expectedMsg = '<imagescan description="'.$cmd->getConfigDir().'"><type name="iso" primary="true" ' . 'boot="isoboot/suse-11.4"/><type name="oem" primary="false" ' . 'boot="oemboot/suse-11.4"/><type name="xfs" primary="false"/>' . '</imagescan>'; @@ -395,7 +399,7 @@ my $info = $this -> __getInfoObj($cmd); my @requests = ('size'); my $tree = $info -> getXMLInfoTree(\@requests); - my $expectedMsg = '<imagescan><size rootsizeKB="1"/></imagescan>'; + my $expectedMsg = '<imagescan description="'.$cmd->getConfigDir().'"><size rootsizeKB="1"/></imagescan>'; $this -> assert_str_equals($expectedMsg, $tree -> toString()); $this -> assert_not_null($tree); # Setting up SaT generates a number of meesges that are not useful @@ -419,7 +423,7 @@ my $info = $this -> __getInfoObj($cmd); my @requests = ('sources'); my $tree = $info -> getXMLInfoTree(\@requests); - my $expectedMsg = '<imagescan><source path="/tmp" type="rpm-dir"/>' + my $expectedMsg = '<imagescan description="'.$cmd->getConfigDir().'"><source path="/tmp" type="rpm-dir"/>' . '</imagescan>'; $this -> assert_not_null($tree); $this -> assert_str_equals($expectedMsg, $tree -> toString()); @@ -445,7 +449,7 @@ my $info = $this -> __getInfoObj($cmd); my @requests = ('version'); my $tree = $info -> getXMLInfoTree(\@requests); - my $expectedMsg = '<imagescan><image version="1.0.0" ' + my $expectedMsg = '<imagescan description="'.$cmd->getConfigDir().'"><image version="1.0.0" ' . 'name="test-xml-infod"/></imagescan>'; $this -> assert_not_null($tree); $this -> assert_str_equals($expectedMsg, $tree -> toString()); -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
