a16c301eed
Using parted required root privileges since it opened the underlying device. Instead create our own Disk model and use sysfs interface for extracting size information. This also clears the way for providing device data via probert input. This means we can feed subiquity a probert dump and have it present that to the installer UI even if we're running on a different system. 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