subiquity/installer
Ryan Harper 8fa43b57ea Call curtin installer from subiquity
Hacky method, but in welcome controller, use subprocess to
call a script which invokes curtin at a known location with
a specific set of parameters.

Modify the installer configuration and start-up scripts to
ensure Subiquity runs on tty1 and keeps the service running.

Upon hitting 'Confirm' Subiquity will exec curtin_wrap.sh
which calls the *real* curtin.  Cloud-init user-data has been
modified to unpack the curtin archive embedded.

When complete, the target.img file is bootable.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-06-16 18:59:13 -05:00
..
resources Call curtin installer from subiquity 2015-06-16 18:59:13 -05:00
README.md Initial import of installer image building 2015-06-15 14:38:51 -05:00
geninstaller Call curtin installer from subiquity 2015-06-16 18:59:13 -05:00
runinstaller Initial import of installer image building 2015-06-15 14:38:51 -05:00
usquery Initial import of installer image building 2015-06-15 14:38:51 -05:00

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