summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Williams <codehelp@debian.org>2016-04-16 18:30:24 +0100
committerNeil Williams <codehelp@debian.org>2016-04-16 18:30:24 +0100
commit4bf2d516fb6a7a94428e289eb0617997b4e7f02b (patch)
tree16a4c7210f33d90ca7b27e5a18098c4845111d77
parente023aa77bbaa7d77ea119194a522b3fc42e20389 (diff)
downloadvmdebootstrap-4bf2d516fb6a7a94428e289eb0617997b4e7f02b.tar.gz
Advise use of log-mode for readable logs
Also include notes on UEFI testing with -monitor none
-rw-r--r--doc/overview.rst8
-rwxr-xr-xexamples/jessie-uefi-amd64.sh4
2 files changed, 10 insertions, 2 deletions
diff --git a/doc/overview.rst b/doc/overview.rst
index 670c898..60319f5 100644
--- a/doc/overview.rst
+++ b/doc/overview.rst
@@ -387,6 +387,10 @@ option to set mode 0644 for the specified user or use chmod manually::
sudo chmod a+w ./test.img
+If ``--log`` is also used, consider using ``--log-mode`` as well so
+that the logfile is readable by the owner. By default, the log file
+permissions are 0o600. The logfile itself will be owned by ``root``.
+
Execute using qemu, e.g. on amd64 using qemu-system-x86_64::
qemu-system-x86_64 -drive format=raw,file=./test.img
@@ -409,6 +413,10 @@ the location of this file with the -L option::
$ qemu-system-x86_64 -L /usr/share/ovmf/ -machine accel=kvm \
-m 4096 -smp 2 -drive format=raw,file=test.img
+To use the ``-nographic`` option, ensure that the ``--serial-console``
+option is supplied to ``vmdebootstrap`` and use ``-monitor none`` when
+booting the image with QEMU.
+
For further examples, including u-boot support for beaglebone-black,
see ``/usr/share/vmdebootstrap/examples``
diff --git a/examples/jessie-uefi-amd64.sh b/examples/jessie-uefi-amd64.sh
index 0578450..4504200 100755
--- a/examples/jessie-uefi-amd64.sh
+++ b/examples/jessie-uefi-amd64.sh
@@ -6,9 +6,9 @@ WHO=`whoami`
sudo vmdebootstrap --owner ${WHO} --verbose \
--sudo --lock-root-password \
--enable-dhcp --configure-apt \
- --log amd64-uefi.log --log-level debug \
+ --log amd64-uefi.log --log-mode=0644 --log-level debug \
--size 5G --distribution jessie \
- --grub --use-uefi \
+ --grub --use-uefi --serial-console \
--package task-xfce-desktop \
--customize ./examples/qemu-efi-bochs-drm.sh \
"$@"