2cfe2ffe71
- installer/geninstaller: when -b grub2 flag is given, installs grub2 using grub-install, copies installer/resources/grub/grub.cfg onto target - installer/resources/grub/grub.cfg: grub configuration that in addition to having a menuentry for the installer, scans all partitions on the system other than the one it is running from for linux installations and creates menuentries for the other installations as well, to deal with potential situations where the user reboots the system after installing but does not remove the installation disk |
||
---|---|---|
.. | ||
resources | ||
README.md | ||
geninstaller | ||
runinstaller | ||
usquery |
README.md
Getting Started
Install package dependencies:
PKGS="
bzr
extlinux
gdisk
kpartx
parted
qemu-system-x86
qemu-utils
syslinux-common
"
apt-get install $PKGS
Generate the install image
./geninstaller.sh
Run the installer
# generate target device
qemu-img create -f raw target.img 10G
# run installer
sudo qemu-system-x86_64 -m 1024 -enable-kvm \
-hda installer.img -hdb test.img \
-serial telnet:127.0.0.1:2445,server,nowait \
-monitor stdio
# login and shutdown, ubuntu/passw0rd
Boot the installed image
sudo qemu-system-x86_64 -m 1024 -enable-kvm \
-hda test.img \
-serial telnet:127.0.0.1:2445,server,nowait