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.

Revisions

  1. jlebon renamed this gist Aug 18, 2019. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. jlebon created this gist Aug 1, 2019.
    19 changes: 19 additions & 0 deletions iterating.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    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
    ```