- 论坛徽章:
- 0
|
使用说明:将以下SHELL保存成文件与原始ISO放在一起后运行即可,注意该目录需要有写权限。
#!/bin/bash
#
# Usage:
# Put this file in the same directory with the source ISO, the install
# source will be automatically put on ./INSTALL
# Function:
# Extract the installation source files from ISOs for network installation
#
# By Frank.Lin (2006-07-30)
mkdir ./mount_dir
mkdir ./INSTALL
for ISO in `ls *.iso`
do
echo "Extracting from -->$ISO";
echo -n " mount";
mount ./$ISO ./mount_dir -o loop
cp -vr ./mount_dir/RedHat ./INSTALL 1> /dev/tty9
umount ./mount_dir
echo -n " umount";
echo "--> done!"
done
rm -rf ./mount_dir
echo "Installation source is ready on: `pwd`/INSTALL" |
|