有关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不正常关机导致系统坏,请问怎么检查和修复系统? 在刚启动的时候会有提示的。 修复可以靠livecd 或者把基本系统部分重新安装即可 是不是系统编程了read-only的啦?无法往系统写入数据啊? 有的情 ......
我安装一台redhat linux5+oracle 10g的服务器,笔记本(XP系统)安装了oracle 10g客户端,结果老是出12560的错误,请高手指点一二, -A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dpor ......
有人认为,linux 安全性高,只是因为用的人少,所以那些黑客不愿意去攻击,所以病毒之类的就少,是不是这样?而且linux是开源的,攻击起来 比较容易所以 懒的去攻击 这种说法对么 linux 怎么就安全高 ......
我目前在本地的linux上写了一个swing的界面,想通过这个界面来控制其它电脑的linux重启。 我知道用Runtime.getRuntime().exec("shutdown -r");可以控制本机Linux重启,但是怎么控制远程的linux重启呢? ......
我用过ubuntu8.10版本,从verycd下载的。 下载后,是半英文。且我对linux系统的操作理解不深,因此装中文输入法都搞了好久。 然后按照网上的教程更新中文界面,但是更新了1晚上后提示中断……雷。 ......