livecd: initrd: scripts/casper-helpers: fstype returns ext3 on luks container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
casper (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Trying to boot ubuntu 11.10 from livecd iso image via grub.
menuentry "Ubuntu" {
iso_path=
export iso_path
search --set --file $iso_path
loopback loop $iso_path
root=(loop)
configfile /boot/grub/
}
However, booting fails w/ an initramfs prompt stating that /dev/sda2 could not be mounted.
/dev/sda2 is a luks container.
/dev/sda7 contains ubuntu-
Cause: in initrd.lz: file casper-helpers calls /bin/fstype. fstype returns FSTYPE=ext3 for /dev/sda2 (which is a luks container).
find_path() in lupin-helpers then fails to mount /dev/sda2 using fstype ext3 dropping to an initramfs prompt.
fstype version:
ba50b66bff0437f
Solution: Unpack casper/initrd.lz, disable call to fstype and repack initrd.lz. Boot the iso file using the patched initrd.lz.
Patch:
--- casper-helpers 2012-01-02 18:28:21.000000000 +0100
+++ scripts/
@@ -41,11 +41,11 @@
get_fstype() {
local FSTYPE
local FSSIZE
- eval $(fstype < $1)
- if [ "$FSTYPE" != "unknown" ]; then
- echo $FSTYPE
- return 0
- fi
+ #eval $(fstype < $1)
+ #if [ "$FSTYPE" != "unknown" ]; then
+ # echo $FSTYPE
+ # return 0
+ #fi
/sbin/blkid -s TYPE -o value $1 2>/dev/null
}
New grub config:
menuentry "Ubuntu" {
iso_path=
export iso_path
search --set --file $iso_path
loopback loop $iso_path
root=(loop)
linux /casper/vmlinuz file=/cdrom/
initrd (hd0,7)
}
Changed in casper (Ubuntu): | |
importance: | Undecided → Medium |
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/910924/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]