Changeset 2438 in MondoRescue for branches/2.2.9/mindi/mindi
- Timestamp:
- Sep 29, 2009, 2:41:36 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi/mindi
r2436 r2438 2256 2256 # We want to use the real mount and all the supported variants (nfs, cifs, ...) 2257 2257 rm -f bin/mount $MINDI_TMP/busy.lis 2258 mountlis=`grep -E "mount|fuse|ssh |libnss" $DEPLIST_FILE $DEPLIST_DIR/* | cut -d: -f2`2259 for f in $MINDI_LIB/rootfs/bin/busybox $mountlis ; do2260 if [ -f $f ]; then2261 LocateDeps $f >> $MINDI_TMP/busy.lis2262 fi2258 mountlis=`grep -E "mount|fuse|ssh" $DEPLIST_FILE $DEPLIST_DIR/* | cut -d: -f2 | sort -u` 2259 LocateDeps $MINDI_LIB/rootfs/bin/busybox $mountlis >> $MINDI_TMP/busy.lis 2260 # Special for libs 2261 for f in `grep -E "libnss" $DEPLIST_FILE $DEPLIST_DIR/* | cut -d: -f2`; do 2262 echo "`ReadAllLink $f`" >> $MINDI_TMP/busy.lis 2263 2263 done 2264 # Initial / are trucated by tar 2264 2265 tar cf - $mountlis `sort -u $MINDI_TMP/busy.lis` 2>> $MINDI_TMP/$$.log | tar xf - || LogIt "Problem in mount analysis" $MINDI_TMP/$$.log 2265 2266 rm -f $MINDI_TMP/busy.lis 2266 2267 fi 2268 2269 # Copy of files mandatory for ssh to automate mount if sshfs is used 2270 mkdir $mountpoint/.ssh 2271 cp -rp ~root/.ssh/*.pub ~root/.ssh/config ~root/.ssh/known* $mountpoint/.ssh 2272 echo > $mountpoint/tmp/myssh << EOF 2273 ssh -o StrictHostKeyChecking=no $* 2274 EOF 2275 chmod 755 $mountpoint/tmp/myssh 2267 2276 2268 2277 # Copy of files mandatory for ld.so … … 2422 2431 mkdir -p $mountpoint/proc 2423 2432 echo "$BOOT_SIZE" > $mountpoint/tmp/$BOOT_SIZE.siz 2433 2434 echo "---------------------------" >> $LOGFILE 2435 echo "Content of initial ramdisk:" >> $LOGFILE 2436 echo "---------------------------" >> $LOGFILE 2437 (cd $mountpoint ; ls -Rla ) >> $LOGFILE 2438 echo "---------------------------" >> $LOGFILE 2439 2424 2440 # Determine what filesystem to use for initrd image 2425 2441 echo "Call GetInitrdFilesystemToUse() with parameter ${kernelpath} to get filesystem to use for initrd." >> $LOGFILE … … 2686 2702 elif [ "$1" = "--locatedeps" ] ; then 2687 2703 [ ! "$2" ] && Die "Please specify the binary to look at" 2688 LocateDeps $ 22704 LocateDeps $* 2689 2705 # Avoids logfile content for mondo 2690 2706 export MONDO_SHARE=""
Note:
See TracChangeset
for help on using the changeset viewer.