Remove the debug mode from make-initramfs.sh.

This commit is contained in:
Richard Jones
2009-04-24 22:26:50 +01:00
parent 0725678827
commit 18bf945023
2 changed files with 22 additions and 18 deletions

6
BUGS
View File

@@ -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
(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.
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).
[fixed - was a KVM bug]
[java] Java bindings documentation messed up. See:
http://java.sun.com/j2se/javadoc/writingdoccomments/

View File

@@ -22,16 +22,22 @@ set -e
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
@@ -125,15 +131,9 @@ modprobe 8139cp
/sbin/route add default gw 10.0.2.2
lvm vgscan --ignorelockingfailure
lvm vgchange -ay --ignorelockingfailure
exec guestfsd -f
__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