[Bug 502989] New: In split image, kiwi doesn't copy persistent files that begin with "." to read-write part
http://bugzilla.novell.com/show_bug.cgi?id=502989 Summary: In split image, kiwi doesn't copy persistent files that begin with "." to read-write part Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: All OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: ms@novell.com ReportedBy: qfeng@novell.com QAContact: qa@suse.de CC: jsham@novell.com, awong1@novell.com Found By: Development In the split section in config.xml, users can specify: /etc, /etc/* as persistent dir and persistent files. Unfortunately, /etc/.pwd.lock is not copied. This leads to a problem that I cannot setup or change password (neither in firstboot nor in system). Here is my patch to KIWIXML.pm: linux-jn6u:/usr/share/kiwi/modules # cat split-persistent.patch --- KIWIXML.pm.orig 2009-05-12 17:02:52.000000000 +0800 +++ KIWIXML.pm 2009-05-12 16:59:53.000000000 +0800 @@ -919,6 +919,7 @@ my $this = shift; my $node = $this->{splitNodeList} -> get_node(1); my @result = (); + my $fileName; if (! defined $node) { return @result; } @@ -930,7 +931,12 @@ my @fileNodeList = $persistNode -> getElementsByTagName ("file") -> get_nodelist(); foreach my $fileNode (@fileNodeList) { - push @result, $fileNode -> getAttribute ("name"); + $fileName = $fileNode -> getAttribute ("name"); + push @result, $fileName; + if ($fileName =~ /\/\*/) { + $fileName =~ s/\/\*/\/.[^.]*/; + push @result, $fileName; + } } return @result; } Had anyone else met this situation in a split image before? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=502989
User ms@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=502989#c1
Marcus Schaefer
http://bugzilla.novell.com/show_bug.cgi?id=502989
User ms@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=502989#c2
Marcus Schaefer
http://bugzilla.novell.com/show_bug.cgi?id=502989
User qfeng@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=502989#c3
--- Comment #3 from Qian Feng
participants (1)
-
bugzilla_noreply@novell.com