[Bug 552596] New: kpartx creates wrong device entry (cr_homep1 instead of loop5p1)
http://bugzilla.novell.com/show_bug.cgi?id=552596 Summary: kpartx creates wrong device entry (cr_homep1 instead of loop5p1) Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: koenig@linux.de QAContact: qa@suse.de Found By: --- I'm trying to use "kiwi" on 11.2 to create a 10.3 usb stick image using /usr/share/doc/packages/kiwi/examples/suse-10.3/suse-live-stick.readme ("oem type"). here kpartx creates a bogus device for the rootfs partition which causes kiwi (mke2fs) to fail: # kpartx -l /dev/loop5 cr_homep1 : 0 947772 /dev/loop5 63 which should output/create loop5p1 and not cr_homep1 ! details: kiwi fails when trying to create the rootfs: Nov-04 18:52:07 <1> : Creating ext3 root filesystem failed Nov-04 18:52:07 <3> : Couldn't create ext3 filesystem: mke2fs 1.41.9 (22-Aug-2009) mke2fs: No such file or directory while trying to determine filesystem size the log file shows that creating the empty disk file works fine, so does creating the partition using fdisk and losetup to attach the file to /dev/loop5 -- fdisk /dev/loop5 shows correct partitioning. then the kiwi log file shows Syncing disks. Nov-04 18:52:07 <1> : EXEC [/sbin/kpartx -a /dev/loop5 2>&1] done Nov-04 18:52:07 <1> : Creating ext3 root filesystem Nov-04 18:52:07 <1> : EXEC [/sbin/mke2fs -i 16384 -O resize_inode -T ext3 -j -F -N 41460 /dev/mapper/loop5p1 2>&1] failed Nov-04 18:52:07 <3> : Couldn't create ext3 filesystem: mke2fs 1.41.9 (22-Aug-2009) mke2fs: No such file or directory while trying to determine filesystem size failed because /dev/mapper/loop5p1 is missing! instead there is a /dev/mapper/cr_homep1 because of the following kpartx bahaviour: # kpartx -l /dev/loop5 cr_homep1 : 0 947772 /dev/loop5 63 which should output/create loop5p1 and not cr_homep1 ! I'm using a encrypted home partition which uses /dev/mapper/cr_home here is the full output of losetup/dmsetup: # losetup -a /dev/loop0: [fd06]:3072004 (/kiwi/iso/openSUSE-10.3-DVD-i386.iso) /dev/loop1: [fd06]:3072005 (/kiwi/iso/openSUSE-11.1-DVD-i586.iso) /dev/loop2: [fd06]:3072006 (/kiwi/iso/openSUSE-DVD-Build0339-i586.iso) /dev/loop3: [fd06]:3072002 (/kiwi/iso/openSUSE-11.0-DVD-i586.iso) /dev/loop4: [fd06]:3072003 (/kiwi/iso/openSUSE-11.1-DVD-x86_64.iso) /dev/loop5: [fd06]:6766598 (/kiwi/mystick/10.3-usb-result-oem/suse-10.3-live-stick.x86_64-*) # dmsetup ls system-root2 (253, 4) system-kiwi (253, 6) cr_home (253, 5) system-home (253, 0) cr_homep1 (253, 7) system-iscsi2 (253, 3) system-iscsi1 (253, 2) system-root (253, 1) what other data can I provide to understand and fix the kpartx problem ? -- 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=552596
User koenig@linux.de added comment
http://bugzilla.novell.com/show_bug.cgi?id=552596#c1
--- Comment #1 from Harald Koenig
http://bugzilla.novell.com/show_bug.cgi?id=552596#c
shuang qiu
http://bugzilla.novell.com/show_bug.cgi?id=552596
http://bugzilla.novell.com/show_bug.cgi?id=552596#c2
Dan Elder
http://bugzilla.novell.com/show_bug.cgi?id=552596
http://bugzilla.novell.com/show_bug.cgi?id=552596#c
Jiri Kosina
http://bugzilla.novell.com/show_bug.cgi?id=552596
http://bugzilla.novell.com/show_bug.cgi?id=552596#c
Petr Uzel
http://bugzilla.novell.com/show_bug.cgi?id=552596
http://bugzilla.novell.com/show_bug.cgi?id=552596#c3
Petr Uzel
http://bugzilla.novell.com/show_bug.cgi?id=552596
http://bugzilla.novell.com/show_bug.cgi?id=552596#c4
Petr Uzel
http://bugzilla.novell.com/show_bug.cgi?id=552596
http://bugzilla.novell.com/show_bug.cgi?id=552596#c5
--- Comment #5 from Arvin Schnell
http://bugzilla.novell.com/show_bug.cgi?id=552596
http://bugzilla.novell.com/show_bug.cgi?id=552596#c
Arvin Schnell
http://bugzilla.novell.com/show_bug.cgi?id=552596
http://bugzilla.novell.com/show_bug.cgi?id=552596#c
Petr Uzel
http://bugzilla.novell.com/show_bug.cgi?id=552596
http://bugzilla.novell.com/show_bug.cgi?id=552596#c6
Petr Uzel
http://bugzilla.novell.com/show_bug.cgi?id=552596
http://bugzilla.novell.com/show_bug.cgi?id=552596#c8
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=552596
http://bugzilla.novell.com/show_bug.cgi?id=552596#c9
Christian Dengler
http://bugzilla.novell.com/show_bug.cgi?id=552596
http://bugzilla.novell.com/show_bug.cgi?id=552596#c10
--- Comment #10 from Petr Uzel
http://bugzilla.novell.com/show_bug.cgi?id=552596
http://bugzilla.novell.com/show_bug.cgi?id=552596#c11
--- Comment #11 from Christian Dengler
http://bugzilla.novell.com/show_bug.cgi?id=552596
http://bugzilla.novell.com/show_bug.cgi?id=552596#c12
--- Comment #12 from Petr Uzel
osc request show 32871 Request #32871:
submit: home:puzel:branches:OBS_Maintained:multipath-tools/multipath-tools.openSUSE_11.2(r2) -> openSUSE:11.2:Update:Test/multipath-tools Message: fix bnc#552596 [swamp#31222] State: new 2010-02-18T13:46:24 puzel Comment: None -- 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=552596
http://bugzilla.novell.com/show_bug.cgi?id=552596#c13
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=552596
http://bugzilla.novell.com/show_bug.cgi?id=552596#c
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=552596
http://bugzilla.novell.com/show_bug.cgi?id=552596#c14
Petr Uzel
http://bugzilla.novell.com/show_bug.cgi?id=552596
http://bugzilla.novell.com/show_bug.cgi?id=552596#c15
--- Comment #15 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com