Changeset 3270 in MondoRescue
- Timestamp:
- Apr 29, 2014, 9:17:02 PM (11 years ago)
- Location:
- branches/3.2/mindi
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi/mindi
r3261 r3270 650 650 fi 651 651 cp -f $MINDI_TMP/BOOTLOADER.* $bigdir 2>> $LOGFILE || LogIt "\nINFO: Mondo v1.2x defaults to LILO as the bootloader, BTW." 652 if [ -e "$MINDI_TMP/NETFS- DEV" ] ; then652 if [ -e "$MINDI_TMP/NETFS-SERVER-MOUNT" ] ; then 653 653 LogAll "\nINFO: Incorporating Network-related settings" 654 654 for r in NETFS-* ISO-PREFIX ; do … … 974 974 } 975 975 976 # Called by TurnTgzIntoRdz, to make /tmp/mondo -restore.cfg976 # Called by TurnTgzIntoRdz, to make /tmp/mondorestore.cfg 977 977 MakeMondoConfigFile() { 978 978 local outfile use_lzo use_comp use_star … … 997 997 echo "datestamp `date`" >> $outfile 998 998 [ "$ESTIMATED_TOTAL_NOOF_SLICES" ] && echo "total-slices $ESTIMATED_TOTAL_NOOF_SLICES" >> $outfile 999 AddFileToCfgIfExists $MINDI_TMP/NETFS-DEV netfs-dev $outfile1000 AddFileToCfgIfExists $MINDI_TMP/NETFS-PROTO netfs-proto $outfile1001 AddFileToCfgIfExists $MINDI_TMP/NETFS-CLIENT-IPADDR netfs-client-ipaddr $outfile1002 AddFileToCfgIfExists $MINDI_TMP/NETFS-CLIENT-NETMASK netfs-client-netmask $outfile1003 AddFileToCfgIfExists $MINDI_TMP/NETFS-CLIENT-BROADCAST netfs-client-broadcast $outfile1004 AddFileToCfgIfExists $MINDI_TMP/NETFS-CLIENT-HWADDR netfs-client-hwaddr $outfile1005 AddFileToCfgIfExists $MINDI_TMP/NETFS-CLIENT-DEFGW netfs-client-defgw $outfile1006 AddFileToCfgIfExists $MINDI_TMP/NETFS-SERVER-MOUNT netfs-server-mount $outfile1007 AddFileToCfgIfExists $MINDI_TMP/NETFS-SERVER-USER netfs-server-user $outfile1008 AddFileToCfgIfExists $MINDI_TMP/NETFS-SERVER-PATH netfs-server-path $outfile1009 AddFileToCfgIfExists $MINDI_TMP/NETFS-SERVER-IPADDR netfs-server-ipaddr $outfile1010 999 AddFileToCfgIfExists $MINDI_TMP/ISO-DEV iso-dev $outfile 1011 1000 AddFileToCfgIfExists $MINDI_TMP/ISO-MNT iso-mnt $outfile … … 1022 1011 AddFileToCfgIfExists $MINDI_TMP/XATTR xattr $outfile 1023 1012 AddFileToCfgIfExists $MINDI_TMP/OBDR obdr $outfile 1013 # Deal with network configuration in a portable way 1014 if [ -f $MINDI_TMP/NETFS-SERVER-MOUNT ]; then 1015 mr-net-get-config `cat $MINDI_TMP/NETFS-SERVER-MOUNT` >> $outfile 1016 grep netfs-server-path $outfile | awk '{print $2}' > $MINDI_TMP/NETFS-SERVER-PATH 1017 fi 1024 1018 } 1025 1019 … … 1733 1727 if [ _"$MONDO_SHARE" != _"" ]; then 1734 1728 if [ "$CDRECOVERY" != "yes" ] ; then 1735 if [ -e "$MINDI_TMP/NETFS- DEV" ] ; then1729 if [ -e "$MINDI_TMP/NETFS-SERVER-MOUNT" ] ; then 1736 1730 echo -en "Press <enter> to continue.\n" 1737 1731 elif [ ! "$MINDI_TMP" ] ; then … … 1780 1774 # In case it's mondoarchive 1781 1775 elif [ _"$MONDO_SHARE" != _"" ]; then 1782 if [ -e "$MINDI_TMP/NETFS- DEV" ] ; then1776 if [ -e "$MINDI_TMP/NETFS-SERVER-MOUNT" ] ; then 1783 1777 echo -en "default${sep}iso\n" 1784 1778 else … … 1899 1893 1900 1894 mkdir -p $mountpoint/tmp 1901 if [ -f "$MINDI_TMP/mondo -restore.cfg" ]; then1902 cp -f $MINDI_TMP/mondo -restore.cfg $mountpoint/tmp1895 if [ -f "$MINDI_TMP/mondorestore.cfg" ]; then 1896 cp -f $MINDI_TMP/mondorestore.cfg $mountpoint/tmp 1903 1897 fi 1904 1898 … … 1994 1988 1995 1989 mkdir -p $mountpoint/tmp 1996 if [ -f "$MINDI_TMP/mondo -restore.cfg" ]; then1997 cp -f $MINDI_TMP/mondo -restore.cfg $mountpoint/tmp1990 if [ -f "$MINDI_TMP/mondorestore.cfg" ]; then 1991 cp -f $MINDI_TMP/mondorestore.cfg $mountpoint/tmp 1998 1992 fi 1999 1993 … … 2100 2094 mkdir -p $bigdir/tmp 2101 2095 if [ _"$MONDO_SHARE" != _"" ]; then 2102 MakeMondoConfigFile $MINDI_TMP/mondo-restore.cfg 2103 cp -f $MINDI_TMP/mondo-restore.cfg $bigdir/tmp &> /dev/null 2096 # BCO: no reason to have the cfg file stored twice 2097 MakeMondoConfigFile $MINDI_TMP/mondorestore.cfg 2098 cp -f $MINDI_TMP/mondorestore.cfg $bigdir/tmp &> /dev/null 2104 2099 fi 2105 2100 [ -d "/mnt/.boot.d" ] && echo "GENTOO" > $bigdir/tmp/DUMBASS-GENTOO … … 2680 2675 list_of_groovy_mods="$CDROM_MODS $FORCE_MODS" 2681 2676 2682 if [ -e "$MINDI_TMP/NETFS- DEV" ] ; then2677 if [ -e "$MINDI_TMP/NETFS-SERVER-MOUNT" ] ; then 2683 2678 # For PXE boot 2684 2679 list_of_groovy_mods="$list_of_groovy_mods $NET_MODS" … … 2770 2765 [ "$TAPEDEV" ] && echo -en "$TAPEDEV" > $mountpoint/tmp/TAPEDEV-LIVES-HERE 2771 2766 if [ _"$MONDO_SHARE" != _"" ]; then 2772 MakeMondoConfigFile $mountpoint/tmp/mondo -restore.cfg2773 cp -f $mountpoint/tmp/mondo -restore.cfg $MINDI_TMP 2>> $LOGFILE || Die "Cannot copy mondo-restore.cfg to ramdisk"2767 MakeMondoConfigFile $mountpoint/tmp/mondorestore.cfg 2768 cp -f $mountpoint/tmp/mondorestore.cfg $MINDI_TMP 2>> $LOGFILE || Die "Cannot copy mondorestore.cfg to ramdisk" 2774 2769 cp -f $MINDI_TMP/mountlist.txt $mountpoint/tmp/ 2>> $LOGFILE || Die "Cannot copy mountlist to ramdisk" 2775 2770 echo -en "$FILES_IN_FILELIST" > $mountpoint/tmp/FILES-IN-FILELIST … … 3290 3285 LogFile "NOT_BOOT = '$NOT_BOOT'" 3291 3286 if [ "$NOT_BOOT" != "" ] && [ "$NOT_BOOT" != "0" ] && [ "$NOT_BOOT" != "no" ] ; then 3292 LogIt "INFO: Just creating mondo -restore.cfg and a small all.tar.gz for Mondo. Nothing else."3293 MakeMondoConfigFile $MINDI_TMP/mondo -restore.cfg3287 LogIt "INFO: Just creating mondorestore.cfg and a small all.tar.gz for Mondo. Nothing else." 3288 MakeMondoConfigFile $MINDI_TMP/mondorestore.cfg 3294 3289 MakeMountlist $MINDI_TMP/mountlist.txt 3295 3290 CheckMountlist $MINDI_TMP/mountlist.txt 3296 3291 mkdir -p $MINDI_TMP/small-all/tmp 3297 3292 cd "$MINDI_TMP/small-all" 3298 cp -f $MINDI_TMP/{mountlist.txt,mondo -restore.cfg,filelist.full.gz,biggielist.txt} tmp 2>> $LOGFILE || Die "Cannot copy small all.tar.gz"3293 cp -f $MINDI_TMP/{mountlist.txt,mondorestore.cfg,filelist.full.gz,biggielist.txt} tmp 2>> $LOGFILE || Die "Cannot copy small all.tar.gz" 3299 3294 tar -cv ./tmp | gzip -9 > $MINDI_TMP/all.tar.gz 2>> $MINDI_TMP/$$.log || Die "Cannot make small all.tar.gz" $MINDI_TMP/$$.log 3300 3295 sleep 2
Note:
See TracChangeset
for help on using the changeset viewer.