diff options
author | Helmut Grohne <helmut@subdivi.de> | 2023-02-23 20:09:58 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2023-02-23 20:09:58 +0100 |
commit | 398fce482e8d8809bcec769155d7adbe913bf1af (patch) | |
tree | e596ab927a7e74adbd9b5052f0563f2dbcdaf38e /bin/debvm-create | |
parent | 6c0f131ce725ddf9a250dbeb607fa38cb3e633bc (diff) | |
download | debvm-398fce482e8d8809bcec769155d7adbe913bf1af.tar.gz |
debvm-create: also support --initsystem=runit
Diffstat (limited to 'bin/debvm-create')
-rwxr-xr-x | bin/debvm-create | 11 |
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" \ |