Changeset 204


Ignore:
Timestamp:
Dec 14, 2005, 4:04:11 PM (13 years ago)
Author:
bcornec
Message:

mindi-kernel now handled correctly with the new mindi layout.
mkrpm knows how to build a mindi-kernel package
PXE doc improved

Location:
branches/2.05
Files:
2 edited
2 copied
1 moved

Legend:

Unmodified
Added
Removed
  • branches/2.05/mindi-kernel/mindi-kernel.spec

    r203 r204  
    22# $Id$
    33#
     4%define mrel    1
     5
    46Summary:    A program that creates emergency boot disks/CDs using your kernel, tools and modules.
    57Name:       mindi-kernel
    68Version:    1.05
    7 Release:    1
     9Release:    %mrel
    810Copyright:  GPL
    911Group:      System/Kernel and hardware
  • branches/2.05/mindi/README.pxe

    r148 r204  
    99mondo
    1010        kernel vmlinuz-mondo
    11         initrd initrd-mondo pxe [prefix="machine"] ...
     11        initrd initrd-mondo load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=36864 rw root=/dev/ram iso_mode acpi=off apm=off devfs=nomount exec-shield=0 pxe [prefix="machine"] ...
    1212
    1313The initrd and kernel file come rom the first bootable media
    14 created by mondoarchive.
    15 If you mount it you should find what you need under /images
    16 with a name like mindi-bootroot.8192.img
    17 initrd is mindi.rdz and kernel is vmlinuz
     14created by mondoarchive. To get them, please issue:
    1815
    19 Thus the PXE ROM will boot mondo's kernel and mondo's initrd in memory and will append all the right configuration options (as you find in syslinux.cfg on the mindi's floppy image) to which you need to add the keyword pxe.
     16# mount /path/to/mondorescue-1.iso /mnt/cdrom -o loop
     17# cp -a /mnt/cdrom/vmlinuz /var/tftpboot/vmlinuz-mondo
     18# cp -a /mnt/cdrom/initrd.img /var/tftpboot/initrd-mondo
     19# umount /mnt/cdrom
     20
     21Thus the PXE ROM will boot mondo's kernel and mondo's initrd in memory and will append all the right configuration options (as you find in isolinux.cfg on the first bootable media) to which you need to add the keyword pxe.
    2022(You need to have backup your data using the NFS option of mondoarchive)
    2123
     
    2628
    2729Please report any problem around that tool to bcornec@users.berlios.de
     30
     312005-12-14 detailed explanations on where to find initrd and kernel
  • branches/2.05/tools/mkrpm

    r157 r204  
    2424    c=$1
    2525fi
    26 if [ "`echo $c | grep mindi`" != "" ]; then
     26if [ "`echo $c | grep mindi-kernel`" != "" ]; then
     27    cd ${BASE}/svn
     28    echo "Management of mindi-kernel ${MINDI_VER}"
     29    rm -fr mindi-kernel-${MINDI_VER}
     30    cp -a ${VER}/mindi-kernel mindi-kernel-${MINDI_VER}
     31    find mindi-kernel-${MINDI_VER} -type d -name .svn | xargs rm -rf
     32    find mindi-kernel-${MINDI_VER} -type f -name '.*.swp' | xargs rm -rf
     33    find mindi-kernel-${MINDI_VER} -type f -name '*~' | xargs rm -rf
     34    mkdir -p ${TOPDIR}/SOURCES
     35    tar cvfhz ${TOPDIR}/SOURCES/mindi-kernel-${MINDI_VER}.tgz mindi-kernel-${MINDI_VER}
     36    tar cvfhj ${TOPDIR}/SOURCES/mindi-kernel-${MINDI_VER}.tar.bz2 mindi-kernel-${MINDI_VER}
     37    sed "s/^%define mrel..*/%define mrel    ${rev}.${suf}/" mindi-kernel-${MINDI_VER}/mindi-kernel.spec > ${TOPDIR}/SPECS/mindi-kernel.spec
     38    rm -f ${TMP}/mindi-kernel*-root
     39    pkg="$pkg ${TOPDIR}/RPMS/${ARCH}/mindi-kernel-${MINDI_VER}-${rev}.${suf}.${ARCH}.rpm"
     40fi
     41if [ "`echo $c | grep -v kernel | grep mindi`" != "" ]; then
    2742    cd ${BASE}/svn
    2843    echo "Management of mindi ${MINDI_VER}"
     
    4055    pkg="$pkg ${TOPDIR}/RPMS/${ARCH}/mindi-${MINDI_VER}-${rev}.${suf}.${ARCH}.rpm"
    4156    # ATTENTION: This could be dangerous for your setup
    42     opt="rm -rf /usr/share/mindi ;"
     57    opt="rm -rf /usr/lib/mindi ;"
    4358fi
    4459if [ "`echo $c | grep  mondo`" != "" ]; then
     
    6176fi
    6277cd ${TOPDIR}/SPECS
    63 if [ "`echo $c | grep mindi`" != "" ]; then
     78if [ "`echo $c | grep kernel`" != "" ]; then
     79    rpmbuild -ba mindi-kernel.spec
     80fi
     81if [ "`echo $c | grep -v kernel | grep mindi`" != "" ]; then
    6482    rpmbuild -ba mindi.spec
    6583fi
    6684if [ "`echo $c | grep mondo`" != "" ]; then
    67     rpmbuild -ba --without xmondo mondo.spec
     85    rpmbuild -ba mondo.spec
    6886fi
    6987su - -c "$opt rpm -Uvh --force $pkg"
Note: See TracChangeset for help on using the changeset viewer.