Skip to content

Commit

Permalink
Switch from debian/install to Makefile approach
Browse files Browse the repository at this point in the history
  • Loading branch information
mika committed Jul 22, 2018
1 parent 8f3e81e commit 73d42be
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 5 deletions.
14 changes: 14 additions & 0 deletions Makefile
@@ -0,0 +1,14 @@
all: build

build:
xmltoman man/update-grml-rescueboot.xml > man/update-grml-rescueboot.8

install:
mkdir -p $(DESTDIR)/etc/grub.d $(DESTDIR)/usr/share/doc/grml-rescueboot/ $(DESTDIR)/etc/default $(DESTDIR)/usr/sbin/
install -m 755 42_grml $(DESTDIR)/etc/grub.d/
install -m 644 debian/README $(DESTDIR)/usr/share/doc/grml-rescueboot/
install -m 644 etc/default/grml-rescueboot $(DESTDIR)/etc/default/grml-rescueboot
install -m 755 update-grml-rescueboot $(DESTDIR)/usr/sbin/

clean:
rm -f man/update-grml-rescueboot.en.8
2 changes: 1 addition & 1 deletion debian/grml-rescueboot.manpages
@@ -1 +1 @@
man/update-grml-rescueboot.en.8
man/update-grml-rescueboot.8
4 changes: 0 additions & 4 deletions debian/install

This file was deleted.

10 changes: 10 additions & 0 deletions debian/rules
Expand Up @@ -11,3 +11,13 @@

%:
dh $@

#drwxr-xr-x root/root 0 2017-01-24 21:42 ./boot/grml/
#-rw-r--r-- root/root 271 2014-08-31 19:30 ./etc/default/grml-rescueboot
#-rwxr-xr-x root/root 3280 2015-06-19 09:21 ./etc/grub.d/42_grml
#-rwxr-xr-x root/root 4346 2017-01-24 21:42 ./usr/sbin/update-grml-rescueboot
#-rw-r--r-- root/root 1290 2014-08-31 19:30 ./usr/share/doc/grml-rescueboot/README
#-rw-r--r-- root/root 1880 2017-01-24 21:42 ./usr/share/doc/grml-rescueboot/changelog.gz
#-rw-r--r-- root/root 1315 2017-01-24 21:42 ./usr/share/doc/grml-rescueboot/copyright
#-rw-r--r-- root/root 114 2014-08-31 19:30 ./usr/share/lintian/overrides/grml-rescueboot
#-rw-r--r-- root/root 959 2017-01-24 21:42 ./usr/share/man/en/man8/update-grml-rescueboot.8.gz
25 changes: 25 additions & 0 deletions man/update-grml-rescueboot.8
@@ -0,0 +1,25 @@
.TH update-grml-rescueboot 8 User Manuals
.SH NAME
update-grml-rescueboot \- Script to integrate Grml ISO for booting via GRUB
.SH SYNOPSIS
\fBupdate-grml-rescueboot [-f] [-a \fI32|64|96\fB] [-t \fIsmall|full\fB]
\f1
.SH DESCRIPTION
grml-rescueboot integrates Grml ISO booting into GRUB. It provides a script for update-grub which looks for Grml ISO images in \fI/boot/grml\f1, and automatically adds an entry for each image. The purpose is to use one of those images to boot a Grml rescue system without using a CD, USB stick or network boot (PXE). \fIupdate-grml-rescueboot\f1 is a script which checks for the latest stable version of Grml (via download.grml.org), ensures there's enough free disk space in \fI/boot/grml\f1 and downloads the ISO to \fI/boot/grml\f1. It verifies the ISO signature and upon success executes update-grub then. Everything should be ready for booting a Grml ISO via GRUB then. This script makes integration of a Grml ISO into GRUB via grml-rescueboot even easier. All that needs to be done is install grml-rescueboot and invoke update-grml-rescueboot afterwards. Using the \fI-a\f1 and \fI-t\f1 options it's possible to use specific Grml ISOs. If none of those options is specific it defaults to the grml-full flavour, matching the currently running hardware architecture (i?86 or x86_64).
.SH OPTIONS
.TP
\fB-a \fIarg\fB\f1
Choose Grml architecture, specified via \fIarg\f1. Supported flavours are '32', '64' and '96'. If unset defaults to the currently running architecture.
.TP
\fB-f\f1
Force execution, ignoring, e.g. existing ISO files and disk space checks for \fI/boot/grml\f1.
.TP
\fB-h\f1
Display usage information and exit script.
.TP
\fB-t \fIarg\fB\f1
Choose Grml flavour, specified via \fIarg\f1. Supported flavours are 'small' and 'full'. If unset defaults to 'full'.
.SH AUTHOR
update-grml-rescueboot was written by Michael Prokop, based on a script by Felipe Sateler.
.SH BUGS
Please report them towards Debian's BTS, see https://bugs.debian.org/grml-rescueboot.

0 comments on commit 73d42be

Please sign in to comment.