Your message dated Sat, 12 Jun 2004 19:52:04 +0100
with message-id <[EMAIL PROTECTED]>
and subject line closing
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 31 Mar 2004 05:59:11 +0000
>From [EMAIL PROTECTED] Tue Mar 30 21:59:11 2004
Return-path: <[EMAIL PROTECTED]>
Received: from h34-aclarke.sv.meer.net (ofb3.ofb.net) [205.217.153.34] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1B8Ykp-00018c-00; Tue, 30 Mar 2004 21:59:11 -0800
Received: by ofb3.ofb.net (Postfix, from userid 1009)
        id C431E2070404; Tue, 30 Mar 2004 21:58:44 -0800 (PST)
Date: Wed, 31 Mar 2004 00:58:44 -0500
To: [EMAIL PROTECTED]
Subject: Remind users to update PROM variables after installation
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.28i
From: [EMAIL PROTECTED] (Nicholas Breen)
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.5 required=4.0 tests=BAYES_10,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: arcboot-installer
Version: svn 30/3/2004
Severity: wishlist
Tags: patch

  The installation should remind users to set the appropriate PROM
variables after rebooting.  Otherwise, they could easily get stuck with
an unbootable system.

  The following patch should do the trick.  Since the PROM needs SCSI
bus/ID/LUN identifiers, some /proc parsing is required.  That section
has been tested and works properly, but the debconf call is broken in
some way that I hope is obvious to others.  (My debconf knowledge is,
uh, minimal.)


-- 
Nicholas Breen
[EMAIL PROTECTED]




diff -Nru arcboot-installer.svn/debian/arcboot-installer.postinst 
arcboot-installer/debian/arcboot-installer.postinst
--- arcboot-installer.svn/debian/arcboot-installer.postinst     2004-03-30 
14:10:45.000000000 -0500
+++ arcboot-installer/debian/arcboot-installer.postinst 2004-03-30 15:35:06.000000000 
-0500
@@ -75,3 +75,22 @@
 #              exit 1
 #      fi
 #fi
+
+# Suggest the necessary PROM variables that will need to be set before the
+# system can be booted.
+
+abootmajor=`ls -l $defaultbootdev | cut -c34-37 | sed 's/ //g'`
+abootminor=`ls -l $defaultbootdev | cut -c39-42 | sed 's/ //g'`
+arootmajor=`ls -l $rootfs | cut -c34-37 | sed 's/ //g'`
+arootminor=`ls -l $rootfs | cut -c39-42 | sed 's/ //g'`
+
+ABOOTBUS=`grep "^\ \+$abootmajor\ \+$abootminor\ \+" /proc/partitions | cut -d/ -f3 | 
sed 's/^bus//'`
+ABOOTID=`grep "^\ \+$abootmajor\ \+$abootminor\ \+" /proc/partitions | cut -d/ -f4 | 
sed 's/^target//'`
+ABOOTLUN=`grep "^\ \+$abootmajor\ \+$abootminor\ \+" /proc/partitions | cut -d/ -f5 | 
sed 's/^lun//'`
+AROOTBUS=`grep "^\ \+$arootmajor\ \+$arootminor\ \+" /proc/partitions | cut -d/ -f3 | 
sed 's/^bus//'`
+AROOTID=`grep "^\ \+$arootmajor\ \+$arootminor\ \+" /proc/partitions | cut -d/ -f4 | 
sed 's/^target//'`
+AROOTLUN=`grep "^\ \+$arootmajor\ \+$arootminor\ \+" /proc/partitions | cut -d/ -f5 | 
sed 's/^lun//'`
+AROOTPART=$((`echo $rootfs | sed 's/^[a-z\/]\+//'` - 1))
+
+db_input high arcboot-installer/prom-variables || true
+db_go || true
diff -Nru arcboot-installer.svn/debian/arcboot-installer.templates 
arcboot-installer/debian/arcboot-installer.templates
--- arcboot-installer.svn/debian/arcboot-installer.templates    2004-03-30 
14:10:45.000000000 -0500
+++ arcboot-installer/debian/arcboot-installer.templates        2004-03-30 
15:29:34.000000000 -0500
@@ -23,3 +23,22 @@
  The arcboot package failed to install into /target/.  Installing Arcboot
  as a boot loader is a required step.  The install problem might however be
  unrelated to Arcboot, so continuing the installation may be possible.
+
+Template: arcboot/prom_variables
+Type: note
+_Description: Setting PROM variables for Arcboot
+ If this is your first Linux installation on this machine, or if you have
+ repartitioned your hard drives, you will need to set certain variables
+ in the PROM before the system will boot normally.
+ .
+ At the end of this installation phase, you will reboot your system.  When
+ you do, enter the command monitor from the "Stop for Maintenance" option,
+ and type the following commands:
+ .
+ setenv SystemPartition 
scsi(${ABOOTBUS})disk(${ABOOTID})rdisk(${ABOOTLUN})partition(8)
+ setenv OSLoadPartition 
scsi(${AROOTBUS})disk(${AROOTID})rdisk(${AROOTLUN})partition(${AROOTPART})
+ setenv OSLoader arcboot
+ setenv OSLoadFilename Linux
+ .
+ You will only need to do this once.  Afterwards, type "boot" or reboot the
+ system to proceed.

---------------------------------------
Received: (at 241177-done) by bugs.debian.org; 12 Jun 2004 18:52:08 +0000
>From [EMAIL PROTECTED] Sat Jun 12 11:52:08 2004
Return-path: <[EMAIL PROTECTED]>
Received: from ni-mail3.dna.utvinternet.net [194.46.8.37] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1BZDbr-00013A-00; Sat, 12 Jun 2004 11:52:07 -0700
Received: from utvinternet.com (unverified [194.46.8.35]) by 
ni-mail3.dna.utvinternet.net
 (Vircom SMTPRS 3.1.302.0) with SMTP id <[EMAIL PROTECTED]> for <[EMAIL PROTECTED]>;
 Sat, 12 Jun 2004 19:58:38 +0100
From: "Alastair McKinstry" <[EMAIL PROTECTED]>
Sender: [EMAIL PROTECTED]
Reply-to: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Sat, 12 Jun 2004 19:52:04 +0100
Subject: closing
X-Mailer: DMailWeb Web to Mail Gateway 2.8a, http://netwinsite.com/top_mail.htm
Message-id: <[EMAIL PROTECTED]>
X-User-Info: 195.218.116.8
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=0.1 required=4.0 tests=BAYES_50 autolearn=no 
        version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Done.

Closing,
Alastair


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to