Skip to content

Commit

Permalink
Merge pull request #10 from hongxu-jia/update-steps
Browse files Browse the repository at this point in the history
doc/source/developer.txt: update steps
  • Loading branch information
zulcss authored Apr 1, 2024
2 parents 2ae55ef + f457cf4 commit 47e75bf
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
21 changes: 19 additions & 2 deletions doc/source/developer.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,34 @@ repository run the following commands:

PBR_VERSION=1.2.3 pip3 install -e . --break-system-packages

2. Run tiler to install from local ostree repository
2. Create loop device (/dev/loop1) for installer

qemu-img create -f raw ./pablo-image.img 32G

losetup /dev/loop1 ./pablo-image.img

3. Run tiler to install from local ostree repository

tiler --debug install --config config/disk/ostree-local.yaml

3. Run tiler to install from remote ostree repository
4. Run tiler to install from remote ostree repository

# Setup web server
python3 -m http.server 80 --directory /var/www/html > /dev/null 2>&1 &

tiler --debug install --config config/disk/ostree-remote.yaml

5. Boot installed image (pablo-image.img) via qemu

# Out of container, install qemu-system-x86 and ovmf, and run
qemu-system-x86_64 -m 4096 \
-cpu kvm64 -enable-kvm -nographic \
-device virtio-blk-pci,drive=hd,scsi=off \
-drive if=none,id=hd,file=./pablo-image.img,format=raw \
-drive if=pflash,format=raw,file=/usr/share/OVMF/OVMF_CODE.fd \
-drive if=pflash,format=raw,file=/usr/share/OVMF/OVMF_VARS.fd \
-nic user

== To create an install ISO ==

To create an install ISO to be used in a VM or bare metal run the following
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ RUN apt-get update && \
udev \
bubblewrap \
systemd-boot \
qemu-utils \
gir1.2-ostree-1.0 \
git

Expand Down

0 comments on commit 47e75bf

Please sign in to comment.