+++ /dev/null
-- Add debian subdir
--- /dev/null
+The Debian Package grml-rescueboot
+----------------------------------
+
+Usually systems are rescued with CD or usb stick. grml-rescueboot makes
+it possible to simply copy an ISO image onto harddisk and boot the
+rescue image. This eliminates the need to carry around a usb stick
+to rescue a system.
+grml-rescueboot includes the script 42_grml which is installed in
+/etc/grub.d and run when update-grub is executed. The script looks for
+ISO images in /boot/grml/ and adds an entry for each image found.
+
+Howto:
+------
+
+- Get a recent grml image from http://grml.org/download/
+- Copy the image to /boot/grml
+- Run update-grub
+- Reboot and enjoy your new rescue system
+
+Limitations:
+------------
+
+grml-rescueboot uses the loopback feature of grub2, so it won't work
+with legacy grub. Furthermore the ISO image needs to support
+loopback.cfg, a file which is placed in /boot/grub/. Grml supports
+loopback.cfg beginning with version 2010.04.
+More technical details can be found here:
+http://www.supergrubdisk.org/wiki/Loopback.cfg
+
+ -- Andreas "Jimmy" Gredler <jimmy@grml.org> Sat, 06 Nov 2010 12:28:45 +0100
--- /dev/null
+grml-rescueboot (0.1.0) unstable; urgency=low
+
+ * Initial Release.
+
+ -- Andreas "Jimmy" Gredler <jimmy@grml.org> Sat, 06 Nov 2010 12:28:45 +0100
--- /dev/null
+Source: grml-rescueboot
+Section: misc
+Priority: extra
+Maintainer: Andreas "Jimmy" Gredler <jimmy@grml.org>
+Build-Depends: debhelper (>= 7)
+Standards-Version: 3.8.3
+Homepage: http://git.grml.org/?p=grml-rescueboot.git
+
+Package: grml-rescueboot
+Architecture: any
+Depends: grub-pc, ${shlibs:Depends}, ${misc:Depends}
+Description: Integrates ISO-booting into grub
+ grml-rescueboot includes a script for update-grub which looks for grml
+ ISO images in /boot/grml and automatically adds an entry for each
+ image. The purpose is to use one of those images to boot a rescue
+ system without using a CD or usb stick.
--- /dev/null
+This work was packaged for Debian by:
+
+ Andreas "Jimmy" Gredler <jimmy@grml.org> on Sat, 06 Nov 2010 12:28:45 +0100
+
+It was downloaded from:
+
+ http://grml.org/
+
+Copyright:
+
+ <Copyright (C) 2010++ Andreas "Jimmy" Gredler>
+
+License:
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+On Debian systems, the complete text of the GNU General
+Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'.
+
+The Debian packaging is:
+
+ Copyright (C) 2010 Andreas "Jimmy" Gredler <jimmy@grml.org>
+
+# Please chose a license for your packaging work. If the program you package
+# uses a mainstream license, using the same license is the safest choice.
+# Please avoid to pick license terms that are more restrictive than the
+# packaged work, as it may make Debian's contributions unacceptable upstream.
+# If you just want it to be GPL version 3, leave the following line in.
+
+and is licensed under the GPL version 3, see above.
+
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
--- /dev/null
+#!/bin/sh
+# postinst script for grml-rescueboot
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <postinst> `abort-remove'
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ configure)
+ /usr/sbin/update-grub
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- /dev/null
+#!/bin/sh
+# postrm script for grml-rescueboot
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postrm> `remove'
+# * <postrm> `purge'
+# * <old-postrm> `upgrade' <new-version>
+# * <new-postrm> `failed-upgrade' <old-version>
+# * <new-postrm> `abort-install'
+# * <new-postrm> `abort-install' <old-version>
+# * <new-postrm> `abort-upgrade' <old-version>
+# * <disappearer's-postrm> `disappear' <overwriter>
+# <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ /usr/sbin/update-grub
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- /dev/null
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+ dh $@