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
14 lines
441 B
Bash
Executable File
14 lines
441 B
Bash
Executable File
#!/bin/sh
|
|
# predictable file locations make bootloader configuration simple;
|
|
# this script relates to .../features.in/stage2/stage1/scripts.d/80-make-initfs
|
|
|
|
kver="$(rpm -qa 'kernel-image*' \
|
|
--qf '%{installtime} %{version}-%{name}-%{release}\n' \
|
|
| sort -n \
|
|
| tail -n 1 \
|
|
| cut -f 2 -d ' ' \
|
|
| sed 's/kernel-image-//')"
|
|
|
|
ln -s vmlinuz-$kver /boot/vmlinuz
|
|
ln -s initrd-$kver.img /boot/initrd.img
|