----------------------------------
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
+it possible to simply copy an ISO image to the 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/
+- 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
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.
+loopback.cfg beginning with release version 2010.04.
+
More technical details can be found here:
http://www.supergrubdisk.org/wiki/Loopback.cfg
Copyright:
- <Copyright (C) 2010++ Andreas "Jimmy" Gredler>
+ Copyright (C) 2010 Andreas "Jimmy" Gredler
+ Copyright (C) 2010 Michael Prokop
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
+ the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This package is distributed in the hope that it will be useful,
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'.
+Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'.
The Debian packaging is:
Copyright (C) 2010 Andreas "Jimmy" Gredler <jimmy@grml.org>
-and is licensed under the GPL version 3, see above.
+and is licensed under the GPL version 2 or (at your option) any later version,
+see above.
#!/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)
- update-grub
+ if ls /boot/grml/*iso >/dev/null 2>&1 ; then
+ echo "ISOs found inside /boot/grml, invoking update-grub:"
+ update-grub
+ else
+ echo "No *.iso files found inside /boot/grml/. Please create /boot/grml and"
+ echo "place Grml ISO(s) there. Finally invoke update-grub and enjoy your rescue system."
+ fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
esac
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
#DEBHELPER#
exit 0
#!/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)
+ echo "Updating grub.cfg to make sure there are no non-existing entries being left."
update-grub
;;
;;
esac
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
#DEBHELPER#
exit 0