echo " --lvm2 Include LVM2 support"
# echo " --unionfs Include UNIONFS support"
echo " --dmraid Include DMRAID support"
+ echo " --bladecenter Enables extra pauses for IBM Bladecenter CD boots"
echo " --bootloader=grub Add new kernel to GRUB configuration"
echo " --linuxrc=<file> Specifies a user created linuxrc"
echo " --disklabel Include disk label and uuid support in your initrd"
CMD_NO_BUSYBOX=1
print_info 2 "CMD_NO_BUSYBOX: $CMD_NO_BUSYBOX"
;;
+ --bladecenter)
+ CMD_BLADECENTER=1
+ print_info 2 "CMD_BLADECENTER: $CMD_BLADECENTER"
+ ;;
--dmraid)
CMD_DMRAID=1
print_info 2 "CMD_DMRAID: $CMD_DMRAID"
else
BUSYBOX=1
fi
+
+ if isTrue "${CMD_BLADECENTER}"
+ then
+ BLADECENTER=1
+ else
+ BLADECENTER=0
+ fi
if isTrue "${CMD_DMRAID}"
then
# Check udev is available...
if [ "${KV_2_6_OR_GREATER}" -a ! "${USE_UDEV_NORMAL}" -eq '0' -a -x /sbin/udev ]
then
- USE_UDEV_NORMAL=1
+ USE_UDEV_NORMAL=1
else
- USE_UDEV_NORMAL=0
+ USE_UDEV_NORMAL=0
fi
if [ "${USE_UDEV_NORMAL}" -eq '1' ]
then
- cd /sys
- kill_devfsd
- good_msg 'Activating udev'
- runUdev
- cd /
+ cd /sys
+ [ "${BLADECENTER}" -eq "1" ] && sleep 10
+ kill_devfsd
+ good_msg 'Activating udev'
+ runUdev
+ [ "${BLADECENTER}" -eq "1" ] && sleep 20
+ cd /
else
- if [ ! -e /dev/.devfsd ]
- then
- good_msg 'Activating devfs'
- mount -t devfs devfs /dev
- devfsd /dev -np
- fi
+ if [ ! -e /dev/.devfsd ]
+ then
+ good_msg 'Activating devfs'
+ mount -t devfs devfs /dev
+ devfsd /dev -np
+ fi
fi
}
fi
done
+ [ "${BLADECENTER}" -eq '1' ] && sleep 10
mkdir initrd proc tmp sys 2>/dev/null
chmod 1777 tmp
fi
# Let Init scripts know that we booted from CD
export CDBOOT
CDBOOT=1
+ [ "${BLADECENTER}" -eq '1' ] && sleep 10
else
mkdir -p ${NEW_ROOT}/tmp/.initrd
fi
cd ${CHROOT}
mkdir ${CHROOT}/proc ${CHROOT}/sys 2>/dev/null
pivot_root . tmp/.initrd
+ [ "${BLADECENTER}" -eq '1' ] && sleep 10
echo -n '.'
if /tmp/.initrd/bin/[ "${USE_DEVFS_NORMAL}" -eq '1' -a "${CDROOT}" -eq '0' ]