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
18 lines
433 B
Makefile
18 lines
433 B
Makefile
# step 2: build up virtual machine's configuration
|
|
|
|
ifndef MKIMAGE_PROFILES
|
|
$(error this makefile is designed to be included in toplevel one)
|
|
endif
|
|
|
|
ifeq (vm,$(IMAGE_CLASS))
|
|
|
|
#vm/.bare: profile/bare use/bootloader/grub
|
|
vm/.bare: profile/bare
|
|
@$(call add,BASE_PACKAGES,basesystem interactivesystem lilo passwd shadow-utils e2fsprogs mingetty)
|
|
@$(call set,KFLAVOURS,std-def)
|
|
|
|
vm/bare: vm/.bare
|
|
@$(call add,BASE_PACKAGES,apt)
|
|
|
|
endif
|