[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#301427: marked as done (Script hooks in main-menu)



Your message dated Sat, 26 Mar 2005 09:12:14 -0500
with message-id <E1DFC1S-0006Y9-00@spohr.debian.org>
and subject line Bug#301427: Acknowledgement (Script hooks in main-menu) 
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; 25 Mar 2005 20:51:20 +0000
>From peek@tiem.utk.edu Fri Mar 25 12:51:19 2005
Return-path: <peek@tiem.utk.edu>
Received: from mail.tiem.utk.edu [160.36.46.38] 
	by spohr.debian.org with smtp (Exim 3.35 1 (Debian))
	id 1DEvm3-00052d-00; Fri, 25 Mar 2005 12:51:19 -0800
Received: (qmail 6752 invoked from network); 25 Mar 2005 15:51:17 -0500
Received: from parus.tiem.utk.edu (160.36.46.47)
  by mail.tiem.utk.edu with SMTP; 25 Mar 2005 15:51:17 -0500
Received: (qmail 8372 invoked from network); 25 Mar 2005 15:51:17 -0500
Received: from localhost (HELO tiem.utk.edu) (127.0.0.1)
  by localhost with SMTP; 25 Mar 2005 15:51:17 -0500
To: submit@bugs.debian.org
cc: peek
Subject: Script hooks in main-menu
Date: Fri, 25 Mar 2005 15:51:16 -0500
From: "Michael S. Peek" <peek@tiem.utk.edu>
Message-Id: <E1DEvm3-00052d-00@spohr.debian.org>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 


Package: installation
Severity: wishlist

It would be nice to be able to run pre- and post- scripts between menu items.
That way I could supply custom scripts to do things like:

- After the ethernet drivers are loaded, but before netcfg is run, execute a
  script that could look through the hardware addresses found and configure
  debconf netcfg settings appropriately.
  
- After disk drivers are loaded, but before partman is run, execute a script
  that would dynamically create a partman-auto/expert_recipe based on the
  number and sizes of disks found (or based on the contents of /etc/hostname,
  for that mater).

  (Things like this might require ifconfig, sed, and awk?  I don't know if the
  compilation of busybox currently used has support for sed and awk, but it
  would be nice if all the basic unix scripting tools were available: sed, awk,
  grep, head, tail, cut, tr, expr, etc... as well as some basic networking
  tools like ping.  If the size of the ramdisk is an issue, then perhaps
  multiple ramdisks could be supplied.  For each ramdisk currently on the CD,
  a second, larger, script-happy version could be supplied just for goobers
  like me who want to automate everything.  ...This should probably be a
  separate wish.)

Two possible preseed methods come to mind:

1) Create something like preseed/intermediate_command to go along with
early_command and late_command, except this command is run between menu items.
The name of the last menu item processed and the next menu item to be
processed could be passed to the command as environment variables, that way
user-supplied scripts could know when to do what.  With a pair of shell case
statements the user could perform whatever tweaks are necessary between each
step.  That way, if I had a couple of scripts to configure the networking
(say, /auto-netconfig-script) and partitioning (say, /auto-partition-script)
as described above, I could generate a third script:

  #!/bin/sh
  #
  # File: /intermediate-script
  #

  #
  # Assuming what's about to be run next by main-menu is stored in
  # the environment variable PRE_MENU_ITEM.
  #
  case "${PRE_MENU_ITEM}" in
    netcfg)
      /auto-netconfig-script
      ;;
    partman-auto)
      /auto-partition-script
      ;;
  esac

And I could specify it to debconf as:

  d-i preseed/intermediate_command string /intermediate-script

2) Create something like preseed/[pre|post]-<menu-item>_command that would
specify exactly when to run what command.  That way, if I had a couple of
scripts to configure the networking and partitioning as described above, I
could specify them thusly:

  d-i preseed/pre-netcfg_command string /auto-netconfig-script
  d-i preseed/pre-partman-auto_command string /auto-partition-script


Michael Peek


---------------------------------------
Received: (at 301427-done) by bugs.debian.org; 26 Mar 2005 14:12:18 +0000
>From peek@tiem.utk.edu Sat Mar 26 06:12:18 2005
Return-path: <peek@tiem.utk.edu>
Received: from mail.tiem.utk.edu [160.36.46.38] 
	by spohr.debian.org with smtp (Exim 3.35 1 (Debian))
	id 1DFC1S-0006Y9-00; Sat, 26 Mar 2005 06:12:18 -0800
Received: (qmail 20335 invoked from network); 26 Mar 2005 09:12:14 -0500
Received: from parus.tiem.utk.edu (160.36.46.47)
  by mail.tiem.utk.edu with SMTP; 26 Mar 2005 09:12:14 -0500
Received: (qmail 2199 invoked from network); 26 Mar 2005 09:12:14 -0500
Received: from localhost (HELO tiem.utk.edu) (127.0.0.1)
  by localhost with SMTP; 26 Mar 2005 09:12:14 -0500
To: 301427-done@bugs.debian.org
cc: "Michael S. Peek" <peek@tiem.utk.edu>
Subject: Re: Bug#301427: Acknowledgement (Script hooks in main-menu) 
In-reply-to: Your message of "Fri, 25 Mar 2005 13:03:18 PST."
             <handler.301427.B.111178388019396.ack@bugs.debian.org> 
Date: Sat, 26 Mar 2005 09:12:14 -0500
From: "Michael S. Peek" <peek@tiem.utk.edu>
Message-Id: <E1DFC1S-0006Y9-00@spohr.debian.org>
Delivered-To: 301427-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-2.9 required=4.0 tests=BAYES_01,BLANK_LINES_70_80,
	HAS_BUG_NUMBER autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 


This is a duplicate of bug #301434.



Reply to: