[Bug 258222] New: YaST cannot mount encrypted filesystem on upgrade
https://bugzilla.novell.com/show_bug.cgi?id=258222 Summary: YaST cannot mount encrypted filesystem on upgrade Product: openSUSE 10.3 Version: Alpha 2 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Installation AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jfunk@funktronics.ca QAContact: jsrain@novell.com YaST cannot mount my encrypted partition on update to 10.3a2. It asks for my passphrase but fails to mount with a "-2001" error. dmesg gives me no useful information. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258222 chrubis@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |jfunk@funktronics.ca ------- Comment #1 from chrubis@novell.com 2007-03-28 07:59 MST ------- Please attach y2logs. If you are in doubt follow: http://en.opensuse.org/Bugs/YaST Thanks! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258222 jfunk@funktronics.ca changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|jfunk@funktronics.ca | ------- Comment #2 from jfunk@funktronics.ca 2007-03-28 20:29 MST ------- Created an attachment (id=127208) --> (https://bugzilla.novell.com/attachment.cgi?id=127208&action=view) YaST2 logs -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258222 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |fehr@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258222 aschnell@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|fehr@novell.com |bnc-team-screening@forge.provo.novell.com Component|Installation |Update Problems ------- Comment #3 from aschnell@novell.com 2007-03-30 03:27 MST ------- Update Problem. The device name is not translated from /dev/hda2 to /dev/sda2. Storage part gets the translation right (works for hda1 and hda3). Somehow the values in crtab (in RootRoot.ycp) seem strange (have no "spec" entry). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258222 aschnell@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |locilka@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258222 locilka@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Comment #4 from locilka@novell.com 2007-04-04 07:12 MST ------- I see. Both fstab and cryptotab are translated (in RootPart.ycp) but cryptotab has no "spec" key in the tab, that's why it is not actually translated at all. The correct key for cryptotab is "file". I'll fix it. Anyway, this might be a bit related to bug #246684. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258222 locilka@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |locilka@novell.com AssignedTo|locilka@novell.com |aschnell@novell.com Status|ASSIGNED |NEW ------- Comment #5 from locilka@novell.com 2007-04-05 03:54 MST ------- partly fixed in yast2-update: - Fixed reading fstab and cryptotab to always call Storage to translate old devices to new ones (#258222). - Added new popup showing details when fsck.jfs fails. - yast2-update-2.15.7 (Plus one small fix went to 2.15.8) Nevertheless it seems that (on my system) Storage never translates these devices because of ... hmmm ... let's blame 'hwinfo'? --- cut --- GetTranslatedDevices old:$["major":10, "minor":2, "name":"openSUSE", "nameandversion":"openSUSE 10.2", "show":"openSUSE 10.2", "version":"10.2"] new:$["major":10, "minor":3, "name":"openSUSE 10.3", "nameandversion":"openSUSE 10.3 10.3", "show":"openSUSE 10.3", "version":"10.3"] GetTranslatedDevices names ["/dev/hda3", "/dev/hdb1", "proc", "sysfs", "debugfs", "usbfs", "devpts", "/dev/fd0"] BuildDiskmap cmd LIBHD_HDDB_DIR=/mnt/var/lib/hardware hwinfo --map BuildDiskmap bo $["exit":0, "stderr":"", "stdout":""] BuildDiskmap bo $["exit":0, "stderr":"", "stdout":""] BuildDiskmap DiskMap $[] BuildDiskmap DiskMapVersion $["major":10, "minor":2, "name":"openSUSE", "nameandversion":"openSUSE 10.2", "show":"openSUSE 10.2", "version":"10.2"] GetTranslatedDevices ret ["/dev/hda3", "/dev/hdb1", "proc", "sysfs", "debugfs", "usbfs", "devpts", "/dev/fd0"] --- cut --- Please, use the latest yast2-update and check Storage and/or Hwinfo (Tested on modified Alpha2) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258222 ------- Comment #6 from locilka@novell.com 2007-04-05 03:56 MST ------- Created an attachment (id=129200) --> (https://bugzilla.novell.com/attachment.cgi?id=129200&action=view) YaST logs -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258222 aschnell@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #7 from aschnell@novell.com 2007-04-05 04:40 MST ------- In the original YaST logs the translation from hda to sda works. The translation depends of course on the specific hardware. This early in the alpha phase we can assume the problem is fixed with the new yast2-update package. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258222 jfunk@funktronics.ca changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | ------- Comment #8 from jfunk@funktronics.ca 2007-04-15 10:24 MST ------- I just tried again with alpha3 and it still fails. Attaching logs. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258222 jfunk@funktronics.ca changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #127208|0 |1 is obsolete| | Attachment #129200|0 |1 is obsolete| | ------- Comment #9 from jfunk@funktronics.ca 2007-04-15 10:25 MST ------- Created an attachment (id=131224) --> (https://bugzilla.novell.com/attachment.cgi?id=131224&action=view) y2logs for 10.3a3 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
From mounting: RootPart.ycp:767 crypt pwd ok:true Storage.ycp:4556 PerformLosetup mdir:/tmp/YaST2-03381-o5lVBq/tmp_mp Storage.ycp:2999 SetCryptPwd device:/dev/sda2 .. SystemCmd.cc(execute):160 SystemCmd Executing:"cryptsetup remove cr_sda2" SystemCmd.cc(addLine):625 Adding Line 1 "Command failed" SystemCmd.cc(getUntilEOF):591 pid:4179 added lines:1 stderr:1 SystemCmd.cc(doExecute):305 system() Returns:237 .. SystemCmd.cc(execute):160 SystemCmd Executing:"losetup -d /dev/loop2" SystemCmd.cc(addLine):625 Adding Line 1 "ioctl: LOOP_CLR_FD: No such device or address" SystemCmd.cc(getUntilEOF):591 pid:4180 added lines:1 stderr:1 SystemCmd.cc(logOutput):636 stderr:ioctl: LOOP_CLR_FD: No such device or address .. SystemCmd.cc(logOutput):636 stderr:/dev/sda2 is not a LUKS partition SystemCmd.cc(logOutput):636 stderr:Command failed: No key available with this
https://bugzilla.novell.com/show_bug.cgi?id=258222 ------- Comment #10 from locilka@novell.com 2007-04-16 01:16 MST ------- Here are some important messages: GetTranslatedDevices names ["/dev/hda3", "/dev/hda1", "proc", "sysfs", "usbfs", "devpts", "none", "/tmp/app/1/image", "/tmp/app/2/image", "/tmp/app/3/image", "/tmp/app/4/image", "/tmp/app/5/image", "/tmp/app/6/image", "/tmp/app/7/image"] GetTranslatedDevices ret ["/dev/sda3", "/dev/sda1", "proc", "sysfs", "usbfs", "devpts", "none", "/tmp/app/1/image", "/tmp/app/2/image", "/tmp/app/3/image", "/tmp/app/4/image", "/tmp/app/5/image", "/tmp/app/6/image", "/tmp/app/7/image"] GetTranslatedDevices names ["/dev/hda2"] GetTranslatedDevices ret ["/dev/sda3"] crtab: [$["file":"/dev/hda2", "loop":"/dev/loop0", "mount":"/home/jfunk/.stuff", "opt1":"twofish256", "opt2":"acl,user_xattr", "vfstype":"reiserfs"]] crtab: (translated) [$["file":"/dev/sda2", "loop":"/dev/loop0", "mount":"/home/jfunk/.stuff", "opt1":"twofish256", "opt2":"acl,user_xattr", "vfstype":"reiserfs"]] passphrase. .. SystemCmd.cc(execute):160 SystemCmd Executing:"losetup -d /dev/loop2" SystemCmd.cc(addLine):625 Adding Line 1 "ioctl: LOOP_CLR_FD: No such device or address" .. SystemCmd Executing:"rmmod twofish cryptoloop; modprobe loop_fish2; /sbin/losetup -e twofish /dev/loop2 /dev/sda2 -p0 < /tmp/liby2storage69TVQq/pwdf" Adding Line 1 "ERROR: Module twofish does not exist in /proc/modules" Adding Line 2 "ERROR: Module cryptoloop does not exist in /proc/modules" Adding Line 3 "Switching to old S.u.S.E. loop_fish2 compatibility mode." .. SystemCmd Executing:"mount -oro -t reiserfs /dev/loop2 /tmp/liby2storage69TVQq/mp" Adding Line 1 "mount: cannot mount block device /dev/loop2 read-only" .. SystemCmd Executing:"rmmod loop_fish2; modprobe twofish; modprobe cryptoloop; /sbin/losetup -e twofish256 /dev/loop2 /dev/sda2 -p0 < /tmp/liby2storage69TVQq/pwdf" SystemCmd.cc(addLine):625 Adding Line 1 "ioctl: LOOP_SET_STATUS: No such file or directory, "
...requested cipher or key length (256 bits) not supported by kernel... <<
Anyway, from Update/RootPart view, the behavior seems to be correct. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258222 ------- Comment #11 from locilka@novell.com 2007-04-16 01:35 MST ------- Please, see also this: [opensuse-security] Weird encrypted filesystem problem. http://lists.opensuse.org/opensuse-security/2007-04/msg00005.html -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258222 aschnell@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |ASSIGNED ------- Comment #12 from aschnell@novell.com 2007-04-16 07:58 MST ------- Maybe some kernel modules are missing like in bug #261847. I will check it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258222 aschnell@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |DUPLICATE ------- Comment #13 from aschnell@novell.com 2007-04-16 09:44 MST ------- Indeed, same problem as bug #261847: The kernel modules cbc and blkcypher are missing. Will be fixed in next alpha. *** This bug has been marked as a duplicate of bug 261847 *** -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258222 jfunk@funktronics.ca changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|DUPLICATE | ------- Comment #14 from jfunk@funktronics.ca 2007-05-18 09:15 MST ------- I just tried alpha4 and it still does not work. Attaching y2logs -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258222 jfunk@funktronics.ca changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #131224|0 |1 is obsolete| | ------- Comment #15 from jfunk@funktronics.ca 2007-05-18 09:16 MST ------- Created an attachment (id=141070) --> (https://bugzilla.novell.com/attachment.cgi?id=141070&action=view) yast2 logs -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258222 aschnell@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |ASSIGNED ------- Comment #16 from aschnell@novell.com 2007-05-18 10:16 MST ------- Command 'losetup -e twofish256 /dev/loop2 /dev/sda2' still fails with 'ioctl: LOOP_SET_STATUS: No such file or directory'. Will have a look. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258222 snwint@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #17 from snwint@novell.com 2007-05-21 07:35 MST ------- There was a bug in one of the inst-sys scripts that prevented cbc from really being added. It's fixed now. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258222 aschnell@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | ------- Comment #18 from aschnell@novell.com 2007-05-22 06:39 MST ------- Even with the kernel modules loaded losetup gives the error message as in comment #16. We have tested that the losetup called works in 10.3 Alpha 1 Plus but not in 10.3 Alpha 3 Plus. Matthias, please check if this is a losetup or kernel problem. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258222 aschnell@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aschnell@novell.com, lnussel@novell.com AssignedTo|aschnell@novell.com |mkoenig@novell.com Status|REOPENED |NEW -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258222 mkoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|mkoenig@novell.com |aschnell@novell.com ------- Comment #19 from mkoenig@novell.com 2007-05-22 08:23 MST ------- We are currently migrating the deprecated cryptoloop to device-mapper. losetup does not understand and should not be used for encryption anymore. losetup -e calls in Yast should be replaced with calls to losetup (without encryption) and cryptsetup (setting up the device-mapper encryption layer). Some attention has to be paid for choosing the right parameters for hash and cipher to stay backwards compatible with existing crypto filesystems. Arvin, please look in the draft ~mkoenig/doc/cryptofs/migration and also the new boot.crypto script in the util-linux-crypto package, that has been migrated by Ludwig. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258222 aschnell@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=258222#c20
--- Comment #20 from Arvin Schnell
https://bugzilla.novell.com/show_bug.cgi?id=258222#c21
James Oakley
https://bugzilla.novell.com/show_bug.cgi?id=258222#c22
Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=258222#c23
--- Comment #23 from Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=258222#c24
Lukas Ocilka
https://bugzilla.novell.com/show_bug.cgi?id=258222#c25
--- Comment #25 from Christian Boltz
participants (1)
-
bugzilla_noreply@novell.com