SVN: geninitrd/trunk/geninitrd
glen
glen at pld-linux.org
Mon Apr 16 11:03:59 CEST 2012
Author: glen
Date: Mon Apr 16 11:03:59 2012
New Revision: 12544
Modified:
geninitrd/trunk/geninitrd
Log:
show also /linuxrc in debug mode
Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd (original)
+++ geninitrd/trunk/geninitrd Mon Apr 16 11:03:59 2012
@@ -759,7 +759,7 @@
initrd_gen_setrootdev() {
debug "Adding rootfs finding based on kernel cmdline root= option support."
busybox_applet ls
- debug "Current /proc/partitions:\n$(cat /proc/partitions)"
+ debug "Current /proc/partitions:\n$(sed -e 's,^,> ,' /proc/partitions)"
add_linuxrc <<-'EOF'
if [ "${ROOT##/dev/}" != "${ROOT}" ]; then
rootnr="$(busybox awk -v rootnode="${ROOT##/dev/}" '$4 == rootnode { print 256 * $1 + $2 }' /proc/partitions)"
@@ -1433,6 +1433,8 @@
initrd_gen_fbsplash
initrd_gen_fbcondecor
+debug "Current /linuxrc:\n$(sed -e 's,^,> ,' $DESTDIR/linuxrc)"
+
IMAGE=$(mktemp -t initrd.img-XXXXXX) || die "mktemp failed"
IMAGESIZE=$(du -ks $DESTDIR | awk '{print int(($1+1023+512)/1024)*1024}')
More information about the pld-cvs-commit
mailing list