| |
@@ -0,0 +1,36 @@
|
| |
+ #!/bin/bash
|
| |
+
|
| |
+ set -euxo pipefail
|
| |
+
|
| |
+ #======================================
|
| |
+ # Functions...
|
| |
+ #--------------------------------------
|
| |
+ test -f /.kconfig && . /.kconfig
|
| |
+ test -f /.profile && . /.profile
|
| |
+
|
| |
+ #======================================
|
| |
+ # Greeting...
|
| |
+ #--------------------------------------
|
| |
+ echo "Post bootstrap: [$kiwi_iname]-[$kiwi_profiles]..."
|
| |
+
|
| |
+ # Exit early for non Atomic profiles
|
| |
+ if [[ "$kiwi_profiles" != *"Atomic"* ]]; then
|
| |
+ echo "Not running post_bootstrap.sh for non Atomic profiles"
|
| |
+ exit 0
|
| |
+ fi
|
| |
+
|
| |
+ ostree admin init-fs --modern /
|
| |
+ ostree config --repo=/ostree/repo set sysroot.bootloader none
|
| |
+ ostree config --repo=/ostree/repo set sysroot.readonly true
|
| |
+ install -dm0755 /boot/loader.0
|
| |
+ ln -snf loader.0 /boot/loader
|
| |
+ ostree admin os-init fedora --sysroot / || true
|
| |
+
|
| |
+ ostree container image deploy \
|
| |
+ --imgref ostree-unverified-image:registry:quay.io/fedora-ostree-desktops/base:40 \
|
| |
+ --target-imgref ostree-unverified-image:registry:quay.io/fedora-ostree-desktops/base:40 \
|
| |
+ --stateroot fedora \
|
| |
+ --sysroot / \
|
| |
+ --karg=rw
|
| |
+
|
| |
+ exit 0
|
| |
I'd really like new things to use
bootc install to-filesystem
instead.