2014-03-08 2:32 GMT+08:00 William Harrington <kb0...@berzerkula.org>: > > On Mar 7, 2014, at 11:51 AM, xinglp wrote: > >> When use initrd, with /dev/disk/by-xxx present, I can use >> root=UUID=xxx instead of root=/dev/sdxx > > Your initrd should do that. You need to troubleshoot your initrd.
inirtd can do that only when /dev/disk/by-xxx exist. see http://www.linuxfromscratch.org/blfs/view/svn/postlfs/initramfs.html case "$root" in /dev/* ) device=$root ;; UUID=* ) eval $root; device="/dev/disk/by-uuid/$UUID" ;; LABEL=*) eval $root; device="/dev/disk/by-label/$LABEL" ;; "" ) echo "No root device specified." ; problem ;; esac > > Sincerely, > > William Harrinton > -- > http://linuxfromscratch.org/mailman/listinfo/lfs-dev > FAQ: http://www.linuxfromscratch.org/faq/ > Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page