From ccd5a503dbbd62b851b01280f0cd5a36178ed65f Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Tue, 19 Feb 2013 02:46:02 +0100 Subject: [PATCH] setup: add gummiboot(1) man page --- Makefile | 15 +++++- src/setup/gummiboot.xml | 133 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 147 insertions(+), 1 deletion(-) create mode 100644 src/setup/gummiboot.xml diff --git a/Makefile b/Makefile index fcc3c11..ddcc447 100644 --- a/Makefile +++ b/Makefile @@ -85,14 +85,27 @@ gummiboot: src/setup/setup.c src/setup/efivars.h src/setup/efivars.c Makefile -o $@ # ------------------------------------------------------------------------------ +man: gummiboot.1 + +gummiboot.1: src/setup/gummiboot.xml + $(E) " XSLT " $@ + $(Q) xsltproc -o @ --nonet \ + --stringparam man.output.quietly 1 \ + --stringparam man.th.extra1.suppress 1 \ + --stringparam man.authors.section.enabled 0 \ + --stringparam man.copyright.section.enabled 0 \ + http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< + +# ------------------------------------------------------------------------------ clean: rm -f src/efi/gummiboot.o src/efi/gummiboot.so gummiboot gummiboot$(MACHINE_TYPE_NAME).efi -install: +install: all mkdir -p $(DESTDIR)/usr/bin/ cp gummiboot $(DESTDIR)/usr/bin mkdir -p $(DESTDIR)/usr/lib/gummiboot/ cp gummiboot$(MACHINE_TYPE_NAME).efi $(DESTDIR)/usr/lib/gummiboot/ + [ -e gummiboot.1 ] && mkdir -p $(DESTDIR)/usr/share/man/man1/ && cp gummiboot.1 $(DESTDIR)/usr/share/man/man1/ || : tar: git archive --format=tar --prefix=gummiboot-$(VERSION)/ $(VERSION) | xz > gummiboot-$(VERSION).tar.xz diff --git a/src/setup/gummiboot.xml b/src/setup/gummiboot.xml new file mode 100644 index 0000000..a922d4a --- /dev/null +++ b/src/setup/gummiboot.xml @@ -0,0 +1,133 @@ + + + + + + + + gummiboot + gummiboot + + + + Developer + Kay + Sievers + kay@vrfy.org + + + + + + gummiboot + 1 + + + + gummiboot + Setup and manage Gummibot Boot Manager + + + + + gummiboot OPTIONSstatus + + + gummiboot OPTIONSupdate + + + gummiboot OPTIONSinstall + + + gummiboot OPTIONSremove + + + + + Description + + gummibot checks, updates, + installs or removes the boot manager from the current + system. + + gummiboot status checks and + prints the currently installed version of the boot + manager. + + gummiboot update updates all installed + versions of gummiboot, if the current version is newer than the + version installed in the EFI system partition, and create a + gummiboot entry in the EFI boot variables if there is no entry + already. + + gummiboot install + installs gummiboot into the EFI system partition, and create + an active entry in the EFI boot varaibles. + + gummiboot remove removes all installed + versions of gummiboot from the EFI system partition, and remove + all gummiboot entries from the EFI boot variables. + + If no command is passed status is + implied. + + + + Options + The following options are understood: + + + + + + + Prints a short help + text and exits. + + + + + Path to the EFI system + partition. The default is /boot. + + + + + Do not touch the EFI boot + variables in the firmware. + + + + + + Exit status + On success 0 is returned, a non-zero failure + code otherwise. + + + + See Also + + Gummiboot wiki + Boot loader specification + Systemd boot loader interface + bootctl1 + + + -- 2.7.4