Changeset 204 in MondoRescue
- Timestamp:
- Dec 14, 2005, 4:04:11 PM (19 years ago)
- 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 2 2 # $Id$ 3 3 # 4 %define mrel 1 5 4 6 Summary: A program that creates emergency boot disks/CDs using your kernel, tools and modules. 5 7 Name: mindi-kernel 6 8 Version: 1.05 7 Release: 19 Release: %mrel 8 10 Copyright: GPL 9 11 Group: System/Kernel and hardware -
branches/2.05/mindi/README.pxe
r148 r204 9 9 mondo 10 10 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"] ... 12 12 13 13 The 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 14 created by mondoarchive. To get them, please issue: 18 15 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 21 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 isolinux.cfg on the first bootable media) to which you need to add the keyword pxe. 20 22 (You need to have backup your data using the NFS option of mondoarchive) 21 23 … … 26 28 27 29 Please report any problem around that tool to bcornec@users.berlios.de 30 31 2005-12-14 detailed explanations on where to find initrd and kernel -
branches/2.05/tools/mkrpm
r157 r204 24 24 c=$1 25 25 fi 26 if [ "`echo $c | grep mindi`" != "" ]; then 26 if [ "`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" 40 fi 41 if [ "`echo $c | grep -v kernel | grep mindi`" != "" ]; then 27 42 cd ${BASE}/svn 28 43 echo "Management of mindi ${MINDI_VER}" … … 40 55 pkg="$pkg ${TOPDIR}/RPMS/${ARCH}/mindi-${MINDI_VER}-${rev}.${suf}.${ARCH}.rpm" 41 56 # ATTENTION: This could be dangerous for your setup 42 opt="rm -rf /usr/ share/mindi ;"57 opt="rm -rf /usr/lib/mindi ;" 43 58 fi 44 59 if [ "`echo $c | grep mondo`" != "" ]; then … … 61 76 fi 62 77 cd ${TOPDIR}/SPECS 63 if [ "`echo $c | grep mindi`" != "" ]; then 78 if [ "`echo $c | grep kernel`" != "" ]; then 79 rpmbuild -ba mindi-kernel.spec 80 fi 81 if [ "`echo $c | grep -v kernel | grep mindi`" != "" ]; then 64 82 rpmbuild -ba mindi.spec 65 83 fi 66 84 if [ "`echo $c | grep mondo`" != "" ]; then 67 rpmbuild -ba --without xmondomondo.spec85 rpmbuild -ba mondo.spec 68 86 fi 69 87 su - -c "$opt rpm -Uvh --force $pkg"
Note:
See TracChangeset
for help on using the changeset viewer.