SVN: geninitrd/trunk/geninitrd
glen
glen at pld-linux.org
Mon Apr 16 11:01:27 CEST 2012
Author: glen
Date: Mon Apr 16 11:01:27 2012
New Revision: 12543
Modified:
geninitrd/trunk/geninitrd
Log:
show /proc/partitions in debug mode from initrd build time
Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd (original)
+++ geninitrd/trunk/geninitrd Mon Apr 16 11:01:27 2012
@@ -759,6 +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)"
add_linuxrc <<-'EOF'
if [ "${ROOT##/dev/}" != "${ROOT}" ]; then
rootnr="$(busybox awk -v rootnode="${ROOT##/dev/}" '$4 == rootnode { print 256 * $1 + $2 }' /proc/partitions)"
More information about the pld-cvs-commit
mailing list