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

Commit

Permalink
Change order of ostree init/initfs
Browse files Browse the repository at this point in the history
  • Loading branch information
fwilhe committed Sep 21, 2023
1 parent 2f8f1c0 commit 10b541b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion features/ostree/exec.late
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ln -sf var/roothome root

ln -s sysroot/ostree ostree

echo $(date) > /timestamp
echo $(date --utc +%Y-%m-%dT%H:%M:%S%Z) > /timestamp

mkdir -p /boot/efi/Default

Expand Down
5 changes: 3 additions & 2 deletions features/ostree/image.ostree.raw
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ tar xf "$rootfs" -C "$rootfs_work"

mv "$rootfs_work"/etc "$rootfs_work"/usr/etc

ostree admin init-fs --modern $OSTREE_SYSROOT
mkdir -p $OSTREE_REPO
ostree init --mode=archive --repo=$OSTREE_REPO
ostree admin init-fs --modern $OSTREE_SYSROOT
ostree admin os-init --sysroot=$OSTREE_SYSROOT gardenlinux
ostree config --repo=$OSTREE_REPO set sysroot.bootloader none
ostree commit --repo=$OSTREE_REPO --branch $OSTREE_REF --skip-if-unchanged -s "Debian testing build $(date)" "$rootfs_work"
ostree commit --repo=$OSTREE_REPO --branch $OSTREE_REF --skip-if-unchanged -s "Debian testing build $(date --utc +%Y-%m-%dT%H:%M:%S%Z)" "$rootfs_work"
ostree remote --repo=$OSTREE_REPO add --no-gpg-verify --no-sign-verify origin http://172.16.48.131:8000 $OSTREE_REF # fixme: hardcoded ip address
ostree admin deploy --karg=root=LABEL=ROOT --karg-append=rw --karg-append=efi=runtime --karg-append=systemd.journald.forward_to_console=1 --sysroot=$OSTREE_SYSROOT --os=gardenlinux $OSTREE_REF

Expand Down

0 comments on commit 10b541b

Please sign in to comment.