kvm tools: Use initrd from "/boot" for distro kernels
This patch implements automatic initrd detection for distro kernels. Unfortunately, it doesn't quite produce a working environment on Fedora:
[ 0.588066] Freeing unused kernel memory: 912k freed [ 0.588981] Write protecting the kernel read-only data: 10240k [ 0.593634] Freeing unused kernel memory: 1332k freed [ 0.598900] Freeing unused kernel memory: 1580k freed [ 0.638157] dracut: dracut-009-12.fc15 [ 0.653838] udev[121]: starting version 167 [ 5.689056] dracut: Starting plymouth daemon plymouthd: ply-terminal.c:777: ply_terminal_set_mode: Assertion `terminal != ((void *)0)' failed. [ 5.706055] dracut: error: unexpectedly disconnected from boot status daemon
I don't quite understand why udev starts up because we've configured kernel parameters to boot to "/virt/init":
[ 0.000000] Command line: notsc noapic noacpi pci=conf1 reboot=k panic=1 i8042.direct=1 i8042.dumbkbd=1 i8042.nopnp=1 console=ttyS0 earlyprintk=serial i8042.noaux=1 init=/bin/sh root=/dev/root rw rootflags=rw,trans=virtio,version=9p2000.L rootfstype=9p init=/virt/init ip=dhcp
Reported-by Gerd Hoffmann <[email protected]>
Cc Cyrill Gorcunov <[email protected]>
Cc Sasha Levin <[email protected]>
Cc Asias He <[email protected]>
Cc Ingo Molnar <[email protected]>
Signed-off-by Pekka Enberg <[email protected]>
--- tools/kvm/Makefile | 3 +- tools/kvm/builtin-run.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 49 insertions(+), 2 deletions(-)
tools/kvm/Makefile +2 -1
@@ -162,7 +162,8 @@ endif WARNINGS += -Wall WARNINGS += -Wcast-align -WARNINGS += -Wformat=2 +WARNINGS += -Wformat +WARNINGS += -Wformat-security WARNINGS += -Winit-self WARNINGS += -Wmissing-declarations WARNINGS += -Wmissing-prototypes
tools/kvm/builtin-run.c +47 -1
78 lines not on this page · raw message
Signature · 1 line
1.7.6.4