2008-11-05

使用 USB 中的 kickstart.cfg 來安裝 Linux


 



method 1: from here




These are incorrect. Should be:
ks=hd:sdb1:/ks.cfg ^ (extra colon needed). 




method 2: solution from here  從 bug of centos 得到的訊息:



I attempted to do a fully-automated install with a U3 USB key, with the following configured under /boot/grub/grub.conf, and /kickstart/ks.cfg on the key:

kernel /boot/vmlinuz ks=hd:sda1/kickstart/ks.cfg

A the point where the install is going to look-up the kickstart file, I see the following output to the anaconda log:

"
16:40:23 INFO: getting kickstart file from harddrive
16:40:23 INFO: Loading ks from device sda1 on path kickstart/ks.cfg
16:40:23 INFO: getFileFromBlockDevice(sda1, kickstart/ks.cfg)
16:40:24 ERROR: failed to mount /dev/sda1: No such device or address
********
16:40:30 INFO: getting kickstart file from harddrive
16:40:30 INFO: Loading ks from device sda1 on path kickstart/ks.cfg
16:40:30 INFO: getFileFromBlockDevice(sda1, kickstart/ks.cfg)
16:40:30 INFO: Searching for file on path /tmp/mnt/kickstart/ks.cfg
16:40:30 INFO: file copied to /tmp/ks.cfg
16:40:30 INFO: setting up kickstart
16:40:30 INFO: kickstartFromHD
"

The point where ******** are indicated, is where I was prompted to correct the path to ks.cfg. I only pressed the <enter> key, and the remainder of the log is from the successful reading of the kickstart file.

I did not have to remove the USB kick to re-register the dialog closure, but to only hit the OK button after the initial pop-up dialog.

I am using 2.6.18-53.el5xen, CentOS release 5 (Final).


 第二個方法:




I don't experience these results precisely

I have consistent success under the following conditions:
CD install of 5.2 with netinstall image
http-based repositories
static IP configs in the kickstart file
Nothing (pertinent to Centos) on the drive except the kickstart file.

linux ks=hd:sdb1:/build.cfg loads usb storage driver, initially does
NOT find the file and prompts for the location of the kickstart file. I
hit [OK] and the install proceeds normally.


Related Posts Plugin for WordPress, Blogger...

沒有留言 :

張貼留言

,,