zsh-completion: improve wording and list of available options to better match reality
authorMichael Prokop <mika@grml.org>
Thu, 24 Jan 2019 08:35:29 +0000 (09:35 +0100)
committerMichael Prokop <mika@grml.org>
Thu, 24 Jan 2019 09:16:27 +0000 (10:16 +0100)
The --mntpoint option is quite unimportant, whereas --grub, --password
and --bootappend all require an argument. Instead the --hostname is
quite important. Adjust accordingly.

Add related debian/post* scripts for proper dpkg-maintscript-helper
rm_conffile support.

TODO
debian/postinst [new file with mode: 0644]
debian/postrm [new file with mode: 0644]
zsh-completion

diff --git a/TODO b/TODO
index d28e753..21d7c5c 100644 (file)
--- a/TODO
+++ b/TODO
@@ -15,7 +15,6 @@ TODO list for grml-debootstrap
 * support rpmstrap (bootstrap a basic RPM-based system)
   -> http://xen-tools.org/software/rinse/
 * support automatic installation of Gentoo
-* provide zsh-completion for grml-debootstrap's cmdline variables (in progress)
 * support installation on usb-pen (like grml2usb for Debian)
   -> http://blog.256bit.org/archives/172-Debian-in-der-Hosentasche.html#extended
 * support adduser for new user who has same permissions as an user created by d-i
diff --git a/debian/postinst b/debian/postinst
new file mode 100644 (file)
index 0000000..38bb1a8
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+set -e
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/postrm b/debian/postrm
new file mode 100644 (file)
index 0000000..38bb1a8
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+set -e
+
+#DEBHELPER#
+
+exit 0
index 2e80cd6..2755b64 100644 (file)
@@ -8,15 +8,15 @@
 ################################################################################
 
 _arguments -s                                                                                   \
-  '(-h --help)'{-h,--help}'[this help text]:'                                                   \
+  '(-h --help)'{-h,--help}'[display usage information]:'                                        \
   '(-v --version)'{-v,--version}'[display version information]:'                                \
-  '(-m --mirror)'{-m,--mirror}'[specify mirror for apt{-get,itude}]:mirror'                     \
-  '(-p --mntpoint)'{-p,--mntpoint}'[mountpoint for the target system]:mount point:_path_files'  \
+  '(-m --mirror)'{-m,--mirror}'[specify Debian mirror]:mirror'                                  \
   '(-r --release)'{-r,--release}'[specify the release name of the new system]:release'          \
   '(-t --target)'{-t,--target}'[target partition or directory]:device or directory:_path_files' \
-  '--grub[installation device for grub]'                                                        \
-  '--password[specify password for root user]'                                                 \
-  '--bootappend[appendline for kernel]'
+  '--hostname[specify hostname for target system]:hostname'                                     \
+  '--grub[installation device for grub]:device or directory:_path_files'                        \
+  '--password[specify password for root user]:password'                                         \
+  '--bootappend[appendline for kernel]:kernel-options'
 
 ## END OF FILE #################################################################
 # vim:ft=zsh