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.