75f7c62bd1
Yes, mkimage-profiles is now able to build VM disk images. So far the support is pretty basic: - a single hard drive image with a single partition/FS - only stock root password is configurable - LILO is hardwired as a bootloader The resulting images tend to boot under qemu/kvm though. Please see doc/vm.txt for the warning regarding additional privileges and setup required. This was started back in February but I still hoped to avoid sudo/privileged helper (and libguestfs is almost as undistributable as can be)... Thanks: - http://blog.quinthar.com/2008/07/building-1gb-bootable-qemu-image-using.html - Alexey Morarash who reworked that as https://github.com/tuxofil/linsygen - led@, legion@, vitty@, aen@ for providing advice and inspiration
29 lines
565 B
Makefile
29 lines
565 B
Makefile
# this makefile holds the most helpful bits for the toplevel one
|
|
|
|
ifdef __frontend
|
|
define help_body
|
|
@for i in $(2); do echo $$i; done
|
|
endef
|
|
else
|
|
define help_body
|
|
echo '** available $(1) targets:'; \
|
|
columnize $(2)
|
|
endef
|
|
endif
|
|
|
|
help = $(and $(2),$(help_body))
|
|
|
|
help/distro:
|
|
@$(call help,distribution,$(sort $(DISTROS:distro/%=%)))
|
|
|
|
help/ve:
|
|
@[ -n "$(SPACE)" ] && echo; \
|
|
$(call help,virtual environment,$(sort $(VES)))
|
|
|
|
help/vm:
|
|
@[ -n "$(SPACE)" ] && echo; \
|
|
$(call help,virtual machine,$(sort $(VMS)))
|
|
|
|
help: SPACE = 1
|
|
help: help/distro help/ve help/vm; @:
|