Skip to content

Commit

Permalink
zsh-completion: improve wording and list of available options to bett…
Browse files Browse the repository at this point in the history
…er match reality

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.
  • Loading branch information
mika committed Jan 24, 2019
1 parent fc76b63 commit 83408f3
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
1 change: 0 additions & 1 deletion TODO
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions debian/postinst
@@ -0,0 +1,7 @@
#!/bin/bash

set -e

#DEBHELPER#

exit 0
7 changes: 7 additions & 0 deletions debian/postrm
@@ -0,0 +1,7 @@
#!/bin/bash

set -e

#DEBHELPER#

exit 0
12 changes: 6 additions & 6 deletions zsh-completion
Expand Up @@ -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

0 comments on commit 83408f3

Please sign in to comment.