search for: push_pwd

Displaying 1 result from an estimated 1 matches for "push_pwd".

2010 Dec 08
0
copy old CF image to new CF device
...sk -l $DEVICE echo "" mke2fs -j $PARTITION_1 mkswap $PARTITION_2 # mount the first partition in the image file mount -t ext3 -o loop,offset=32256 ebox4300.centos.5.5.cf.img /mnt/from_image mount -t ext3 $PARTITION_1 /mnt/to_image PUSH_PWD=`pwd` # Directories to copy cd /mnt/from_image for DIRECTORY in bin boot dev etc home install lib misc net opt root sbin selinux srv tftpboot tmp usr var do tar -cf - $DIRECTORY | (cd /mnt/to_image; tar -xpvf - ) done # Skip these directories above and just make them for mounting mkdir /mnt/to_i...