summaryrefslogtreecommitdiff
path: root/bin/debvm-create
diff options
context:
space:
mode:
Diffstat (limited to 'bin/debvm-create')
-rwxr-xr-xbin/debvm-create11
1 files changed, 7 insertions, 4 deletions
diff --git a/bin/debvm-create b/bin/debvm-create
index 75f153b..fffa494 100755
--- a/bin/debvm-create
+++ b/bin/debvm-create
@@ -37,7 +37,7 @@ A suitable kernel image is automatically selected and installed into the image.
Set the hostname of the virtual machine.
By default, the hostname is B<testvm>.
-=item B<--initsystem>=B<systemd> | B<sysv> | B<none>
+=item B<--initsystem>=B<systemd> | B<runit> | B<sysv> | B<none>
Select an init system to be used.
The default is B<systemd> independently of the Debian release.
@@ -85,7 +85,7 @@ Such a tar archive is not suitable for being booted by B<debvm-run>.
=item B<ifupdown>
skips installing B<ifupdown> configuration to automatically configure wired interfaces.
-This is specific to using B<sysv> as init system.
+This is specific to using B<runit> or B<sysv> as init system.
=item B<initsystem>
@@ -184,7 +184,7 @@ opt_hostname() {
}
opt_initsystem() {
case "$1" in
- systemd|sysv|none)
+ systemd|sysv|runit|none)
;;
*)
die "value for --initsystem must be one of systemd, sysv or none"
@@ -284,6 +284,9 @@ set -- \
"$@"
case "$INITSYSTEM" in
+ runit)
+ set -- --include=runit-init,passwd "$@"
+ ;;
systemd)
set -- --include=systemd-sysv "$@"
;;
@@ -311,7 +314,7 @@ if test "$INITSYSTEM" = systemd && ! check_skip systemdnetwork; then
'--include=?not(?virtual)?exact-name(libnss-resolve)' \
"--customize-hook=$SHARE_DIR/customize-resolved.sh" \
"$@"
-elif test "$INITSYSTEM" = sysv && ! check_skip ifupdown; then
+elif test "$INITSYSTEM" = sysv -o "$INITSYSTEM" = runit && ! check_skip ifupdown; then
set -- \
'--include=ifupdown,isc-dhcp-client' \
"--customize-hook=$SHARE_DIR/customize-ifupdown.sh" \