Re: kickstart installation from usb key

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



John Doe a écrit :
From: Georghy <fusco@xxxxxxxxxxxx>
I'm trying to set up a custom installation of CentOS using kickstart
i tried many thing from how to's and tutorial web pages but nothing worked ;(
...
I tried to install CentOS from my USB key but it says :
Title : "Missing ISO 9660"
Content : "The installer has tried to mount image #1,but cannot find it on the hard drive ... "

Tried http://wiki.centos.org/HowTos/InstallFromUSBkey ?

JD


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

yes but it doesn't work

what i have done :

creating a fat 32 partition on my USB key (4 GB)
tagging it with boot flag

copy MBR on the key :

dd if=/dev/sdb of=/tmp/mbr_sdb.bin bs=512 count=1


Using syslinux :

syslinux /dev/sdb1



Here is my key tree :
|-- CentOS
|   |-- all my rpms
|   `-- last rpm
|-- TRANS.TBL
|-- boot.cat
|-- boot.msg
|-- custom.iso
|-- general.msg
|-- images
|   |-- README
|   |-- TRANS.TBL
|   |-- boot.iso
|   |-- diskboot.img
|   |-- minstg2.img
|   |-- pxeboot
|   |   |-- README
|   |   |-- TRANS.TBL
|   |   |-- initrd.img
|   |   `-- vmlinuz
|   |-- stage2.img
|   `-- xen
|       |-- TRANS.TBL
|       |-- initrd.img
|       `-- vmlinuz
|-- initrd.img
|-- ks
|   |-- TRANS.TBL
|   `-- ks.cfg
|-- ldlinux.sys
|-- memtest
|-- options.msg
|-- package-ipbx
|   `-- packages for postinstall
|-- param.msg
|-- repodata
|   |-- TRANS.TBL
|   |-- comps.xml
|   |-- filelists.xml.gz
|   |-- other.xml.gz
|   |-- primary.xml.gz
|   `-- repomd.xml
|-- rescue.msg
|-- splash.lss
|-- syslinux.cfg
|-- syslinux.cfg~
`-- vmlinuz

Attachment : ks.cfg and syslinux.cfg

Everithing is fine 'till anaconda start and try to copy rpm packages

Using kickstart configuration or manual (text) configuration show the same error

--
Greetings,
Georghy FUSCO

##################################################
###
### Kickstart configuration file
### for SIP distribution CDs
###
##################################################

#--- Installation method (install, no upgrade) and source (CD-ROM)
ignoredisk --drives=sdb
text
install
harddrive --partition=sdb1 --dir=/

#--- Debugging (uncomment next line to debug in the interactive mode)
#interactive

#--- Language and input support
lang en_US.UTF-8
keyboard fr

#--- X-Windows (use "skipx" directive to skip X-Windows configuration)
skipx

#--- Network
network --device eth0 --bootproto dhcp --hostname ipbx.wan
network --device eth1 --bootproto static --ip 10.120.1.2 --netmask 255.255.255.252 --gateway  --hostname ipbx.wan
network --device eth2 --bootproto static --ip 10.20.1.1 --netmask 255.255.255.252 --gateway  --hostname ipbx.wan


#--- Authentication and security
rootpw --iscrypted $1$hMUqAzjj$.zCg5V1UTTH9rrrbcbY081
firewall --disabled
authconfig --enableshadow --enablemd5
selinux --enforcing

#--- Time zone
timezone --utc Europe/Paris

#--- Boot loader
bootloader --location=mbr --driveorder=sda

#--- NON_RAID Disk partitioning (LVM)
zerombr
clearpart --all --initlabel
part /boot --fstype=ext3 --size=100
part swap --size=1024
part / --fstype=ext3 --size=1 --grow --asprimary

#--- Reboot the host after installation is done
#reboot

#--- Package selection
%packages
@base
@core
@dialup
@editors
@text-internet

#--- Pre-installation script
#%pre

#--- Post-installation script
%post
#!/bin/sh

# the script removes itself from the root .bashrc file when it completes

#...Install new splash image
#cp /recovery/linux/splash.xpm.gz /boot/grub
default linux
prompt 1
timeout 600
display boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg
label linux
  kernel vmlinuz
  append initrd=initrd.img 
label text
  kernel vmlinuz
  append initrd=initrd.img text 
label ks
  kernel vmlinuz
  append ks initrd=initrd.img
label kickstart
  kernel vmlinuz
  append initrd=initrd.img  ks=hd:sdb1:/ks/ks.cfg method=hd:sdb1:/
label local
  localboot 1
label memtest86
  kernel memtest
  append -

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux