Bug 548274 - can't boot from hard disk if typing is root=/dev/* on grub
Summary: can't boot from hard disk if typing is root=/dev/* on grub
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-17 03:13 UTC by Freax
Modified: 2010-01-28 00:54 UTC (History)
1 user (show)

Fixed In Version: 004-4.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-28 00:54:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Freax 2009-12-17 03:13:41 UTC
Description of problem:
I want to use hard disk boot fedora 12.So I copy LiveOS,vmlinuz0 and initrd0.img of fedora 12 to hard disk.Then in GRUB,I typed the following:
root (hd0,0)
kernel /vmlinuz0 root=/dev/sda1 liveimg
initrd /initrd0.img

but fedora 12 can't boot.I uncompress the initrd0.img.Then I found cmdline/30parse-dmsquash-live.sh about handling "liveroot" as following:

if getarg liveimg; then
    liveroot="live:$root"
fi

if [ "${root%%:*}" = "live" ] ; then
    liveroot=$root
fi

[ "${liveroot%%:*}" = "live" ] || return

case "$liveroot" in
    live:LABEL=*|LABEL=*)
    root="${root#live:}"
    root="$(echo $root | sed 's,/,\\x2f,g')"
    root="live:/dev/disk/by-label/${root#LABEL=}"
        rootok=1 ;;
    live:CDLABEL=*|CDLABEL=*)
    root="${root#live:}"
    root="$(echo $root | sed 's,/,\\x2f,g')"
    root="live:/dev/disk/by-label/${root#CDLABEL=}"
        rootok=1 ;;
    live:UUID=*|UUID=*)
    root="${root#live:}"
    root="live:/dev/disk/by-uuid/${root#UUID=}"
        rootok=1 ;;
    /dev/*)
    root="live:${root}"
        rootok=1 ;;

As executed liveroot="live:$root",but "case" sentence haven't about "live:/dev/*".I think this is reason that don't boot from hard disk.So I modify to the following:

live:/dev/*|/dev/*)

and generate initrd0.img again.Now it can boot from hard disk.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.Copy vmliunz0,initrd0.img and LiveOS to hard disk.
2.Type root=/dev/* liveimg,not LABEL or UUID
3.
  
Actual results:
can't boot from hard disk

Expected results:
can boot from hard disk

Additional info:

Comment 1 Fedora Update System 2010-01-26 10:49:31 UTC
dracut-004-4.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/dracut-004-4.fc12

Comment 2 Fedora Update System 2010-01-27 01:06:34 UTC
dracut-004-4.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update dracut'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-1088

Comment 3 Fedora Update System 2010-01-28 00:51:55 UTC
dracut-004-4.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.