Bug 3683

Summary: qemu: booting a ramfs based image may enter an endless loop if root.img is not found
Product: [Yocto Project Subprojects] ADT Reporter: Chen Qi <Qi.Chen>
Component: adtAssignee: Chen Qi <Qi.Chen>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: liezhi.yang, poky.adt.watcher, poky.watcher, sgw, yi.zhao, zhenfeng.zhao
Version: 1.4   
Target Milestone: 1.4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Chen Qi 2013-01-08 06:34:45 UTC
It's inappropriate to enter an endless loop without any useful information ouput to screen.
As 'debugshell' feature has been implemented in init-live.sh.
I think we should add it as a default kernel option for ramfs booting.
Comment 1 Chen Qi 2013-01-10 02:38:22 UTC
merged into poky/master: 6f5d6e2e0fa7a2a0e52a22bb6fc407ca37c329d1

http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/runqemu-ramfs
Comment 2 Yi Zhao 2013-01-31 07:18:28 UTC
Verified with master branch: 27c8af1e3a9092caa19bd813c4dd0747de766dc5

Steps:
###########
1. Add line IMAGE_FSTYPES = "live" to conf/local.conf
2. Build the qemux86 minimal image
3. Run command: runqemu qemux86 ramfs. Since the rootfs.img cannot be found under /media,the system would drop to a shell after 30 seconds.a default timeout (30 seconds).
###########