Skip to contentSkip to conversation

Remove initrd warning message

PATCH RESEND In review Richard W.M. Jones 2 participants 2 messages May 12, 2009 – May 14, 2009

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 Remove initrd warning message

Signature · 4 lines
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v
Quoted 1 line

From c91e49de8d66c008c0a23764c27e0b7906860c8e Mon Sep 17 00:00:00 2001

From: Richard Jones <[email protected]>
Date: Sat, 25 Apr 2009 14:01:51 +0100
Subject: [PATCH] Remove -initrd warning message.

---
 hw/pc.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
hw/pc.c +0 -3
index 6b46427..d41aed4 100644
@@ -708,9 +708,6 @@ static void load_linux(target_phys_addr_t option_rom,
 	initrd_size = get_file_size(fi);
 	initrd_addr = (initrd_max-initrd_size) & ~4095;
 
-        fprintf(stderr, "qemu: loading initrd (%#x bytes) at 0x" TARGET_FMT_plx
-                "\n", initrd_size, initrd_addr);
-
 	if (!fread_targphys_ok(initrd_addr, initrd_size, fi)) {
 	    fprintf(stderr, "qemu: read error on initial ram disk '%s'\n",
 		    initrd_filename);
Signature · 1 line
1.6.0.6
#1 lore raw

hw/pc.c static void load_linux(target_phys_addr_t option_rom, · line 712

Quoted 2 lines · Richard W.M. Jones
hw/pc.c +0 -2
-        fprintf(stderr, "qemu: loading initrd (%#x bytes) at 0x" TARGET_FMT_plx
-                "\n", initrd_size, initrd_addr);

This should be applied.

Using Rich's excellent guestfish program, you see this:

$> guestfish

Welcome to guestfish, the libguestfs filesystem interactive shell for editing virtual machine filesystems.

Type: 'help' for help with commands
'quit' to quit the shell

Quoted 2 lines

<fs> add /var/lib/libvirt/images/rawhide-2009-05-12.img <fs> run

qemu: loading initrd (0x220c2e6 bytes) at 0x0000000015de3000

Quoted 1 line

<fs> list-partitions

/dev/sda1
/dev/sda2

Cheers,
Mark.

[1] - http://et.redhat.com/~rjones/libguestfs/