redhat不同版本下kickstart文件中%pre部分支持的命令的区别

今天上班整理了一下装机用的kickstart文件

发现一个问题

我在FC3(Fedora Core 3)下做的kickstart文件

在FC4(Fedora Core 4)下稍稍改改就能用

但在AS3(RedHat enterprise advance server 3)下死活有问题

后来搞半天才明白

原来是我在kickstart文件的%pre部分的shell程序的问题

我在这一段脚本里用了命令awk

这在FC3、FC4,以及AS4(RedHat enterprise advance server 4)下都没有问题

但在AS3下就是不行(command not found)

也就是说AS3的kickstart文件执行到%pre部分脚本的时候

还没有命令awk(%pre部分运行完毕就可以了)

没办法

只好把AS3下的kickstart文件里%pre部分用到awk命令的部分重新用sed和cut实现了一下

幸好还有命令sed和cut能用

否则我还真搞不定

我想这也许是这几个系统用的busybox的版本不一样造成的

Discussion Area - Leave a Comment




*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word