[brandz-discuss] BrandZ and Scientific Linux

Nils Nieuwejaar nils.nieuwejaar at sun.com
Wed Feb 21 14:58:34 PST 2007


Scientific Linux (https://www.scientificlinux.org/) is another
RedHat-derived Linux distribution.  To quote from their web site "SL is a
Linux release put together by Fermilab, CERN, and various other labs and
universities around the world. Its primary purpose is to reduce duplicated
effort of the labs, and to have a common install base for the various
experimenters."

Another Solaris engineer is visiting some European customers this week, and
was asked whether an SL environment would work under BrandZ.  After a
couple of hours of work, the answer is: yes.

Attached to this message is a ".distro" file for Scientific Linux 3.0.8.
This slips right into the existing install infrastructure.  You just need
to copy this file into the /usr/lib/brand/lx/distros directory on a Nevada
system, you will be able to install SL 3.0.8 from CD or .iso files. 

Example:
	mobay# zoneadm -z lxzone install -d /export/isos/sl308/ desktop
	Installing distribution 'LTS 3.0.8'...
	Installing cluster 'desktop'
	Installing miniroot for zone 'lxzone'.
	[...]
	Installation of zone 'lxzone' completed successfully.

	mobay# zoneadm -z lxzone boot
	mobay# zlogin lxzone /bin/cat /etc/issue 
	Scientific Linux SL release 3.0.8 (SL)
	Kernel \r on an \m

Nils
-------------- next part --------------
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#

#
# Installation information for the Scientific Linux 3.0.8 distribution disc
# set:
#
#	+ Serial number (as found in the disc set's .discinfo file)
#	+ Version Name
#	+ Order CDs holding the distribution must be installed in
#	+ MB of disk space required to hold a full install of the distribution
#
distro_serial=1161353771.91
distro_version="3.0.8"
set -A distro_cdorder 1 2 3 4

distro_mb_required=500

unset distro_miniroot_rpms
unset distro_core_rpms
unset distro_server_rpms
unset distro_desktop_rpms
unset distro_developer_rpms
unset distro_all_rpms

# Include the common_<cluster>_* definitions.
. ${distro_dir}/rhel_centos_common

#
# Below are two changes to the package lists.  Ideally the changes would be
# effected by modifying the rhel_centos_common file.  Since we want this
# .distro file to be a simple add-on to an installed system, we have to
# perform this awkward post-processing step.

# Fix the name of the rpmdb file.
common_core_rpms=`echo $common_core_rpms | sed "s/rpmdb-redhat/rpmdb-SL/"`
common_server_rpms=`echo $common_server_rpms | sed "s/rpmdb-redhat/rpmdb-SL/"`
common_desktop_rpms=`echo $common_desktop_rpms | sed "s/rpmdb-redhat/rpmdb-SL/"`
common_developer_rpms=`echo $common_developer_rpms | sed "s/rpmdb-redhat/rpmdb-SL/"`
common_all_rpms=`echo $common_all_rpms | sed "s/rpmdb-redhat/rpmdb-SL/"`

# Remove anaconda-product
common_all_rpms=`echo $common_all_rpms | sed "s/anaconda-product//"`

# Define the SL deltas from the common cluster lists
delta_miniroot_rpms=sl-release
delta_core_rpms=""
delta_server_rpms="$delta_core_rpms nss_db-compat sendmail-doc qt-config"
delta_desktop_rpms="$delta_server_rpms \
	seamonkey \
	seamonkey-chat \
	seamonkey-mail \
	seamonkey-nspr \
	seamonkey-nss"
delta_developer_rpms="$delta_desktop_rpms \
	gd-progs \
	irb \
	ruby-docs \
	ruby-tcltk \
	seamonkey-dom-inspector \
	seamonkey-js-debugger \
	seamonkey-devel \
	seamonkey-nspr-devel \
	seamonkey-nss-devel"
delta_all_rpms="$delta_developer_rpms emacs-nox"

# Define the final cluster lists for the installer
distro_miniroot_rpms="$common_miniroot_rpms $delta_miniroot_rpms"
distro_core_rpms="$common_core_rpms $delta_core_rpms"
distro_server_rpms="$common_server_rpms $delta_server_rpms"
distro_desktop_rpms="$common_desktop_rpms $delta_desktop_rpms"
distro_developer_rpms="$common_developer_rpms $delta_developer_rpms"
distro_all_rpms="$common_all_rpms $delta_all_rpms"

#
# Identify the packages that need to be set aside for installation after
# all the other packages are installed.
#
deferred_rpms="openoffice.org openoffice.org-i18n openoffice.org-libs"


More information about the brandz-discuss mailing list