Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- geninitrd: # $Revision: 12547 $ $Date:: 2012-04-16 17:34:53 +0200 #$ (geninitrd)
- geninitrd: Using _lib: lib64
- geninitrd: Using initrd_dir: /usr/lib64/initrd
- geninitrd: find_tool: found /usr/lib64/initrd/busybox
- geninitrd: # $Revision: 12458 $ $Date:: 2012-01-05 20:43:32 +0100 #$ (mod-ide)
- geninitrd: # $Revision: 12444 $ $Date:: 2011-12-07 20:32:09 +0100 #$ (mod-luks)
- geninitrd: find_tool: found /usr/lib64/initrd/cryptsetup
- geninitrd: # $Revision: 12169 $ $Date:: 2011-02-19 14:59:40 +0100 #$ (mod-multipath)
- geninitrd: # $Revision: 12169 $ $Date:: 2011-02-19 14:59:40 +0100 #$ (mod-dmraid)
- geninitrd: find_tool: found /usr/lib64/initrd/dmraid
- geninitrd: # $Revision: 12504 $ $Date:: 2012-03-19 20:34:11 +0100 #$ (mod-lvm)
- geninitrd: find_tool: found /usr/lib64/initrd/lvm
- geninitrd: # $Revision: 12377 $ $Date:: 2011-10-15 15:49:57 +0200 #$ (mod-md)
- geninitrd: find_tool: found /usr/lib64/initrd/mdassemble
- geninitrd: find_tool: found /sbin/mdadm
- geninitrd: # $Revision: 12169 $ $Date:: 2011-02-19 14:59:40 +0100 #$ (mod-blkid)
- geninitrd: find_tool: found /usr/lib64/initrd/blkid
- geninitrd: # $Revision: 12541 $ $Date:: 2012-04-08 20:58:05 +0200 #$ (mod-udev)
- geninitrd: find_tool: found /usr/lib64/initrd/udevd
- geninitrd: find_tool: found /usr/lib64/initrd/udevadm
- geninitrd: # $Revision: 12169 $ $Date:: 2011-02-19 14:59:40 +0100 #$ (mod-tuxonice)
- geninitrd: # $Revision: 12500 $ $Date:: 2012-03-18 17:32:24 +0100 #$ (mod-suspend)
- geninitrd: find_tool: found /usr/lib64/initrd/resume
- geninitrd: # $Revision: 12169 $ $Date:: 2011-02-19 14:59:40 +0100 #$ (mod-fbsplash)
- geninitrd: find_tool: found /usr/sbin/splash_geninitramfs
- geninitrd: # $Revision: 12169 $ $Date:: 2011-02-19 14:59:40 +0100 #$ (mod-condecor)
- geninitrd: find_tool: found /usr/sbin/splash_geninitramfs
- geninitrd: # $Revision: 12169 $ $Date:: 2011-02-19 14:59:40 +0100 #$ (mod-bootsplash)
- geninitrd: find_tool: did not find any of: /bin/splash.bin
- geninitrd: # $Revision: 12327 $ $Date:: 2011-08-19 21:40:53 +0200 #$ (mod-uvesafb)
- geninitrd: find_tool: did not find any of: /usr/lib64/initrd/v86d /sbin/v86d
- geninitrd: # $Revision: 12169 $ $Date:: 2011-02-19 14:59:40 +0100 #$ (mod-nfs)
- geninitrd: # $Revision: 12415 $ $Date:: 2011-11-27 15:03:41 +0100 #$ (mod-sata)
- geninitrd: # $Revision: 12458 $ $Date:: 2012-01-05 20:43:32 +0100 #$ (mod-scsi)
- geninitrd: # $Revision: 12512 $ $Date:: 2012-03-24 19:27:54 +0100 #$ (mod-usbkbd)
- geninitrd: Using modprobe -c to get modules config
- geninitrd: Finding USB keyboard modules
- geninitrd: Finding SATA modules (class=0x0106)
- geninitrd: find_tool: found /sbin/lspci
- geninitrd: Using /dev/datavg/rootlv as device for rootfs
- geninitrd: Finding modules for device path /dev/datavg/rootlv
- geninitrd: is_luks: /dev/datavg/rootlv is not device mapper name
- geninitrd: LVM: /dev/datavg/rootlv is LVM node
- File descriptor 3 (/dev/pts/0) leaked on lvm invocation. Parent PID 6899: /bin/sh
- geninitrd: LVM VG for /dev/datavg/rootlv: datavg
- File descriptor 3 (/dev/pts/0) leaked on lvm invocation. Parent PID 6904: /bin/sh
- geninitrd: LVM PV for datavg: /dev/md0
- geninitrd: Finding modules for device path /dev/md0
- geninitrd: is_luks: /dev/md0 is not device mapper name
- geninitrd: Finding RAID details using mdadm for rootdev=/dev/md0
- geninitrd: md: found rootdev=/dev/md0 on device /dev/md0 with devices list /dev/sda2 /dev/sdb2
- geninitrd: Finding modules for device path /dev/sda2
- geninitrd: is_luks: /dev/sda2 is not device mapper name
- geninitrd: Finding SCSI modules using scsi_hostadapter
- geninitrd: Finding modules for device path /dev/sdb2
- geninitrd: is_luks: /dev/sdb2 is not device mapper name
- geninitrd: Finding SCSI modules using scsi_hostadapter
- geninitrd: LVM v2 enabled
- geninitrd: Building initrd...
- geninitrd: + cp /usr/lib64/initrd/busybox /root/tmp/initrd.f2Qq5y/bin/busybox
- geninitrd: Loading module [scsi_mod] with options [scan=sync ]
- geninitrd: Loading module [libata]
- geninitrd: Loading module [libahci]
- geninitrd: Loading module [ahci]
- geninitrd: Loading module [dm-mod]
- geninitrd: Loading module [md-mod]
- geninitrd: Loading module [raid1]
- geninitrd: Loading module [crc-t10dif]
- geninitrd: Loading module [sd_mod]
- geninitrd: Loading module [reiserfs]
- geninitrd: Loading module [mbcache]
- geninitrd: Loading module [jbd]
- geninitrd: Loading module [ext3]
- geninitrd: Loading module [scsi_wait_scan]
- geninitrd: Setting up udev...
- geninitrd: + cp /usr/lib64/initrd/udevd /root/tmp/initrd.f2Qq5y/sbin/udevd
- geninitrd: + cp /usr/lib64/initrd/udevadm /root/tmp/initrd.f2Qq5y/sbin/udevadm
- geninitrd: + cp /etc/udev/udev.conf /root/tmp/initrd.f2Qq5y/etc/udev/udev.conf
- geninitrd: + cp /lib/udev/rules.d/50-udev-default.rules /root/tmp/initrd.f2Qq5y/lib/udev/rules.d/50-udev-default.rules
- geninitrd: + cp /lib/udev/rules.d/60-persistent-storage.rules /root/tmp/initrd.f2Qq5y/lib/udev/rules.d/60-persistent-storage.rules
- geninitrd: + cp /lib/udev/rules.d/80-drivers.rules /root/tmp/initrd.f2Qq5y/lib/udev/rules.d/80-drivers.rules
- geninitrd: + cp /lib/udev/rules.d/95-udev-late.rules /root/tmp/initrd.f2Qq5y/lib/udev/rules.d/95-udev-late.rules
- geninitrd: + cp /lib/udev/rules.d/10-dm.rules /root/tmp/initrd.f2Qq5y/lib/udev/rules.d/10-dm.rules
- geninitrd: + cp /lib/udev/rules.d/11-dm-lvm.rules /root/tmp/initrd.f2Qq5y/lib/udev/rules.d/11-dm-lvm.rules
- geninitrd: + cp /lib/udev/rules.d/13-dm-disk.rules /root/tmp/initrd.f2Qq5y/lib/udev/rules.d/13-dm-disk.rules
- geninitrd: + cp /lib/geninitrd/udev-rules/01-ignore.rules /root/tmp/initrd.f2Qq5y/lib/udev/rules.d/01-ignore.rules
- geninitrd: + cp /lib/geninitrd/udev-rules/59-persistent-storage.rules /root/tmp/initrd.f2Qq5y/lib/udev/rules.d/59-persistent-storage.rules
- geninitrd: + cp /lib/geninitrd/udev-rules/61-persistent-storage.rules /root/tmp/initrd.f2Qq5y/lib/udev/rules.d/61-persistent-storage.rules
- geninitrd: + cp /lib/geninitrd/udev-rules/11-dm.rules /root/tmp/initrd.f2Qq5y/lib/udev/rules.d/11-dm.rules
- geninitrd: + cp /usr/lib64/initrd/udev/ata_id /root/tmp/initrd.f2Qq5y/lib/udev/ata_id
- geninitrd: + cp /usr/lib64/initrd/udev/cdrom_id /root/tmp/initrd.f2Qq5y/lib/udev/cdrom_id
- geninitrd: + cp /usr/lib64/initrd/udev/collect /root/tmp/initrd.f2Qq5y/lib/udev/collect
- geninitrd: + cp /usr/lib64/initrd/udev/scsi_id /root/tmp/initrd.f2Qq5y/lib/udev/scsi_id
- geninitrd: + cp /usr/lib64/initrd/udev/v4l_id /root/tmp/initrd.f2Qq5y/lib/udev/v4l_id
- geninitrd: WARNING: BLKID support missing
- geninitrd: + cp /sbin/dmsetup /root/tmp/initrd.f2Qq5y/sbin/dmsetup
- geninitrd: + cp /lib64/ld-linux-x86-64.so.2 /root/tmp/initrd.f2Qq5y/lib64
- geninitrd: + cp /lib64/libc.so.6 /root/tmp/initrd.f2Qq5y/lib64
- geninitrd: + cp /lib64/libdevmapper.so.1.02 /root/tmp/initrd.f2Qq5y/lib64
- geninitrd: + cp /lib64/libdl.so.2 /root/tmp/initrd.f2Qq5y/lib64
- geninitrd: + cp /lib64/libpthread.so.0 /root/tmp/initrd.f2Qq5y/lib64
- geninitrd: + cp /lib64/librt.so.1 /root/tmp/initrd.f2Qq5y/lib64
- geninitrd: + cp /lib64/libselinux.so.1 /root/tmp/initrd.f2Qq5y/lib64
- geninitrd: + cp /lib64/libsepol.so.1 /root/tmp/initrd.f2Qq5y/lib64
- geninitrd: + cp /lib64/libudev.so.0 /root/tmp/initrd.f2Qq5y/lib64
- geninitrd: Setting up mdadm...
- geninitrd: + cp /usr/lib64/initrd/mdassemble /root/tmp/initrd.f2Qq5y/bin/mdassemble
- geninitrd: echo Setting up array (/dev/md0 = /dev/sda2 /dev/sdb2)
- geninitrd: + cp /dev/sda2 /root/tmp/initrd.f2Qq5y/dev/sda2
- geninitrd: + cp /dev/sdb2 /root/tmp/initrd.f2Qq5y/dev/sdb2
- geninitrd: + cp /dev/md0 /root/tmp/initrd.f2Qq5y/dev/md0
- geninitrd: + cp /dev/sda1 /root/tmp/initrd.f2Qq5y/dev/sda1
- geninitrd: + cp /dev/sdb1 /root/tmp/initrd.f2Qq5y/dev/sdb1
- geninitrd: Adding LVM support to initrd
- geninitrd: + cp /usr/lib64/initrd/lvm /root/tmp/initrd.f2Qq5y/bin/lvm.static
- File descriptor 3 (/dev/pts/0) leaked on lvm invocation. Parent PID 6687: /bin/sh
- geninitrd: Adding rootfs finding based on kernel cmdline root= option support.
- geninitrd: Current /proc/partitions:
- > major minor #blocks name
- >
- > 8 32 78182951 sdc
- > 8 33 4000153 sdc1
- > 8 34 74182766 sdc2
- > 8 16 312570167 sdb
- > 8 17 48163 sdb1
- > 8 18 312520477 sdb2
- > 8 0 312571224 sda
- > 8 1 48163 sda1
- > 8 2 312520477 sda2
- > 9 0 312520384 md0
- > 254 0 2097152 dm-0
- > 254 1 26214400 dm-1
- > 254 2 284164096 dm-2
- > 11 0 449512 sr0
- > 9 1 48064 md1
- geninitrd: + mkdir -p /root/tmp/initrd.f2Qq5y/dev/datavg
- geninitrd: + cp /dev/datavg/rootlv /root/tmp/initrd.f2Qq5y/dev/datavg/rootlv
- geninitrd: Current /linuxrc:
- > #!/bin/sh
- > # initrd generated by:
- > # $Revision: 12547 $ $Date:: 2012-04-16 17:34:53 +0200 #$
- >
- > [ -f /proc/cmdline ] || mount -t proc none /proc
- > # builtin defaults from geninitrd
- > ROOT=/dev/datavg/rootlv
- > ROOTFS=reiserfs
- > read CMDLINE < /proc/cmdline
- >
- > for arg in $CMDLINE; do
- > if [ "${arg}" = "debuginitrd" ]; then
- > DEBUGINITRD=yes
- > fi
- > if [ "${arg##debuginitrd=}" != "${arg}" ]; then
- > DEBUGINITRD=${arg##debuginitrd=}
- > fi
- > if [ "${arg##root=}" != "${arg}" ]; then
- > ROOT=${arg##root=}
- > fi
- > if [ "${arg##rootfsflags=}" != "${arg}" ]; then
- > ROOTFSFLAGS=${arg##rootfsflags=}
- > fi
- > if [ "${arg##init=}" != "${arg}" ]; then
- > INIT=${arg##init=}
- > fi
- > done
- >
- > # make debugshell() invoke subshell if $DEBUGINITRD=sh
- > if [ "$DEBUGINITRD" = "sh" ]; then
- > debugshell() {
- > echo "debug shell disabled by /etc/sysconfig/system: RUN_SULOGIN_ON_ERR setting"
- > }
- > else
- > debugshell() {
- > :
- > }
- > fi
- >
- > if [ "$DEBUGINITRD" ]; then
- > set -x
- > fi
- > insmod /lib/modules/3.3.2-1/kernel/drivers/scsi/scsi_mod.ko scan=sync
- > insmod /lib/modules/3.3.2-1/kernel/drivers/ata/libata.ko
- > insmod /lib/modules/3.3.2-1/kernel/drivers/ata/libahci.ko
- > insmod /lib/modules/3.3.2-1/kernel/drivers/ata/ahci.ko
- > insmod /lib/modules/3.3.2-1/kernel/drivers/md/dm-mod.ko
- > insmod /lib/modules/3.3.2-1/kernel/drivers/md/md-mod.ko
- > insmod /lib/modules/3.3.2-1/kernel/drivers/md/raid1.ko
- > insmod /lib/modules/3.3.2-1/kernel/lib/crc-t10dif.ko
- > insmod /lib/modules/3.3.2-1/kernel/drivers/scsi/sd_mod.ko
- > insmod /lib/modules/3.3.2-1/kernel/fs/reiserfs/reiserfs.ko
- > insmod /lib/modules/3.3.2-1/kernel/fs/mbcache.ko
- > insmod /lib/modules/3.3.2-1/kernel/fs/jbd/jbd.ko
- > insmod /lib/modules/3.3.2-1/kernel/fs/ext3/ext3.ko
- > insmod /lib/modules/3.3.2-1/kernel/drivers/scsi/scsi_wait_scan.ko
- > rmmod scsi_wait_scan
- > : 'Creating /dev'
- > if ! mount -t devtmpfs -o mode=0755,nosuid devtmpfs /dev > /dev/null 2>&1; then
- > mount -o mode=0755,nosuid -t tmpfs tmpfs /dev
- > mknod /dev/console c 5 1
- > mknod /dev/null c 1 3
- > mknod /dev/zero c 1 5
- > mknod /dev/random c 1 8
- > mknod /dev/snapshot c 10 231
- > mknod /dev/urandom c 1 9
- > mknod /dev/ptmx c 5 2
- > mknod /dev/kmsg c 1 11
- > fi
- > mkdir /dev/pts
- > mkdir /dev/shm
- > mount -t sysfs none /sys
- > mount -t tmpfs run /run
- > : 'Starting udev'
- > mkdir /run/udev
- > /sbin/udevd --daemon
- > /sbin/udevadm trigger --type=subsystems --action=add
- > /sbin/udevadm trigger --type=devices --action=add
- > /sbin/udevadm settle
- > mdassemble
- >
- > if [ "" ]; then
- > [ -e /proc/mdstat ] && echo "/proc/mdstat contents:" && cat /proc/mdstat
- > fi
- > cat /etc/lvm.conf > /tmp/lvm.conf
- > : 'Making device nodes'
- > cat /proc/partitions | (
- > # ignore first two lines: header, empty line
- > read b; read b
- >
- > while read major minor blocks dev rest; do
- > node=/dev/$dev
- > mkdir -p ${node%/*}
- > [ -e $node ] || mknod $node b $major $minor
- > done
- > )
- > ROOTDEV=/dev/datavg/rootlv
- > LVM_ROOTVG="datavg"
- > LVM_SUSPENDVG=""
- > # parse rootdev from kernel commandline if it begins with /
- > case "$ROOT" in
- > /*)
- >
- > # rewrite:
- > # /dev/mapper/sys-rootfs -> /dev/sys/rootfs
- > # /dev/mapper/blodnatt-blah--bleh -> /dev/blodnatt/blah-bleh
- > # /dev/mapper/vg--meaw-root -> /dev/vg-meaw/root
- > case "$ROOT" in
- > /dev/mapper/*-*)
- > # change "--" to / (as "/" is impossible in LV name)
- > local dev=$(awk -vdev="${ROOT#/dev/mapper/}" 'BEGIN{gsub(/--/, "/", dev); print dev}')
- > local VG=$(awk -vdev="$dev" 'BEGIN{split(dev, v, "-"); gsub("/", "-", v[1]); print v[1]}')
- > local LV=$(awk -vdev="$dev" 'BEGIN{split(dev, v, "-"); gsub("/", "-", v[2]); print v[2]}')
- > ROOT=/dev/$VG/$LV
- > ;;
- > esac
- >
- > if [ "$ROOT" != "$ROOTDEV" ]; then
- > ROOTDEV=$ROOT
- >
- > echo "LVM: Using 'root=$ROOTDEV' from kernel commandline"
- > local tmp=${ROOTDEV#/dev/}
- > if [ "$tmp" != "$ROOTDEV" ]; then
- > LVM_ROOTVG=${tmp%/*}
- > echo "LVM: Using Volume Group '$LVM_ROOTVG' for rootfs"
- > fi
- > fi
- > ;;
- > esac
- >
- > # skip duplicate VG
- > if [ "$LVM_SUSPENDVG" = "$LVM_ROOTVG" ]; then
- > LVM_VGVOLUMES="$LVM_ROOTVG"
- > else
- > LVM_VGVOLUMES="$LVM_SUSPENDVG $LVM_ROOTVG"
- > fi
- >
- > # disable noise from LVM accessing devices that aren't ready.
- > read printk < /proc/sys/kernel/printk
- > if [ ! "$DEBUGINITRD" ]; then
- > echo 0 > /proc/sys/kernel/printk
- > fi
- >
- > export LVM_SYSTEM_DIR=/tmp
- > : 'Scanning for Volume Groups'
- > lvm.static vgscan --mknodes --ignorelockingfailure 2>/dev/null
- >
- > : 'Activating Volume Groups'
- > for vol in $LVM_VGVOLUMES; do
- > lvm.static vgchange --ignorelockingfailure -a y $vol 2>/dev/null
- > done
- >
- > echo "$printk" > /proc/sys/kernel/printk
- >
- > # Find out major/minor
- > attrs="$(lvm.static lvdisplay --ignorelockingfailure -c $ROOTDEV 2>/dev/null)"
- > if [ "$attrs" ]; then
- > majmin="${attrs#*$ROOTDEV*:*:*:*:*:*:*:*:*:*:*:*}"
- > if [ "$majmin" != "$attrs" ]; then
- > major="${majmin%:*}"
- > minor="${majmin#*:}"
- > fi
- > fi
- >
- > if [ "$major" -a "$minor" ]; then
- > # Pass it to kernel
- > echo $((256 * $major + $minor)) > /proc/sys/kernel/real-root-dev
- > fi
- >
- > unset LVM_SYSTEM_DIR
- > if [ "${ROOT##/dev/}" != "${ROOT}" ]; then
- > rootnr="$(busybox awk -v rootnode="${ROOT##/dev/}" '$4 == rootnode { print 256 * $1 + $2 }' /proc/partitions)"
- > # fallback to ls
- > if [ -z "$rootnr" ]; then
- > rootnr="$(busybox ls -lL ${ROOT} | busybox awk '{if (/^b/) { print 256 * $3 + $4; }}')"
- > fi
- > if [ -n "$rootnr" ]; then
- > echo "$rootnr" > /proc/sys/kernel/real-root-dev
- > fi
- > fi
- > /sbin/udevadm control --exit
- > /sbin/udevadm info --cleanup-db
- > ifs=$IFS
- > IFS="
- > "
- > for i in $(export -p); do
- > i=${i#declare -x } # ksh/bash
- > i=${i#export } # busybox
- >
- > case "$i" in
- > *=*)
- > : ;;
- > *)
- > continue ;;
- > esac
- >
- > i=${i%%=*}
- >
- > [ -z "$i" ] && continue
- >
- > case "$i" in
- > ROOT|PATH|HOME|TERM)
- > :
- > ;;
- > *)
- > unset $i
- > ;;
- > esac
- > done
- > IFS=$ifs
- > device=
- > eval "$(busybox awk -v root="$ROOT" '
- > BEGIN {
- > num_pattern_short = "[0-9a-f][0-9a-f][0-9a-f]";
- > num_pattern = "[0-9a-f]" num_pattern_short;
- > dev_pattern = "[hms][a-z][a-z]([0-9])+";
- > partition = "";
- > min = -1; maj = -1;
- >
- > # see if we have /dev/hdX or hdX, we can just take partition name
- > if (root ~ "^\/dev\/" dev_pattern "$" || root ~ "^" dev_pattern "$") {
- > partition = root
- > sub("^/dev/", "", partition);
- >
- > } else {
- > # unify values first
- > if (root ~ "^" num_pattern_short "$") {
- > # change "303" => "0x0303"
- > root = "0x0" root
- > } else if (root ~ "^" num_pattern "$") {
- > # change "0303" => "0x0303"
- > root = "0x" root
- > }
- >
- > maj = sprintf("%d", "0x" substr(root, 3, 2));
- > min = sprintf("%d", "0x" substr(root, 5, 2));
- > }
- > }
- >
- > partition && $4 == partition { maj = $1; min = $2; }
- > $1 == maj && $2 == min { partition = $4; }
- >
- > END {
- > if (maj >= 0 && min >= 0) {
- > printf("maj=%s; min=%s;
- ", maj, min);
- > }
- > if (partition) {
- > printf("device=/dev/%s;
- ", partition);
- > }
- > }
- > ' /proc/partitions)"
- >
- > if [ -z "$device" ]; then
- > device=$ROOT
- > fi
- >
- > if [ "$device" -a ! -b $device ]; then
- > mknod $device b $maj $min
- > fi
- >
- > [ -n "$ROOTFSFLAGS" ] && ROOTFSFLAGS="-o $ROOTFSFLAGS"
- >
- > mount -t $ROOTFS -r $device $ROOTFSFLAGS /newroot || echo "Mount of rootfs failed."
- > init=$INIT
- > if [ -z "$init" -o ! -x "/newroot$init" ]; then
- > init=/sbin/init
- > fi
- > : Last shell before umounting all and giving control over to real init.
- > debugshell
- > mount --bind /run /newroot/run
- > umount /run
- > umount /dev
- > umount /sys
- > umount /proc
- > [ ! -e /newroot/dev/console ] && mknod -m 660 /newroot/dev/console c 5 1
- > exec switch_root /newroot $init ${1:+"$@"}
- >
- > echo "Error! initramfs should not reach this place."
- > echo "It probably means you've got old version of busybox, with broken"
- > echo "initramfs support. Trying to boot anyway, but won't promise anything."
- >
- > exec chroot /newroot $init ${1:+"$@"}
- >
- > echo "Failed to chroot!"
- > debugshell
- geninitrd: image size: 14336 KiB (/root/tmp/initrd.f2Qq5y)
- geninitrd: Creating initramfs image /root/tmp/initrd.img-l1jMHD
- geninitrd: finding compressor: lzo gzip xz lzma bzip2 (via yes)
- geninitrd: Compressing initrd-test1 with gzip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement