Changeset 3360 in MondoRescue for branches/3.0/mindi/mindi
- Timestamp:
- Mar 7, 2015, 2:41:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mindi/mindi
r3347 r3360 733 733 local lcMagicExt2fs="EXT2-fs: blocksize too small for device." 734 734 local lcMagicExt3fs="<3>EXT3-fs: blocksize too small for journal device." 735 local lcMagicInitfs="<6>checking if image is initramfs...|[<]*6[>]*Unpacking initramfs...| <6>Trying to unpack rootfs image as initramfs"735 local lcMagicInitfs="<6>checking if image is initramfs...|[<]*6[>]*Unpacking initramfs...|[<]*6[>]*Trying to unpack rootfs image as initramfs" 736 736 737 737 # local variables … … 2554 2554 2555 2555 TurnTgzIntoRdz() { 2556 local tgz_dir_fname rdz_fname tempfile mountpoint old_pwd nodes kernelsize maxsize res currsize not_copied j k s w needed_modules_path 2556 local tgz_dir_fname rdz_fname tempfile mountpoint old_pwd nodes kernelsize maxsize res currsize not_copied j k s w needed_modules_path d thelink 2557 2557 2558 2558 tgz_dir_fname=$1 … … 2591 2591 fi 2592 2592 done 2593 2593 2594 LogFile "INFO: what is now in $mountpoint" 2594 2595 ls -alR $mountpoint >> $LOGFILE 2595 2596 2596 2597 # Check files before copying to discover configuration issues or McAfee preventing mindi reading these files 2598 # copy from rootfs into mountpoint 2597 2599 for f in $tgz_dir_fname/*; do 2598 2600 if [ ! -r $f ]; then … … 2602 2604 fi 2603 2605 done 2606 (cd etc ; ln -sf bashrc profile ; ln -sf bashrc shrc ; ln -sf ../proc/mounts mtab ; ln -sf ../sbin/init linuxrc) 2607 ln -sf sbin/init linuxrc 2604 2608 tar -zxf symlinks.tgz || Die "Cannot untar symlinks.tgz" 2605 2609 … … 2619 2623 2620 2624 # Copy of files mandatory for ssh to automate mount if sshfs is used 2621 mkdir $mountpoint/.ssh2625 mkdir -p $mountpoint/.ssh $mountpoint/tmp 2622 2626 cp -a ~root/.ssh/* $mountpoint/.ssh 2> /dev/null 2623 2627 cat > $mountpoint/tmp/myssh << EOF
Note:
See TracChangeset
for help on using the changeset viewer.