On 20120620_130712, Brian wrote:
> On Wed 20 Jun 2012 at 03:20:02 -0600, Paul E Condon wrote:
>
> > On 20120620_083247, Brian wrote:
> > >
> > > I used the mini.iso from
> > >
> > > http://archive.debian.org/debian/dists/Debian-5.0/main/installer-i386/current/images/netboot/
> > >
> > > successfully.
> >
> > Thanks, but I'm no longer confident that loading Lenny on the box will get
> > me closer to my larger goal, which is loading Squeeze and eventually Wheezy
> > on it.
>
> The goal is achievable. If other techniques don't give you a readable
> screen display or lead to errors it may be the only way to go. Anyway,
> there is nothing like doing it to see where you can get, so, having an
> hour or two to kill this morning, here is brief set of instructions and
> a description of the outcome.
>
> 1, Downloaded a Lenny netinst iso from
>
> http://www.debian.org/releases/lenny/debian-installer/
>
> and burnt it to a CD.
>
> 2. Booted the iso. Chose expert mode. Got to the configuring the package
> manager stage and gave archive.debian.org as the mirror and /debian/
> as the directory. As with the mini iso, the netinst iso contacted the
> mirror, downloaded what it needed and got on with preparing for
> offering to install software. I do not understand why you should have
> a problem with this step because archive.debian.org is structured
> like any other archive.
>
> 3. Deselected the desktop task and installed just the bare minimum.
>
> 4. Went with GRUB 2 as the boot loader to put in the MBR of the first
> hard disk.
>
> 5. Booted to Lenny. Altered sources.list to point to a Squeeze archive.
Ok. Trying to repeat your work, I accomplish all steps thru 4,
but I cannot boot to Lenny. Instead I get error message :
Error: Couldn't read file
Press any key to continue...
I press a key and get:
Error: You need to load the kernel first.
Press any key to continue...
Clearly food for thoughts about debugging the hardware.
Why isn't the kernel there? I answered all questions about kernel by
accepting the offered defaults.
Ideas?
( My idea is that maybe there is not enough RAM on this box. How much
should be needed? This box has 512MB according to sticker on it from
the vendor. )
--
Paul E Condon
pecondon@mesanetworks.net
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120620235408.GB11739@big.lan.gnu">http://lists.debian.org/20120620235408.GB11739@big.lan.gnu
Thu Jun 21 02:30:02 2012
Return-Path: <anaconda-devel-list-bounces@redhat.com>
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
eagle542.startdedicated.com
X-Spam-Level:
X-Spam-Status: No, score=-5.0 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_HI,
T_RP_MATCHES_RCVD autolearn=ham version=3.3.1
X-Original-To: tom@linux-archive.org
Delivered-To: tom-linux-archive.org@eagle542.startdedicated.com
Received: from mx4-phx2.redhat.com (mx4-phx2.redhat.com [209.132.183.25])
by eagle542.startdedicated.com (Postfix) with ESMTP id 8003E20E033C
for <tom@linux-archive.org>; Thu, 21 Jun 2012 01:58:20 +0200 (CEST)
Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33])
by mx4-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q5KNtbCH013645;
Wed, 20 Jun 2012 19:55:37 -0400
Received: from int-mx10.intmail.prod.int.phx2.redhat.com
(int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23])
by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
id q5KNtYtq022853
for <anaconda-devel-list@listman.util.phx.redhat.com>;
Wed, 20 Jun 2012 19:55:34 -0400
Received: from mx1.redhat.com (ext-mx14.extmail.prod.ext.phx2.redhat.com
[10.5.110.19])
by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP
id q5KNtTKX017003
for <anaconda-devel-list@redhat.com>; Wed, 20 Jun 2012 19:55:29 -0400
Received: from g6t0185.atlanta.hp.com (g6t0185.atlanta.hp.com [15.193.32.62])
by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q5KNtRSW009248
for <Anaconda-devel-list@redhat.com>; Wed, 20 Jun 2012 19:55:27 -0400
Received: from G1W0400.americas.hpqcorp.net (g1w0400.americas.hpqcorp.net
[16.236.31.10]) (using TLSv1 with cipher RC4-MD5 (128/128 bits))
(No client certificate requested)
by g6t0185.atlanta.hp.com (Postfix) with ESMTPS id 72C7024068
for <Anaconda-devel-list@redhat.com>;
Wed, 20 Jun 2012 23:55:27 +0000 (UTC)
Received: from G4W3899G.americas.hpqcorp.net (16.210.5.66) by
G1W0400.americas.hpqcorp.net (16.236.31.10) with Microsoft SMTP Server
(TLS) id 8.2.176.0; Wed, 20 Jun 2012 23:53:50 +0000
Received: from G4W3203.americas.hpqcorp.net ([169.254.13.77]) by
G4W3899G.americas.hpqcorp.net ([16.210.5.66]) with mapi id
14.02.0283.003; Wed, 20 Jun 2012 23:53:50 +0000
From: "Parthasarathy, Balaji (BCS, Cupertino, USA)"
<balaji.parthasarathy@hp.com>
To: "Anaconda-devel-list@redhat.com" <Anaconda-devel-list@redhat.com>
Subject: How to determine "internal" disk dynamically in kickstart/cheetah
snippet
Thread-Topic: How to determine "internal" disk dynamically in
kickstart/cheetah snippet
Thread-Index: Ac1PP+bq4K7jpYiCQzmfeZSyHoujnQ==
Date: Wed, 20 Jun 2012 23:53:16 +0000
Message-ID: <774A286A68497042B74D49490106082E35B74A51@G4W3203. americas.hpqcorp.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [16.216.12.11]
MIME-Version: 1.0
X-RedHat-Spam-Score: -102.309 (HTML_MESSAGE, RCVD_IN_DNSWL_MED,
T_RP_MATCHES_RCVD, USER_IN_WHITELIST)
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23
X-Scanned-By: MIMEDefang 2.68 on 10.5.110.19
X-loop: anaconda-devel-list@redhat.com
X-BeenThere: anaconda-devel-list@redhat.com
X-Mailman-Version: 2.1.12
Precedence: junk
Reply-To: Discussion of Development and Customization of the Red Hat Linux
Installer <anaconda-devel-list@redhat.com>
List-Id: Discussion of Development and Customization of the Red Hat Linux
Installer <anaconda-devel-list.redhat.com>
List-Unsubscribe: <https://www.redhat.com/mailman/options/anaconda-devel-list>,
<mailto:anaconda-devel-list-request@redhat.com?subject=unsubscribe>
List-Archive: <https://www.redhat.com/archives/anaconda-devel-list>
List-Post: <mailto:anaconda-devel-list@redhat.com>
List-Help: <mailto:anaconda-devel-list-request@redhat.com?subject=help>
List-Subscribe: <https://www.redhat.com/mailman/listinfo/anaconda-devel-list>,
<mailto:anaconda-devel-list-request@redhat.com?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0083217391841935840=="
Sender: anaconda-devel-list-bounces@redhat.com
Errors-To: anaconda-devel-list-bounces@redhat.com
--===============0083217391841935840==
Content-Language: en-US
Content-Type: multipart/alternative;
boundary="_000_774A286A68497042B74D49490106082E35B 74A51G4W3203americas_"
--_000_774A286A68497042B74D49490106082E35B74A51G4W32 03americas_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi,
When I install a system using Cobbler using kickstart/snippet, I want to on=
ly do the partitioning of
1. Internal only disk
2. Only one disk, if multiple exist
3. Handle RAID/non-RAID scenarios
Is there a good/reliable way in Linux (RHEL and Fedora specifically) to det=
ermine #1? Since we are in the installation environment, some commands (lik=
e lsscsi) aren't available. Here's what I'm using in my snippet currently.
=3D=3D=3D=3D=3D=3D=3D=3D BEGIN SNIPPET =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
# Look for any 'scsi' or 'cciss' device; weed out output with partitions of=
those
# devices (part) and cd/dvd devices (sr); grab the first line of the remain=
ing output.
# Assumption is first scsi device is "internal" disk. We want to partition =
only
# the first internal disk.
ls_output=3D$(ls -l /dev/disk/by-path/pci* | grep -i -e scsi -e cciss | gr=
ep -v -i -e part -e sr | head -n 1)
# If we did not get any proper data for disk devices, just let anaconda do =
auto partitioning
# and use all/whatever disks anaconda finds, rather than throw an error.
if [[ -z "$ls_output" ]]
then
ks_partition_cmd=3D""
else
# NOTE: we are parsing a output that looks like this:
# lrwxrwxrwx. 1 root root 9 Jun 18 13:01 /dev/disk/by-path/pci-0000:0=
c:00.0-scsi-0:0:0:1 -> ../../sda
device_symlink=3D$(echo $ls_output | awk '{print $11}')
if [[ ! -z $(echo $device_symlink | grep -i sd) ]]
then
# The first internal disk is a non-RAID disk.
# Remove the "../../" prefix in "../../sda"
first_internal_disk_name=3D${device_symlink##*/}
else
# The first internal disk is a RAID disk.
# Remove the "../../" prefix in "../../cciss/c0d0"
first_internal_disk_name=3D$(echo $device_symlink | awk -F'/' '{print=
$(NF-1)"/"$NF}')
fi
ks_partition_cmd=3D"ignoredisk --only-use=3D$first_internal_disk_name"
fi
# Allow anaconda to partition the system as needed
# using just the first disk
cat <<PART_EOF > /tmp/partition_info
autopart
$ks_partition_cmd
PART_EOF
=3D=3D=3D=3D=3D=3D=3D=3D END SNIPPET =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Thanks
Balaji
--_000_774A286A68497042B74D49490106082E35B74A51G4W32 03americas_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns

=3D"urn:schemas-micr=
osoft-com

ffice

ffice" xmlns:w=3D"urn:schemas-microsoft-com

ffice:word" =
xmlns:x=3D"urn:schemas-microsoft-com

ffice:excel" xmlns:m=3D"http://schema=
s.microsoft.com/office/2004/12/omml" xmlns=3D"http://www.w3.org/TR/REC-html=
40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color

urple;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
color:black;}
span.EmailStyle17
{mso-style-type

ersonal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1954481966;
mso-list-type:hybrid;
mso-list-template-ids:1993138776 67698703 67698713 67698715 67698703 67698=
713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Hi,<o

></o

></p>
<p class=3D"MsoNormal">When I install a system using Cobbler using kickstar=
t/snippet, I want to only do the partitioning of<o

></o

></p>
<p class=3D"MsoListParagraph" style=3D"text-indent:-.25in;mso-list:l0 level=
1 lfo1"><![if !supportLists]><span style=3D"mso-list:Ignore">1.<span style=
=3D"font:7.0pt "Times New Roman"">
</span></span><![endif]>Internal only disk<o

></o

></p>
<p class=3D"MsoListParagraph" style=3D"text-indent:-.25in;mso-list:l0 level=
1 lfo1"><![if !supportLists]><span style=3D"mso-list:Ignore">2.<span style=
=3D"font:7.0pt "Times New Roman"">
</span></span><![endif]>Only one disk, if multiple exist<o

></o

></p>
<p class=3D"MsoListParagraph" style=3D"text-indent:-.25in;mso-list:l0 level=
1 lfo1"><![if !supportLists]><span style=3D"mso-list:Ignore">3.<span style=
=3D"font:7.0pt "Times New Roman"">
</span></span><![endif]>Handle RAID/non-RAID scenarios<o

></o

></p>
<p class=3D"MsoNormal"> <o

></o

></p>
<p class=3D"MsoNormal">Is there a good/reliable way in Linux (RHEL and Fedo=
ra specifically) to determine #1? Since we are in the installation environm=
ent, some commands (like lsscsi) aren’t available. Here’s what =
I’m using in my snippet currently.<o

></o

></p>
<p class=3D"MsoNormal">=3D=3D=3D=3D=3D=3D=3D=3D BEGIN SNIPPET =3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D<o

></o

></p>
<p class=3D"MsoNormal"># Look for any 'scsi' or 'cciss' device; weed out ou=
tput with partitions of those
<o

></o

></p>
<p class=3D"MsoNormal"># devices (part) and cd/dvd devices (sr); grab the f=
irst line of the remaining output.<o

></o

></p>
<p class=3D"MsoNormal"># Assumption is first scsi device is "internal&=
quot; disk. We want to partition only<o

></o

></p>
<p class=3D"MsoNormal"># the first internal disk.<o

></o

></p>
<p class=3D"MsoNormal">ls_output=3D$(ls -l /dev/disk/by-path/pci* | grep -=
i -e scsi -e cciss | grep -v -i -e part -e sr | head -n 1)<o

></o

></p>
<p class=3D"MsoNormal"><o

> </o

></p>
<p class=3D"MsoNormal"># If we did not get any proper data for disk devices=
, just let anaconda do auto partitioning<o

></o

></p>
<p class=3D"MsoNormal"># and use all/whatever disks anaconda finds, rather =
than throw an error.<o

></o

></p>
<p class=3D"MsoNormal">if [[ -z "$ls_output" ]]<o

></o

></p>
<p class=3D"MsoNormal">then<o

></o

></p>
<p class=3D"MsoNormal"> ks_partition_cmd=3D""<o

></o

></p=
>
<p class=3D"MsoNormal">else<o

></o

></p>
<p class=3D"MsoNormal"> # NOTE: we are parsing a output that looks li=
ke this:<o

></o

></p>
<p class=3D"MsoNormal"> # lrwxrwxrwx. 1 root =
root 9 Jun 18 13:01 /dev/disk/by-path/pci-0000:0c:00.0-scsi-0:0:0:1 -> .=
./../sda<o

></o

></p>
<p class=3D"MsoNormal"> device_symlink=3D$(echo $ls_output | awk '{=
print $11}')<o

></o

></p>
<p class=3D"MsoNormal"><o

> </o

></p>
<p class=3D"MsoNormal"> if [[ ! -z $(echo $device_symlink | grep -i=
sd) ]]<o

></o

></p>
<p class=3D"MsoNormal"> then<o

></o

></p>
<p class=3D"MsoNormal"> # The first internal disk is a no=
n-RAID disk.<o

></o

></p>
<p class=3D"MsoNormal"> # Remove the "../../" p=
refix in "../../sda"<o

></o

></p>
<p class=3D"MsoNormal"> first_internal_disk_name=3D${dev=
ice_symlink##*/}<o

></o

></p>
<p class=3D"MsoNormal"> else<o

></o

></p>
<p class=3D"MsoNormal"> # The first internal disk is a RA=
ID disk.<o

></o

></p>
<p class=3D"MsoNormal"> # Remove the "../../" p=
refix in "../../cciss/c0d0"<o

></o

></p>
<p class=3D"MsoNormal"> first_internal_disk_name=3D$(ech=
o $device_symlink | awk -F'/' '{print $(NF-1)"/"$NF}')<o

></o=

></p>
<p class=3D"MsoNormal"> fi<o

></o

></p>
<p class=3D"MsoNormal"><o

> </o

></p>
<p class=3D"MsoNormal"> ks_partition_cmd=3D"ignoredisk --only-us=
e=3D$first_internal_disk_name"<o

></o

></p>
<p class=3D"MsoNormal"><o

> </o

></p>
<p class=3D"MsoNormal">fi<o

></o

></p>
<p class=3D"MsoNormal"><o

> </o

></p>
<p class=3D"MsoNormal"><o

> </o

></p>
<p class=3D"MsoNormal"><o

> </o

></p>
<p class=3D"MsoNormal"># Allow anaconda to partition the system as needed<o=

></o

></p>
<p class=3D"MsoNormal"># using just the first disk<o

></o

></p>
<p class=3D"MsoNormal"><o

> </o

></p>
<p class=3D"MsoNormal">cat <<PART_EOF > /tmp/partition_info<o

></=
o

></p>
<p class=3D"MsoNormal"><o

> </o

></p>
<p class=3D"MsoNormal">autopart<o

></o

></p>
<p class=3D"MsoNormal">$ks_partition_cmd<o

></o

></p>
<p class=3D"MsoNormal"><o

> </o

></p>
<p class=3D"MsoNormal">PART_EOF<o

></o

></p>
<p class=3D"MsoNormal">=3D=3D=3D=3D=3D=3D=3D=3D END SNIPPET =3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D<o

></o

></p>
<p class=3D"MsoNormal"><o

> </o

></p>
<p class=3D"MsoNormal"><o

> </o

></p>
<p class=3D"MsoNormal">Thanks<o

></o

></p>
<p class=3D"MsoNormal">Balaji<o

></o

></p>
</div>
</body>
</html>
--_000_774A286A68497042B74D49490106082E35B74A51G4W32 03americas_--
--===============0083217391841935840==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
--===============0083217391841935840==--