Skip to content

Instantly share code, notes, and snippets.

@jlebon
Last active August 18, 2019 16:39
Show Gist options
  • Save jlebon/01f573b12f8851fd5c1e60c1f5e34abd to your computer and use it in GitHub Desktop.
Save jlebon/01f573b12f8851fd5c1e60c1f5e34abd to your computer and use it in GitHub Desktop.
Iterating on Ignition or other things in the initrd

Switch to a dev branch and enable initrd regeneration:

ostree commit -b dev --fsync=no --tree=ref=$booted_commit
rpm-ostree rebase :dev
rpm-ostree initramfs --enable
reboot

Updating files:

ostree checkout -H dev --fsync=no /ostree/repo/out/
# then dump files you want to add, e.g. for ignition-dracut:
rsync --delete -a /srv/ignition-dracut/dracut/30ignition/ /ostree/repo/out/usr/lib/dracut/modules.d/30ignition
ostree commit -b dev --link-checkout-speedup --fsync=no --consume /ostree/repo/out/
rpm-ostree upgrade # will regen the initrd
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment