Finally making the --bladecenter/dobladecenter stuff correct. Thanks plasmaroo for helping me wrap my head around how this works and to remove my dirty hack.

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@294 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Chris Gianelloni 20 years ago
parent 2704232ea1
commit e3344146cc

@ -391,13 +391,6 @@ determine_real_args() {
BUSYBOX=1 BUSYBOX=1
fi fi
if isTrue "${CMD_BLADECENTER}"
then
BLADECENTER=1
else
BLADECENTER=0
fi
if isTrue "${CMD_DMRAID}" if isTrue "${CMD_DMRAID}"
then then
DMRAID=1 DMRAID=1

@ -34,10 +34,6 @@ create_base_layout_cpio() {
mknod -m 660 null c 1 3 mknod -m 660 null c 1 3
mknod -m 600 tty1 c 4 1 mknod -m 600 tty1 c 4 1
cd "${TEMP}/initramfs-base-temp/" cd "${TEMP}/initramfs-base-temp/"
if [ "${BLADECENTER}" -eq '1' ]
then
echo "BLADECENTER=1" >> ${TEMP}/initramfs-base-temp/etc/startup.conf
fi
find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_CPIO_DIR}/initramfs-base-layout.cpio.gz find . -print | cpio --quiet -o -H newc | gzip -9 > ${CACHE_CPIO_DIR}/initramfs-base-layout.cpio.gz
rm -rf "${TEMP}/initramfs-base-temp" > /dev/null rm -rf "${TEMP}/initramfs-base-temp" > /dev/null
} }
@ -408,6 +404,10 @@ create_initramfs_aux() {
fi fi
mkdir -p "${TEMP}/initramfs-aux-temp/lib/keymaps" mkdir -p "${TEMP}/initramfs-aux-temp/lib/keymaps"
/bin/tar -C "${TEMP}/initramfs-aux-temp/lib/keymaps" -zxf "${GK_SHARE}/generic/keymaps.tar.gz" /bin/tar -C "${TEMP}/initramfs-aux-temp/lib/keymaps" -zxf "${GK_SHARE}/generic/keymaps.tar.gz"
if isTrue $CMD_BLADECENTER
then
echo 'MY_HWOPTS="${MY_HWOPTS} bladecenter"' >> ${TEMP}/initramfs-aux-temp/etc/initrd.defaults
fi
cd ${TEMP}/initramfs-aux-temp/sbin && ln -s ../init init cd ${TEMP}/initramfs-aux-temp/sbin && ln -s ../init init
cd ${TEMP} cd ${TEMP}

@ -56,11 +56,7 @@ create_base_initrd_sys() {
cd ${TEMP}/initrd-temp/dev cd ${TEMP}/initrd-temp/dev
MAKEDEV std MAKEDEV std
MAKEDEV console MAKEDEV console
if [ "${BLADECENTER}" -eq '1' ]
then
echo "BLADECENTER=1" >> ${TEMP}/initrd-temp/etc/startup.conf
fi
if [ "${DISKLABEL}" -eq '1' ]; then if [ "${DISKLABEL}" -eq '1' ]; then
cp "${BLKID_BINCACHE}" "${TEMP}/initrd-temp/bin/blkid.bz2" || cp "${BLKID_BINCACHE}" "${TEMP}/initrd-temp/bin/blkid.bz2" ||
gen_die 'Could not copy blkid from bincache!' gen_die 'Could not copy blkid from bincache!'
@ -297,6 +293,10 @@ create_initrd_aux() {
fi fi
mkdir -p "${TEMP}/initrd-temp/lib/keymaps" mkdir -p "${TEMP}/initrd-temp/lib/keymaps"
/bin/tar -C "${TEMP}/initrd-temp/lib/keymaps" -zxf "${GK_SHARE}/generic/keymaps.tar.gz" /bin/tar -C "${TEMP}/initrd-temp/lib/keymaps" -zxf "${GK_SHARE}/generic/keymaps.tar.gz"
if isTrue $CMD_BLADECENTER
then
echo 'MY_HWOPTS="${MY_HWOPTS} bladecenter"' >> ${TEMP}/initrd-temp/etc/initrd.defaults
fi
cd ${TEMP}/initrd-temp/sbin && ln -s ../linuxrc init cd ${TEMP}/initrd-temp/sbin && ln -s ../linuxrc init
cd ${OLDPWD} cd ${OLDPWD}

@ -78,5 +78,5 @@ CONSOLE="/dev/console"
# Only sections that are in by default or those that # Only sections that are in by default or those that
# are not module groups need to be defined here... # are not module groups need to be defined here...
HWOPTS='usb firewire keymap cache evms2 sata lvm2 dmraid' HWOPTS='usb firewire keymap cache evms2 sata lvm2 dmraid bladecenter'
MY_HWOPTS='usb firewire sata dmraid' MY_HWOPTS='usb firewire sata dmraid'

@ -265,11 +265,11 @@ start_dev_mgr(){
if [ "${USE_UDEV_NORMAL}" -eq '1' ] if [ "${USE_UDEV_NORMAL}" -eq '1' ]
then then
cd /sys cd /sys
[ "${BLADECENTER}" -eq '1' ] && sleep 10 [ "${DO_bladecenter}" -eq '1' ] && sleep 10
kill_devfsd kill_devfsd
good_msg 'Activating udev' good_msg 'Activating udev'
runUdev runUdev
[ "${BLADECENTER}" -eq '1' ] && sleep 20 [ "${DO_bladecenter}" -eq '1' ] && sleep 20
cd / cd /
else else
if [ ! -e /dev/.devfsd ] if [ ! -e /dev/.devfsd ]

@ -5,7 +5,6 @@
. /etc/initrd.defaults . /etc/initrd.defaults
. /etc/initrd.scripts . /etc/initrd.scripts
. /etc/startup.conf
splash() { splash() {
return 0 return 0
@ -140,14 +139,6 @@ do
SDELAY=10 SDELAY=10
;; ;;
# IBM BladeCenter support
bladecenter)
BLADECENTER=1
;;
nobladecenter)
BLADECENTER=0
;;
# Module no-loads # Module no-loads
noload\=*) noload\=*)
MLIST=`parse_opt "${x}"` MLIST=`parse_opt "${x}"`
@ -548,7 +539,7 @@ then
fi fi
done done
[ "${BLADECENTER}" -eq '1' ] && sleep 10 [ "${DO_bladecenter}" -eq '1' ] && sleep 10
mkdir initrd proc tmp sys 2>/dev/null mkdir initrd proc tmp sys 2>/dev/null
chmod 1777 tmp chmod 1777 tmp
fi fi
@ -563,7 +554,7 @@ then
# Let Init scripts know that we booted from CD # Let Init scripts know that we booted from CD
export CDBOOT export CDBOOT
CDBOOT=1 CDBOOT=1
[ "${BLADECENTER}" -eq '1' ] && sleep 10 [ "${DO_bladecenter}" -eq '1' ] && sleep 10
else else
mkdir -p ${NEW_ROOT}/tmp/.initrd mkdir -p ${NEW_ROOT}/tmp/.initrd
fi fi
@ -587,7 +578,7 @@ then
cd ${CHROOT} cd ${CHROOT}
mkdir ${CHROOT}/proc ${CHROOT}/sys 2>/dev/null mkdir ${CHROOT}/proc ${CHROOT}/sys 2>/dev/null
pivot_root . tmp/.initrd pivot_root . tmp/.initrd
[ "${BLADECENTER}" -eq '1' ] && sleep 10 [ "${DO_bladecenter}" -eq '1' ] && sleep 10
echo -n '.' echo -n '.'
if /tmp/.initrd/bin/[ "${USE_DEVFS_NORMAL}" -eq '1' -a "${CDROOT}" -eq '0' ] if /tmp/.initrd/bin/[ "${USE_DEVFS_NORMAL}" -eq '1' -a "${CDROOT}" -eq '0' ]

@ -2,7 +2,7 @@
# Genkernel v3 # Genkernel v3
PATH="/bin:/usr/bin:/sbin:/usr/sbin" PATH="/bin:/usr/bin:/sbin:/usr/sbin"
GK_V='3.3.3' GK_V='3.3.4'
TMPDIR='/var/tmp/genkernel' TMPDIR='/var/tmp/genkernel'
TODEBUGCACHE=1 # Until an error occurs or DEBUGFILE is fully qualified. TODEBUGCACHE=1 # Until an error occurs or DEBUGFILE is fully qualified.

Loading…
Cancel
Save