Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1M2QAw-00036O-0C for mharc-grub-devel@gnu.org; Fri, 08 May 2009 09:31:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M2QAp-00034v-SB for grub-devel@gnu.org; Fri, 08 May 2009 09:31:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M2QAj-0002zl-Cb for grub-devel@gnu.org; Fri, 08 May 2009 09:31:34 -0400 Received: from [199.232.76.173] (port=47072 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M2QAj-0002zZ-65 for grub-devel@gnu.org; Fri, 08 May 2009 09:31:29 -0400 Received: from arnold.marlboro.edu ([206.192.68.78]:40168) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M2QAi-0002ll-ST for grub-devel@gnu.org; Fri, 08 May 2009 09:31:29 -0400 Received: from akbar.marlboro.edu (akbar.marlboro.edu [10.1.2.5]) by arnold.marlboro.edu (Postfix) with ESMTP id 44C3B344014 for ; Fri, 8 May 2009 09:30:58 -0400 (EDT) Received: from xyz.marlboro.edu (xyz.marlboro.edu [10.1.2.29]) by akbar.marlboro.edu (Postfix) with ESMTP id 2E4A811E55B for ; Fri, 8 May 2009 09:30:58 -0400 (EDT) Received: from east.localnet (mdhcp50.marlboro.edu [10.1.4.50]) by xyz.marlboro.edu (Postfix) with ESMTP id 7F9AA3AC3C9 for ; Fri, 8 May 2009 09:30:57 -0400 (EDT) From: Isaac Dupree To: grub-devel@gnu.org Date: Fri, 8 May 2009 09:30:55 -0400 User-Agent: KMail/1.10.4 (Linux/2.6.27-11-generic; KDE/4.1.4; x86_64; ; ) References: <1f29b8940905080048i24f0b441w151f915ce81ed8aa@mail.gmail.com> In-Reply-To: <1f29b8940905080048i24f0b441w151f915ce81ed8aa@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905080930.55237.ml@isaac.cedarswampstudios.org> X-Marlboro-MailScanner-Information: Please contact techsupport@marlboro.edu for more information X-Marlboro-MailScanner: Found to be clean, clean X-Marlboro-Information: Please contact techsupport@marlboro.edu for more information X-Marlboro-MailScanner-ID: 44C3B344014.AA538 X-Marlboro-SpamCheck: not spam (whitelisted), SpamAssassin (not cached, score=-2.54, required 6, autolearn=disabled, ALL_TRUSTED -1.80, BAYES_20 -0.74) X-Marlboro-MailScanner-From: ml@isaac.cedarswampstudios.org X-Marlboro-MailScanner-Watermark: 1242394259.73497@aQlq05rV8xZHx6Oji4fVmw X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Subject: Re: Grub Scripting X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 May 2009 13:31:37 -0000 Chris Umphress wrote: > Hey, > > We have some computers that need a boot loader to self-destruct at the > end of a school year. In order to accomplish this we would like to use > Grub scripting. From what I have been able to find, the support is > incomplete and we would have to write the code to self-destruct > somehow. I can think of a couple ways to do what you say: - if there is a date/time command in GRUB, have the `grub.cfg` check the date and refuse to offer any booting options after that date (where I suppose the hardware-clock supplies that date) - alternatively to "not booting", you could have it boot DBAN which will erase everything on all disks :-) Or have a human manually boot the self-destruct option (which should require an administrator password probably) (how do you expect to re-use these computers, if they have a nonfunctional boot-loader, by the way?) -Isaac