FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 04-24-2008, 09:01 AM
"Plant, Dean"
 
Default Kickstart network settings problem -SOLVED

Ray Van Dolson wrote:
> On Tue, Apr 22, 2008 at 12:47:39PM +0100, Plant, Dean wrote:
>> I would like one of my kickstart scripts to prompt for disk and
>> networking only. Commenting out the disk and network settings makes
>> the installer prompt for disk settings but not for network settings,
>> they default to DHCP. Any idea's how to fix this?
>
> I'm assuming you are using CentOS 5 here. I'm not sure why upstream
> disabled this feature -- it was very useful to be able to use
> kickstart with a DHCP IP address initially, but still be prompted for
> network information during the installer portion later (as it did in
> RHEL4).
>
> See:
>
> https://bugzilla.redhat.com/show_bug.cgi?id=401531
>
> In addition, I have an RFE in with Upstream to re-add this feature and
> I believe it's slated for inclusion in 5.2 with the --bootproto=query
> option.
>
> The attachment there however:
>
> https://bugzilla.redhat.com/attachment.cgi?id=291881
>
> patches Anaconda to not skip the network step during installation.
> I've been using this successfully here to "do what I need" while
> waiting for the official fix.
>
> You can include this in an updates.img file and have it loaded
> automatically on installs.

Thank you Ray, worked a treat.

If like me you have never had to mess with the stage2.img file to fix
installations issues, below shows what is required.

cd ~
wget http://yourwebserver/centos5-dvd/images/stage2.img
mkdir tmp
mount -t squashfs -o loop stage2.img ./tmp
cd tmp
vi ./usr/lib/anaconda/kickstart.py # comment out
dispatch.skipStep("network") at around line 876 or use Ray's patch.
mkdir ../new-stage2
tar cf - . | ( cd ../new-stage2/ ; tar xf - . )
cd ..
yum -y install squashfs-tools
mksquashfs ./new-stage2/ stage2.img.new

Now replace the stage2.img file on the web server with the
stage2.img.new file, renamed to stage2.img of course.

Dean.
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 04-24-2008, 09:58 AM
 
Default Kickstart network settings problem -SOLVED

In article <2181C5F19DD0254692452BFF3EAF1D6803940E22@rsys005a .comm.ad.roke.co.uk>,
Plant, Dean <dean.plant@roke.co.uk> wrote:
>
> If like me you have never had to mess with the stage2.img file to fix
> installations issues, below shows what is required.
>
> cd ~
> wget http://yourwebserver/centos5-dvd/images/stage2.img
> mkdir tmp
> mount -t squashfs -o loop stage2.img ./tmp
> cd tmp
> vi ./usr/lib/anaconda/kickstart.py # comment out
> dispatch.skipStep("network") at around line 876 or use Ray's patch.

hmm, isn't this editing the file on a read-only file system?

> mkdir ../new-stage2
> tar cf - . | ( cd ../new-stage2/ ; tar xf - . )

I suspect here is where you need to cd ../new-stage2 and edit kickstart.py

> cd ..
> yum -y install squashfs-tools
> mksquashfs ./new-stage2/ stage2.img.new
>
> Now replace the stage2.img file on the web server with the
> stage2.img.new file, renamed to stage2.img of course.

Cheers
Tony
--
Tony Mountifield
Work: tony@softins.co.uk - http://www.softins.co.uk
Play: tony@mountifield.org - http://tony.mountifield.org
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 04-24-2008, 10:08 AM
"Plant, Dean"
 
Default Kickstart network settings problem -SOLVED

Tony Mountifield wrote:
> In article
>
<2181C5F19DD0254692452BFF3EAF1D6803940E22@rsys005a .comm.ad.roke.co.uk>,
> Plant, Dean <dean.plant@roke.co.uk> wrote:
>>
>> If like me you have never had to mess with the stage2.img file to fix
>> installations issues, below shows what is required.
>>
>> cd ~
>> wget http://yourwebserver/centos5-dvd/images/stage2.img
>> mkdir tmp
>> mount -t squashfs -o loop stage2.img ./tmp
>> cd tmp
>> vi ./usr/lib/anaconda/kickstart.py # comment out
>> dispatch.skipStep("network") at around line 876 or use Ray's patch.
>
> hmm, isn't this editing the file on a read-only file system?

Oops......yes, not going to do much good editing the ro file system!

Sorry.

>
>> mkdir ../new-stage2
>> tar cf - . | ( cd ../new-stage2/ ; tar xf - . )
>
> I suspect here is where you need to cd ../new-stage2 and edit
> kickstart.py
>
>> cd ..
>> yum -y install squashfs-tools
>> mksquashfs ./new-stage2/ stage2.img.new
>>
>> Now replace the stage2.img file on the web server with the
>> stage2.img.new file, renamed to stage2.img of course.
>
> Cheers
> Tony
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 09:54 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org