易截截图软件、单文件、免安装、纯绿色、仅160KB

有关linux安装脚本kickstart的编写

我之前制作的linux自动安装iso已经成功了,现在想对其进行一些定制修改,比如,更改grub图片等。

我在ks.cfg的%post段里面是这样写的:
%post --nochroot

# Move the contents of the tar into their new locations

cp -fRp /config/boot/grub/splash.xpm.gz /mnt/sysimage/boot/grub/ 
cp -fRp /config/etc/rc.d/init.d/network /mnt/sysimage/etc/rc.d/init.d/
cp -fRp /config/etc/issue /mnt/sysimage/etc/
cp -fRp /config/etc/issue.net /mnt/sysimage/etc/
cp -fRp /config/etc/motd /mnt/sysimage/etc/
cp -fRp /config/etc/redhat-release /mnt/sysimage/etc/
cp -fRp /config/etc/resolv.conf /mnt/sysimage/etc/


%post

/sbin/chkconfig --level 345 httpd on
/sbin/chkconfig --level 345 mysqld on
/sbin/chkconfig --level 345 bluetooth off
/sbin/chkconfig --level 345 sendmail off
/sbin/chkconfig --level 345 finger off
/sbin/chkconfig --level 345 lpd off

而我iso里面的config目录的tree是这样的:
.
|-- boot
| `-- grub
| `-- splash.xpm.gz
`-- etc
  |-- issue
  |-- issue.net
  |-- motd
  |-- rc.d
  | `-- init.d
  | `-- network
  |-- redhat-release
  `-- resolv.conf

照说应该没有问题,可是我这些文件怎么都不能复制到新安装好的系统中去,请大大们指点指点! 
 

引用
看Kickstart Log, 有条件


相关问答:

Linux 目录问题

Linux新手,请大哥大姐不要见笑。

我用root用户登录到Linux系统。在根目录下面建了目录dir1,后用命令cd /dir1进入到dir1目录下,然后再用mkdir dir2建立了目录dir2 ,再后来用命令cd /dir2是,提示为:-bush ......

观察Linux的行为

• 实验目的
      通过本实验,了解Linux系统的组织和行为,观察各种存储系统状态信息的内核变量;熟悉这些结构与信息。
• 实验内容
      编写程序打印出如 ......

关于Linux gcc编译器的问题

原先的GCC版本为4.1.2,我重新编译安装了GCC4.3.2,但是编译完程序运行程序时会出现version `GLIBCXX_3.4.9' not found 这个问题.在网上面查了一下是软连接的问题。但是本人对Linux不太熟悉,“应该制作RPM包然后 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号