-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skip log deletion on error #110
Conversation
skip removing root dir in case of error to preserve debootstrap.log Signed-off-by: Abhishek Dubey <adubey@linux.ibm.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable to me. But please remove the index change.
Follow-up from libbpf#110 Signed-off-by: Manu Bretelle <chantr4@gmail.com>
@dubeyabhishek do you mind validating that the ppc64le rootfs from https://github.com/chantra/libbpf-ci/tree/ppc64le_rootfs works for you? |
Qemu is getting stuck with above rootfs. vmlinux used is from upstream kernel compiled with config generated from "make pseries_le_defconfig" |
abhishekdubey:images$ qemu-system-ppc64 -nodefaults -display none -serial mon:stdio -m 4G -drive file="/home/abhishekdubey/rootfs/rootfs.img",format=raw,index=1,media=disk,if=scsi,cache=none -kernel "/home/abhishekdubey/linux/vmlinux" -append "root=/dev/sda rw console=hvc0" SLOF ********************************************************************** Populating /vdevice methods Welcome to Open Firmware Copyright (c) 2004, 2017 IBM Corporation All rights reserved. Booting from memory...
|
This looks fine to me. The host booted and ran (our very limited) init. If you want to get a shell, you would need to boot in single mode. |
@sharvipin did you manage to confirm that single mode worked? |
@chantra result is same with "single mode". log tail available below: I was facing similar issue with rootfs made with buildroot, ultimately it turned out to be init script issue. |
@dubeyabhishek what is the problem exactly? When booting (x86_64) with Is this not what happen for ppc64? |
@chantra It was not working for more than a week for ppc64. May be the problem was with my laptop. After accidental restart, today I am getting expected result on running below command. I spent many days debugging above issue of getting stuck at init. Command:qemu-system-ppc64 -nodefaults -display none -serial mon:stdio -m 4G -drive file="rootfs.img",format=raw,index=1,media=disk,if=scsi,cache=none -kernel "/home/abhishekdubey/linux/arch/powerpc/boot/zImage" -append "root=/dev/sda rw console=hvc0 single" Boot log from successful run:[ 2.267610][ T1] EXT4-fs (sda): recovery complete |
skip removing root dir in case of error to
preserve debootstrap.log