Changeset 2156 in MondoRescue
- Timestamp:
- Feb 19, 2009, 11:46:33 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi/mindi
r2153 r2156 48 48 MY_FSTAB=/etc/fstab 49 49 TAPE_MODS="ht st osst ide-tape ide_tape" 50 SCSI_MODS="3w-xxxx 3w_xxxx 3w_9xxx 3w-9xxx 53c7,8xx a100u2w a320raid aacraid adpahci advansys aha152x aha1542 aha1740 aic79xx aic79xx_mod aic7xxx aic7xxx_mod aic7xxx_old AM53C974 atp870u BusLogic cciss cpqfc dmx3191d dpt_i2o dtc eata eata_dma eata_pio fdomain gdth g_NCR5380 i2o_block i2o_core ide-scsi ieee1394 imm in2000 initio ips iscsi iscsi_tcp libiscsi scsi_transport_iscsi isp megaraid megaraid_mm megaraid_mbox megaraid_sas mptbase mptscsih mptsas mptspi mptfc mptscsi mptctl NCR53c406a ncr53c8xx nsp32 pas16 pci2000 pci2220i pcmcia ppa psi240i qla1280 qla2200 qla2300 qla2400 qla2xxx qla2xxx_conf qlogicfas qlogicfc qlogicisp qlogicfas qlogicfas408 raw1394 scsi_mod scsi_transport_sas scsi_transport_spi scsi_transport_fc sd_mod crc_t10dif crc-t10dif seagate sg sim710 sr_mod sym53c416 sym53c8xx sym53c8xx_2 t128 tmscsim u14-34f ultrastor wd7000 vmhgfs intermodule scsi_dh scsi_tgt "50 SCSI_MODS="3w-xxxx 3w_xxxx 3w_9xxx 3w-9xxx 53c7,8xx a100u2w a320raid aacraid adpahci advansys aha152x aha1542 aha1740 aic79xx aic79xx_mod aic7xxx aic7xxx_mod aic7xxx_old AM53C974 atp870u BusLogic cciss cpqfc dmx3191d dpt_i2o dtc eata eata_dma eata_pio fdomain gdth g_NCR5380 i2o_block i2o_core ide-scsi ieee1394 imm in2000 initio ips iscsi iscsi_tcp libiscsi scsi_transport_iscsi isp megaraid megaraid_mm megaraid_mbox megaraid_sas mptbase mptscsih mptsas mptspi mptfc mptscsi mptctl NCR53c406a ncr53c8xx nsp32 pas16 pci2000 pci2220i pcmcia ppa psi240i qla1280 qla2200 qla2300 qla2400 qla2xxx qla2xxx_conf qlogicfas qlogicfc qlogicisp qlogicfas qlogicfas408 raw1394 scsi_mod scsi_transport_sas scsi_transport_spi scsi_transport_fc sd_mod crc_t10dif crc-t10dif seagate sg sim710 sr_mod sym53c416 sym53c8xx sym53c8xx_2 t128 tmscsim u14-34f ultrastor wd7000 vmhgfs intermodule scsi_dh scsi_tgt emcpdm emcpgpx emcpmpx emcp" 51 51 52 52 # ide-probe-mod … … 152 152 153 153 mkdir -p $bigdir/etc 154 tar cf - $mappath 2>> $LOGFILE | (cd $bigdir ; tar xf -) || LogIt "AKMF -- Could not copy $mappath to $bigdir"154 tar cf - -C / $mappath 2>> $LOGFILE | (cd $bigdir ; tar xf -) || LogIt "AKMF -- Could not copy $mappath to $bigdir" 155 155 if [ "`echo $mappath | grep -F ".gz"`" ] ; then 156 156 included_list=`gzip -dc $mappath | grep -Fi include | sed s/'"'// | sed s/'"'// | cut -d' ' -f2` … … 195 195 find $incoming/* -maxdepth 0 2> /dev/null | CopyDependenciesToDirectory $outdir 196 196 elif [ -e "$incoming" ] && [ $found = "false" ]; then 197 tar cf - $incoming 2>> $LOGFILE | (cd $outdir ; tar xf -) || Die "Cannot copy $incoming to $outdir - did you run out of disk space?"197 tar cf - -C / $incoming 2>> $LOGFILE | (cd $outdir ; tar xf -) || Die "Cannot copy $incoming to $outdir - did you run out of disk space?" 198 198 199 199 # Only uncompress modules if not using udevd … … 1889 1889 [ "$?" -ne "0" ] && [ _"$MONDO_SHARE" != _"" ] && Die "Cannot find/install $MONDO_SHARE/restore-scripts" 1890 1890 fi 1891 [ -d "/lib/dev-state" ] && tar cf - /lib/dev-state 2>> $LOGFILE | tar xf -1891 [ -d "/lib/dev-state" ] && tar cf - -C / /lib/dev-state 2>> $LOGFILE | tar xf - 1892 1892 cd $old_pwd 1893 1893 echo -e "$DONE" … … 2182 2182 s=`which $w 2> /dev/null` 2183 2183 if [ -e "$s" ] ; then 2184 tar cf - $s 2> /dev/null | tar xf -2184 tar cf - -C / $s 2> /dev/null | tar xf - 2185 2185 fi 2186 2186 done … … 2212 2212 echo "udev device manager found" > $mountpoint/tmp/USE-UDEV 2213 2213 LogIt "udev device manager found" 2214 tar cf - /etc/udev 2>> $LOGFILE | tar xf -2214 tar cf - -C / /etc/udev 2>> $LOGFILE | tar xf - 2215 2215 # This avoids NIC remapping if on another machine at restore time on Debian at least 2216 2216 rm -f ./etc/udev/rules.d/z[0-9][0-9]_persistent-net.rules 2217 2217 # This avoids NIC remapping if on another machine at restore time on Ubuntu at least 2218 2218 rm -f ./etc/udev/rules.d/[0-9][0-9]-persistent-net.rules 2219 tar cf - /lib*/udev 2>> $LOGFILE | tar xf -2219 tar cf - -C / /lib*/udev 2>> $LOGFILE | tar xf - 2220 2220 if [ -x /sbin/udevd ]; then 2221 2221 lis2=`grep -Ev '^#' $MINDI_CONF/udev.files` … … 2243 2243 fi 2244 2244 done 2245 tar cf - $lis `sort -u $MINDI_TMP/udev.lis` 2>> $LOGFILE | tar xf -2245 tar cf - -C / $lis `sort -u $MINDI_TMP/udev.lis` 2>> $LOGFILE | tar xf - 2246 2246 rm -f $MINDI_TMP/udev.lis 2247 2247 else … … 2274 2274 done 2275 2275 2276 tar cf - /dev/fd0*[1,2][4,7,8]* 2>> $LOGFILE | tar xf -2276 tar cf - -C / /dev/fd0*[1,2][4,7,8]* 2>> $LOGFILE | tar xf - 2277 2277 2278 2278 cd $old_pwd … … 2316 2316 [ "$YOUR_KERNEL_SUCKS" ] && i=$MINDI_TMP/$i 2317 2317 echo "Adding $i ($s KB) to the rootfs" >> $LOGFILE 2318 tar cf - $i 2>> $LOGFILE | (cd $mountpoint ; tar xf -) || LogIt "Unable to copy $i to $mountpoint"2318 tar cf - -C / $i 2>> $LOGFILE | (cd $mountpoint ; tar xf -) || LogIt "Unable to copy $i to $mountpoint" 2319 2319 # Uncompress modules if not using udev and native modprobe 2320 2320 if [ ! -f $mountpoint/tmp/USE-UDEV ]; then … … 2327 2327 2328 2328 # Also copy modules.dep in case of udev so that normal modprobe works 2329 tar cf - /$needed_modules_path/modules.dep 2>> $LOGFILE | (cd $mountpoint ; tar xf -) || LogIt "Unable to copy modules.dep to $mountpoint"2329 tar cf - -C / /$needed_modules_path/modules.dep 2>> $LOGFILE | (cd $mountpoint ; tar xf -) || LogIt "Unable to copy modules.dep to $mountpoint" 2330 2330 2331 2331 if [ ! -e "/sbin/devfsd" ] || [ "$kernelpath" = "$MINDI_LIB/vmlinuz" ] ; then
Note:
See TracChangeset
for help on using the changeset viewer.