8fa43b57ea
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> |
||
---|---|---|
.. | ||
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