Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically upgrade initoverlayfs on kernel upgrade #66

Merged
merged 3 commits into from
Feb 12, 2024

Conversation

ericcurtin
Copy link
Collaborator

With this script we automatically rebuild initoverlayfs on kernel upgrade.

With this script we automatically rebuild initoverlayfs on kernel
upgrade.

Signed-off-by: Eric Curtin <[email protected]>
@ericcurtin ericcurtin force-pushed the auto-rebuild-on-upgrade branch from 3dfd126 to 38870ee Compare February 12, 2024 11:03
@ericcurtin ericcurtin changed the title Automatically upgrade initoverlayfs on upgrade Automatically upgrade initoverlayfs on kernel upgrade Feb 12, 2024
Also make initoverlayfs-install more familiar to dracut users, so to
rebuild initoverlayfs it's:

initoverlayfs-install -f

Signed-off-by: Eric Curtin <[email protected]>
@ericcurtin ericcurtin force-pushed the auto-rebuild-on-upgrade branch from 58ddfa9 to 268b130 Compare February 12, 2024 12:53
@dougsland
Copy link
Collaborator

@ericcurtin should we use --force?

from CI/CD:

+ /bin/bash -c 'dracut -M -o "initoverlayfs fcoe" '
dracut: Will not override existing initramfs (/boot/initramfs-6.7.3-200.fc39.x86_64.img) without --force
+ exit_code=1
+ '[' 1 '!=' 0 ']'
+ echo -n 'initoverlayfs-install completeted with 1'
initoverlayfs-install completeted with 1+ exit 1
Shared connection to 52.15.190.138 closed.

@ericcurtin
Copy link
Collaborator Author

@dougsland fixing

The new way of rebuilding initoverlayfs is via:

initoverlayfs-install -f

like

dracut -f

I'm finding it easier to integrate with osbuild and other tools (rpm-ostree should be easier also) to just use a dracut-like interface.

@ericcurtin
Copy link
Collaborator Author

Here's an example, it's not working yet, but I'm getting osbuild to do this:

subprocess.CalledProcessError: Command '['/usr/sbin/chroot', '/run/osbuild/tree', '/usr/bin/initoverlayfs-install', '--no-hostonly', '--kver', '5.14.0-416.369.el9iv.x86_64', '--force', '-v', '--show-modules', '--no-early-microcode', '--reproducible']' returned non-zero exit status 1.

Also date in spec file was not correct

Signed-off-by: Eric Curtin <[email protected]>
@ericcurtin ericcurtin force-pushed the auto-rebuild-on-upgrade branch from 58274fe to c6063ab Compare February 12, 2024 13:47
@dougsland dougsland merged commit 98dfee4 into main Feb 12, 2024
5 checks passed
@ericcurtin ericcurtin deleted the auto-rebuild-on-upgrade branch February 12, 2024 14:58
@ericcurtin ericcurtin restored the auto-rebuild-on-upgrade branch February 23, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants