Remove the debug mode from make-initramfs.sh.
authorRichard Jones <rjones@redhat.com>
Fri, 24 Apr 2009 21:26:50 +0000 (22:26 +0100)
committerRichard Jones <rjones@redhat.com>
Fri, 24 Apr 2009 21:26:50 +0000 (22:26 +0100)
BUGS
make-initramfs.sh.in

diff --git a/BUGS b/BUGS
index e632377..8776de2 100644 (file)
--- a/BUGS
+++ b/BUGS
@@ -1,15 +1,19 @@
 [guestfish] Built-in commands like 'alloc' and 'help' don't auto-complete.
 
 [libguestfs] /tmp/libguestfs temporary directory is not cleaned up
 [guestfish] Built-in commands like 'alloc' and 'help' don't auto-complete.
 
 [libguestfs] /tmp/libguestfs temporary directory is not cleaned up
-(sometimes).
+sometimes.  This appears to happen (only?) if the main program
+segfaults.
 
 [libguestfs] qemu process not cleaned up occasionally.  This appears
 to happen only if the main program or library segfaults, in which case
 the atexit handler which would normally perform cleanup is not run.
 
 [libguestfs] qemu process not cleaned up occasionally.  This appears
 to happen only if the main program or library segfaults, in which case
 the atexit handler which would normally perform cleanup is not run.
+sometimes.  This appears to happen (only?) if the main program
+segfaults.
 
 [kernel?] Kernel boot times are significantly slower for Fedora 11/12
 than for Fedora 10, like 2-3 times slower.  This greatly affects the
 time it takes to launch the subprocess (although it does still work).
 
 [kernel?] Kernel boot times are significantly slower for Fedora 11/12
 than for Fedora 10, like 2-3 times slower.  This greatly affects the
 time it takes to launch the subprocess (although it does still work).
+[fixed - was a KVM bug]
 
 [java] Java bindings documentation messed up.  See:
 http://java.sun.com/j2se/javadoc/writingdoccomments/
\ No newline at end of file
 
 [java] Java bindings documentation messed up.  See:
 http://java.sun.com/j2se/javadoc/writingdoccomments/
\ No newline at end of file
index 6e7e98f..985e9ba 100755 (executable)
@@ -22,16 +22,22 @@ set -e
 
 unset CDPATH
 
 
 unset CDPATH
 
-# If you want to do some extra debugging and diagnosis of the
-# initramfs image, then uncomment this line.  This makes the image
-# larger.
-debug=yes
-
-modules="-i kernel -i bash -i coreutils -i lvm2 -i ntfs-3g -i util-linux-ng -i MAKEDEV -i net-tools -i augeas-libs -i file"
-
-if [ "x$debug" = "xyes" ]; then
-    modules="$modules -i module-init-tools -i procps -i strace -i iputils"
-fi
+modules="
+-i augeas-libs
+-i bash
+-i coreutils
+-i file
+-i iputils
+-i kernel
+-i lvm2
+-i MAKEDEV
+-i module-init-tools
+-i net-tools
+-i ntfs-3g
+-i procps
+-i strace
+-i util-linux-ng
+"
 
 # Decide on names for the final output.  These have to match Makefile.am.
 output=initramfs.@REPO@.@host_cpu@.img
 
 # Decide on names for the final output.  These have to match Makefile.am.
 output=initramfs.@REPO@.@host_cpu@.img
@@ -125,15 +131,9 @@ modprobe 8139cp
 /sbin/route add default gw 10.0.2.2
 lvm vgscan --ignorelockingfailure
 lvm vgchange -ay --ignorelockingfailure
 /sbin/route add default gw 10.0.2.2
 lvm vgscan --ignorelockingfailure
 lvm vgchange -ay --ignorelockingfailure
+exec guestfsd -f
 __EOF__
 
 __EOF__
 
-if [ "x$debug" != "xyes" ]; then
-    echo exec guestfsd -f >> init.new
-else
-    echo guestfsd >> init.new
-    echo exec bash -i >> init.new
-fi
-
 install_file init.new /init 0755 root.root
 rm init.new
 
 install_file init.new /init 0755 root.root
 rm init.new