From: Andreas "Jimmy" Gredler Date: Sat, 11 Dec 2010 19:16:28 +0000 (+0100) Subject: Added debian subdir for packaging and deleted TODO X-Git-Tag: v0.1.0~8 X-Git-Url: http://git.grml.org/?p=grml-rescueboot.git;a=commitdiff_plain;h=39cb619b74bd0dbd2c4a038699ad181cd1fd53ca Added debian subdir for packaging and deleted TODO --- diff --git a/TODO b/TODO deleted file mode 100644 index 1e068b5..0000000 --- a/TODO +++ /dev/null @@ -1 +0,0 @@ -- Add debian subdir diff --git a/debian/README b/debian/README new file mode 100644 index 0000000..2adf493 --- /dev/null +++ b/debian/README @@ -0,0 +1,30 @@ +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 Sat, 06 Nov 2010 12:28:45 +0100 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..db94953 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +grml-rescueboot (0.1.0) unstable; urgency=low + + * Initial Release. + + -- Andreas "Jimmy" Gredler Sat, 06 Nov 2010 12:28:45 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..3376f0c --- /dev/null +++ b/debian/control @@ -0,0 +1,16 @@ +Source: grml-rescueboot +Section: misc +Priority: extra +Maintainer: Andreas "Jimmy" Gredler +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. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..40740de --- /dev/null +++ b/debian/copyright @@ -0,0 +1,44 @@ +This work was packaged for Debian by: + + Andreas "Jimmy" Gredler on Sat, 06 Nov 2010 12:28:45 +0100 + +It was downloaded from: + + http://grml.org/ + +Copyright: + + + +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 . + +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 + +# 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. diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..6442637 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,40 @@ +#!/bin/sh +# postinst script for grml-rescueboot +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# 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 diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 0000000..a8fc883 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,38 @@ +#!/bin/sh +# postrm script for grml-rescueboot +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# 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 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..917d9bf --- /dev/null +++ b/debian/rules @@ -0,0 +1,13 @@ +#!/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 $@