diff options
author | Helmut Grohne <helmut@subdivi.de> | 2023-01-11 19:58:23 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2023-01-11 19:58:23 +0100 |
commit | dc3527288d6f82ab60cfbe24efeb0961130901b7 (patch) | |
tree | 4df30b822078140cec3646421c71208a4646bc4a /debvm-create | |
parent | fe999e3cdb244bef2bd425918bc874b0018e94aa (diff) | |
parent | e7c2288400ee78c3ef8c7a92128287c1eff67811 (diff) | |
download | debvm-dc3527288d6f82ab60cfbe24efeb0961130901b7.tar.gz |
Merge branch main into skip
Resolve conflicts in the documentation of debvm-create.
Diffstat (limited to 'debvm-create')
-rwxr-xr-x | debvm-create | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/debvm-create b/debvm-create index 5ddbd2f..541519b 100755 --- a/debvm-create +++ b/debvm-create @@ -11,7 +11,7 @@ debvm-create - Create a VM image for various Debian releases and architectures =head1 SYNOPSIS -B<debvm-create> [B<-a> I<architecture>] [B<-h> I<hostname>] [B<-k> I<sshkey>] [B<-m> I<mirror>] [B<-o> I<output>] [B<-p> I<package>] [B<-r> I<release>] [B<-s> <task>] [B<-z> I<size_in_GB>] [B<--> I<mmdebstrap options>] +B<debvm-create> [B<-a> I<architecture>] [B<-h> I<hostname>] [B<-k> F<sshkey>] [B<-m> I<mirror>] [B<-o> F<output>] [B<-p> I<package>] [B<-r> I<release>] [B<-s> <task>] [B<-z> I<size_in_GB>] [B<--> I<mmdebstrap options>] =head1 DESCRIPTION @@ -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<-k> I<sshkey>, B<--sshkey>=I<sshkey> +=item B<-k> F<sshkey>, B<--sshkey>=F<sshkey> Install the given ssh public key file into the virtual machine image for the root user. This option also causes the ssh server to be installed. @@ -47,12 +47,12 @@ To connect to the vm, pass a port number to B<debvm-run> with the B<-s> option. =item B<-m> I<mirror>, B<--mirror>=I<mirror> Specify the Debian mirror to be used for downloading packages and to be configured inside the virtual machine image. -By default, B<http://deb.debian.org/debian> is being used. +By default, L<http://deb.debian.org/debian> is being used. -=item B<-o> I<output>, B<--output>=I<output> +=item B<-o> F<output>, B<--output>=F<output> Specify the file name of the resulting virtual machine image. -By default, it is written to B<rootfs.ext4>. +By default, it is written to F<rootfs.ext4>. =item B<-p> I<package>, B<--package>=I<package> @@ -365,6 +365,11 @@ if test "$DEBVER" -ge 12 && ! check_skip usrmerge; then set -- --hook-dir=/usr/share/mmdebstrap/hooks/merged-usr "$@" fi +set -- \ + '--customize-hook=mkdir "$1/etc/systemd/system/serial-getty@.service.d"' \ + "--customize-hook=sed -n -e '1i[Service]' -e '1iExecStart=' -e 's,^ExecStart=-/sbin/agetty ,&-a root ,p'"' "$1/lib/systemd/system/serial-getty@.service" > "$1/etc/systemd/system/serial-getty@.service.d/autologin.conf"' \ + "$@" + # suite target mirror set -- "$@" "$SUITE" "$IMAGE" "deb $MIRROR $SUITE main" |