[Beowulf] Building new cluster - estimate
landman at scalableinformatics.com
Fri Aug 8 22:18:57 EDT 2008
Matt Lawrence wrote:
> I really would like to have it all in one package. It's too easy to get
> things out of sync when doing changes by hand. I was figuring to find
> the appropriate sections of the CentOS spec file and use them. As
> always, other suggestions are welcome.
You can add this in to the spec file that the make command generates.
From my experience in dealing with the spec files from Redhat and SuSE
my advice is, again, don't waste your time.
mkinitrd is done in a post section of the kernel install. Here is what
I used for the 220.127.116.11 kernel:
mkinitrd -v --with=sd_mod --with=libata --with=ata_generic \
--with=ata_piix --with=pata_acpi \
Then the grub manipulation is done with grubby
grubby --add-kernel=/vmlinuz-18.104.22.168 \
So, add these two in to the spec file, and
rpmbuild -bb kernel.spec
rpmbuild -bs kernel.spec
Again, none of this is hard, and you can add it in to the %post section
by hand. The generated spec file is a good working spec file and will
work on RHEL and variants, SuSE and variants, as well as others. But
grubby is specific to RHEL variants last I checked. This is why they
don't generate a %post for you which does all this for you. Similar
with mkinitrd. You can add it in and go from there.
> -- Matt
> It's not what I know that counts.
> It's what I can remember in time to use.
> Beowulf mailing list, Beowulf at beowulf.org
> To change your subscription (digest mode or unsubscribe) visit
Joseph Landman, Ph.D
Founder and CEO
Scalable Informatics LLC,
email: landman at scalableinformatics.com
web : http://www.scalableinformatics.com
phone: +1 734 786 8423
fax : +1 866 888 3112
cell : +1 734 612 4615
Beowulf mailing list, Beowulf at beowulf.org
To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf
More information about the Beowulf