Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Update the live/README and provisioning-stacker.yaml #49

Merged
merged 1 commit into from
Jul 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions live/README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
# Building live cd

* Ensure you have installed all of the build requirements for mos, trust, and bootkit. (See the .github/workflows/build.yml files in each)
* Create bootkit artifacts under .local/share/machine/trust/keys/$keyset - should
be done by 'trust keyset add'

```
git clone https://github.com/hallyn/bootkit
cd bootkit
make build
umoci unpack --image ../build-bootkit/oci:bootkit \
umoci unpack --rootless --image \
../build-bootkit/oci:bootkit xxx
mv xxx/rootfs/bootkit
~/.local/share/machine/trust/keys/snakeoil/
rm -rf xxx
```
NOTE - we want to move that from the project into the keyset.

* pin rootfs version to use
```
export ROOTFS_VERSION=0.0.5.230327-squashfs
```
* cd live
* build the rootfs

```
stacker build --layer-type=squashfs \
--substitute ROOTFS_VERSION=0.0.5.230327-squashfs
--substitute ROOTFS_VERSION="${ROOTFS_VERSION}"
```

* Note: I seem to be hitting a bug with this, where it fails to build the second time.
Expand Down
2 changes: 1 addition & 1 deletion live/provision-stacker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ provision-rootfs:
type: built
tag: provision-rootfs-pkg
import:
- https://github.com/project-machine/mos/releases/download/0.0.9/mosctl
- https://github.com/project-machine/mos/releases/download/0.0.11/mosctl
- trust-provision
- trust-provision.service
- trust-provision-failed.service
Expand Down