From 398fce482e8d8809bcec769155d7adbe913bf1af Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Thu, 23 Feb 2023 20:09:58 +0100 Subject: debvm-create: also support --initsystem=runit --- bin/debvm-create | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'bin/debvm-create') 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. -=item B<--initsystem>=B | B | B +=item B<--initsystem>=B | B | B | B Select an init system to be used. The default is B independently of the Debian release. @@ -85,7 +85,7 @@ Such a tar archive is not suitable for being booted by B. =item B skips installing B configuration to automatically configure wired interfaces. -This is specific to using B as init system. +This is specific to using B or B as init system. =item B @@ -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" \ -- cgit v1.2.3