Changeset 1142 in MondoRescue for branches/stable/mindi
- Timestamp:
- Feb 12, 2007, 3:02:08 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/mindi
r1141 r1142 2754 2754 find $mountpoint -name CVS -exec rm -rf '{}' \; 2755 2755 # Determine what filesystem to use for initrd image 2756 LogIt "Call GetInitrdFilesystemToUse() with parameter ${kernelpath} to get filesystem to use for initrd.\n"2756 echo "Call GetInitrdFilesystemToUse() with parameter ${kernelpath} to get filesystem to use for initrd." >> $LOGFILE 2757 2757 gvFileSystem=`GetInitrdFilesystemToUse ${kernelpath}` 2758 2758 [ -z gvFileSystem ] && Die "GetFilesystemToUse() failed. Terminating." … … 2760 2760 "ext2fs") 2761 2761 # say what will be used 2762 LogIt "Creating an ext2 initrd image..."2762 echo "Creating an ext2 initrd image..." >> $LOGFILE 2763 2763 # kernel expects linuxrc in ext2 filesystem 2764 ( cd $mountpoint && ln -s sbin/init linuxrc )2764 ( cd $mountpoint && ln -sf sbin/init linuxrc ) 2765 2765 # unmount loop filesystem and create image file using the standard approach 2766 2766 umount $mountpoint || Die "Cannot unmount $tempfile" 2767 2767 dd if=$tempfile bs=1k 2> /dev/null | gzip -v9 > $rdz_fname 2> /dev/null 2768 2768 # log that we are done 2769 LogIt "done.\n"2769 echo "...done." >> $LOGFILE 2770 2770 ;; 2771 2771 "initramfs") 2772 2772 # say what will be used 2773 LogIt "Creating a gzip'ed cpio (AKA initramfs) initrd image..."2773 echo "Creating a gzip'ed cpio (AKA initramfs) initrd image..." >> $LOGFILE 2774 2774 # make sure that cpio is there 2775 2775 which cpio &> /dev/null; [ $? -eq 0 ] || Die "cpio not found. Please install package cpio and try again." … … 2777 2777 cd $mountpoint 2778 2778 # kernel expects init in cpio filesystem 2779 ln -s sbin/init init2779 ln -sf sbin/init init 2780 2780 # create cpio image file and unmount loop filesystem 2781 2781 find . -print | cpio -o -H newc | gzip -9 > $old_pwd/$rdz_fname 2> /dev/null … … 2783 2783 umount $mountpoint || Die "Cannot unmount $tempfile" 2784 2784 # log that we are done 2785 LogIt "done.\n"2785 echo "...done." >> $LOGFILE 2786 2786 ;; 2787 2787 *)
Note:
See TracChangeset
for help on using the changeset viewer.