Last active
August 18, 2019 16:39
-
-
Save jlebon/01f573b12f8851fd5c1e60c1f5e34abd to your computer and use it in GitHub Desktop.
Revisions
-
jlebon renamed this gist
Aug 18, 2019 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
jlebon created this gist
Aug 1, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 ```