From bf913f499d677e82b8c35548ebfa4f267139762a Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Thu, 27 Apr 2023 19:42:30 +0200 Subject: debvm-create: recognize finit as an init system --- bin/debvm-create | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'bin/debvm-create') diff --git a/bin/debvm-create b/bin/debvm-create index 1c7c29d..bfc02e3 100755 --- a/bin/debvm-create +++ b/bin/debvm-create @@ -31,12 +31,13 @@ No user account is created and root can login without specifying a password. Set the hostname of the virtual machine. By default, the hostname is B. -=item B<--initsystem>=B | B | B | B | B +=item B<--initsystem>=B | B | B | B | B | B Select an init system to be used. The default is B independently of the Debian release. Note that when selecting B, the resulting image will not be bootable unless something else takes care of creating F. Automatic customizations that are specific to a particular init system will be skipped when a different init system is selected. +When using the B init system consider passing B<--include=finit-plugins> to B. =item B<-k> F, B<--sshkey>=F @@ -69,7 +70,7 @@ The following tasks may be skipped. Skips adding a the customize-autologin.sh to B that configures automatic root login on a serial console and also parses the C kernel cmdline and passes it as C to B. -This is specific to using B, B or B as init system. +This is specific to using B, B, B or B as init system. =item B @@ -80,7 +81,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 or B as init system. +This is specific to using B, B or B as init system. =item B @@ -209,10 +210,10 @@ opt_hostname() { } opt_initsystem() { case "$1" in - busybox|none|runit|systemd|sysv) + busybox|finit|none|runit|systemd|sysv) ;; *) - die "value for --initsystem must be one of systemd, busybox, none, runit or sysv" + die "value for --initsystem must be one of systemd, busybox, finit, none, runit or sysv" ;; esac INITSYSTEM=$1 @@ -319,6 +320,9 @@ case "$INITSYSTEM" in "$@" SKIP="${SKIP}autologin," ;; + finit) + set -- --include=finit-sysv,mount "$@" + ;; none) SKIP="${SKIP}autologin," ;; @@ -352,7 +356,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 -o "$INITSYSTEM" = runit && ! check_skip ifupdown; then +elif test "$INITSYSTEM" = sysv -o "$INITSYSTEM" = runit -o "$INITSYSTEM" = finit && ! check_skip ifupdown; then set -- \ '--include=ifupdown,isc-dhcp-client' \ "--customize-hook=$SHARE_DIR/customize-ifupdown.sh" \ -- cgit v1.2.3