Changeset 3278 in MondoRescue for branches/3.2/mindi/mindi
- Timestamp:
- Apr 30, 2014, 12:30:11 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi/mindi
r3277 r3278 35 35 MINDI_LIB=LLL 36 36 MINDI_CACHE=/var/cache/mindi 37 38 MRCFG=mondorestore.cfg 37 39 38 40 # Temporary directory for mindi … … 400 402 LogFile "INFO: Debian-style config detected." 401 403 mkdir -p $bigdir/tmp 402 echo " /etc/console/boottime.kmap.gz" > $bigdir/tmp/KEYMAP-LIVES-HERE404 echo "keymap-lives-here /etc/console/boottime.kmap.gz" >> $bigdir/tmp/$MRCFG 403 405 KBDEPTH=0 404 406 mkdir -p $bigdir/etc/console … … 415 417 kbdfile="/etc/console-setup/cached.kmap.gz" 416 418 fi 417 echo $kbdfile > $bigdir/tmp/KEYMAP-LIVES-HERE419 echo "keymap-lives-here $kbdfile" >> $bigdir/tmp/$MRCFG 418 420 KBDEPTH=0 419 421 mkdir -p $bigdir/etc/console-setup … … 479 481 LogAll "INFO: Adding the following keyboard mapping tables: " 480 482 mkdir -p $bigdir/tmp 481 echo " $mappath" > $bigdir/tmp/KEYMAP-LIVES-HERE483 echo "keymap-lives-here $mappath" >> $bigdir/tmp/$MRCFG 482 484 KBDEPTH=0 483 485 AddKeyboardMappingFile $mappath … … 652 654 if [ -e "$MINDI_TMP/NETFS-SERVER-MOUNT" ] ; then 653 655 LogAll "\nINFO: Incorporating Network-related settings" 654 for r in NETFS-* ISO-PREFIX; do656 for r in NETFS-* ; do 655 657 cp -f $MINDI_TMP/$r $bigdir/tmp 2>> $LOGFILE || Die "Cannot copy $r - did you run out of disk space?" 656 658 LogFile "INFO: Copying $r to ramdisk" … … 974 976 } 975 977 976 # Called by TurnTgzIntoRdz, to make /tmp/ mondorestore.cfg978 # Called by TurnTgzIntoRdz, to make /tmp/$MRCFG 977 979 MakeMondoConfigFile() { 978 980 local outfile use_lzo use_comp use_star … … 1000 1002 AddFileToCfgIfExists $MINDI_TMP/ISO-MNT iso-mnt $outfile 1001 1003 AddFileToCfgIfExists $MINDI_TMP/ISO-PREFIX iso-prefix $outfile 1002 AddFileToCfgIfExists $MINDI_TMP/ISO DIR isodir$outfile1004 AddFileToCfgIfExists $MINDI_TMP/ISO-DIR iso-dir $outfile 1003 1005 AddFileToCfgIfExists $MINDI_TMP/BOOTLOADER.DEVICE bootloader.device $outfile 1004 1006 AddFileToCfgIfExists $MINDI_TMP/BOOTLOADER.NAME bootloader.name $outfile 1005 AddFileToCfgIfExists $MINDI_TMP/BOOTLOADER.VER bootloader.ver $outfile 1006 AddFileToCfgIfExists $MINDI_TMP/KEYMAP-LIVES-HERE keymap-lives-here $outfile 1007 AddFileToCfgIfExists $MINDI_TMP/BOOTLOADER.VER bootloader.ver $outfile 1007 1008 AddFileToCfgIfExists $MINDI_TMP/TAPEDEV-HAS-DATA-DISKS tapedev-has-data-disks $outfile 1008 1009 AddFileToCfgIfExists $MINDI_TMP/BACKUP-MEDIA-TYPE backup-media-type $outfile 1009 1010 AddFileToCfgIfExists $MINDI_TMP/DIFFERENTIAL differential $outfile 1010 AddFileToCfgIfExists $MINDI_TMP/ACL acl $outfile 1011 AddFileToCfgIfExists $MINDI_TMP/XATTR xattr $outfile 1012 AddFileToCfgIfExists $MINDI_TMP/OBDR obdr $outfile 1011 AddFileToCfgIfExists $MINDI_TMP/ACL acl $outfile 1012 AddFileToCfgIfExists $MINDI_TMP/XATTR xattr $outfile 1013 AddFileToCfgIfExists $MINDI_TMP/OBDR obdr $outfile 1014 1013 1015 # Deal with network configuration in a portable way 1014 1016 if [ -f $MINDI_TMP/NETFS-SERVER-MOUNT ]; then 1015 1017 mr-net-get-config `cat $MINDI_TMP/NETFS-SERVER-MOUNT` >> $outfile 1016 grep netfs-server-path $outfile | awk '{print $2}' > $MINDI_TMP/NETFS-SERVER-PATH1017 1018 fi 1018 1019 } … … 1728 1729 if [ "$CDRECOVERY" != "yes" ] ; then 1729 1730 if [ -e "$MINDI_TMP/NETFS-SERVER-MOUNT" ] ; then 1730 echo -en "Press <enter> to continue.\n" 1731 echo -en "Press <enter> for network restore\n" 1732 echo -en "$BOOT_MEDIA_MESSAGE" 1731 1733 elif [ ! "$MINDI_TMP" ] ; then 1732 1734 echo -en "FYI, this is _not_ a Mondo Rescue CD.\n" … … 1893 1895 1894 1896 mkdir -p $mountpoint/tmp 1895 if [ -f "$MINDI_TMP/ mondorestore.cfg" ]; then1896 cp -f $MINDI_TMP/ mondorestore.cfg$mountpoint/tmp1897 if [ -f "$MINDI_TMP/$MRCFG" ]; then 1898 cp -f $MINDI_TMP/$MRCFG $mountpoint/tmp 1897 1899 fi 1898 1900 … … 1988 1990 1989 1991 mkdir -p $mountpoint/tmp 1990 if [ -f "$MINDI_TMP/ mondorestore.cfg" ]; then1991 cp -f $MINDI_TMP/ mondorestore.cfg$mountpoint/tmp1992 if [ -f "$MINDI_TMP/$MRCFG" ]; then 1993 cp -f $MINDI_TMP/$MRCFG $mountpoint/tmp 1992 1994 fi 1993 1995 … … 2095 2097 if [ _"$MONDO_SHARE" != _"" ]; then 2096 2098 # BCO: no reason to have the cfg file stored twice 2097 MakeMondoConfigFile $MINDI_TMP/ mondorestore.cfg2098 cp -f $MINDI_TMP/ mondorestore.cfg$bigdir/tmp &> /dev/null2099 MakeMondoConfigFile $MINDI_TMP/$MRCFG 2100 cp -f $MINDI_TMP/$MRCFG $bigdir/tmp &> /dev/null 2099 2101 fi 2100 2102 [ -d "/mnt/.boot.d" ] && echo "GENTOO" > $bigdir/tmp/DUMBASS-GENTOO … … 2772 2774 [ "$TAPEDEV" ] && echo -en "$TAPEDEV" > $mountpoint/tmp/TAPEDEV-LIVES-HERE 2773 2775 if [ _"$MONDO_SHARE" != _"" ]; then 2774 MakeMondoConfigFile $mountpoint/tmp/ mondorestore.cfg2775 cp -f $mountpoint/tmp/ mondorestore.cfg $MINDI_TMP 2>> $LOGFILE || Die "Cannot copy mondorestore.cfgto ramdisk"2776 MakeMondoConfigFile $mountpoint/tmp/$MRCFG 2777 cp -f $mountpoint/tmp/$MRCFG $MINDI_TMP 2>> $LOGFILE || Die "Cannot copy $MRCFG to ramdisk" 2776 2778 cp -f $MINDI_TMP/mountlist.txt $mountpoint/tmp/ 2>> $LOGFILE || Die "Cannot copy mountlist to ramdisk" 2777 2779 echo -en "$FILES_IN_FILELIST" > $mountpoint/tmp/FILES-IN-FILELIST 2778 2780 echo -en "$LAST_FILELIST_NUMBER" > $mountpoint/tmp/LAST-FILELIST-NUMBER 2779 [ "$USE_LZO" = "yes" ] && echo -en "Pras 4 Pres 2004" >> $mountpoint/tmp/USING-LZO2780 [ "$USE_GZIP" = "yes" ] && echo -en "YES" >> $mountpoint/tmp/USING-GZIP2781 [ "$USE_COMP" = "yes" ] && echo -en "Compression, yep" >> $mountpoint/tmp/USING-COMP2782 [ "$USE_STAR" = "yes" ] && echo -en "Using star. Hooray." >> $mountpoint/tmp/USING-STAR2783 2781 fi 2784 2782 mkdir -p $mountpoint/proc … … 3292 3290 LogFile "NOT_BOOT = '$NOT_BOOT'" 3293 3291 if [ "$NOT_BOOT" != "" ] && [ "$NOT_BOOT" != "0" ] && [ "$NOT_BOOT" != "no" ] ; then 3294 LogIt "INFO: Just creating mondorestore.cfgand a small all.tar.gz for Mondo. Nothing else."3295 MakeMondoConfigFile $MINDI_TMP/ mondorestore.cfg3292 LogIt "INFO: Just creating $MRCFG and a small all.tar.gz for Mondo. Nothing else." 3293 MakeMondoConfigFile $MINDI_TMP/$MRCFG 3296 3294 MakeMountlist $MINDI_TMP/mountlist.txt 3297 3295 CheckMountlist $MINDI_TMP/mountlist.txt 3298 3296 mkdir -p $MINDI_TMP/small-all/tmp 3299 3297 cd "$MINDI_TMP/small-all" 3300 cp -f $MINDI_TMP/{mountlist.txt, mondorestore.cfg,filelist.full.gz,biggielist.txt} tmp 2>> $LOGFILE || Die "Cannot copy small all.tar.gz"3298 cp -f $MINDI_TMP/{mountlist.txt,$MRCFG,filelist.full.gz,biggielist.txt} tmp 2>> $LOGFILE || Die "Cannot copy small all.tar.gz" 3301 3299 tar -cv ./tmp | gzip -9 > $MINDI_TMP/all.tar.gz 2>> $MINDI_TMP/$$.log || Die "Cannot make small all.tar.gz" $MINDI_TMP/$$.log 3302 3300 sleep 2
Note:
See TracChangeset
for help on using the changeset viewer.