-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically upgrade initoverlayfs on upgrade
With this script we automatically rebuild initoverlayfs on kernel upgrade. Signed-off-by: Eric Curtin <[email protected]>
- Loading branch information
1 parent
b373b65
commit 2b942a8
Showing
3 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,10 +44,10 @@ install -D -m644 lib/systemd/system/pre-initoverlayfs-switch-root.service ${RPM_ | |
%{_prefix}/lib/systemd/system/pre-initoverlayfs-switch-root.service | ||
|
||
%changelog | ||
* Wed Jan 17 2024 Stephen Smoogen <ssmoogen@redhat.com> - 0.991-1 | ||
- Update to 0.991 release. | ||
- fork storage-init as a systemd unit (ecurtin) | ||
- shell-less initrd work (ecurtin) | ||
* Wed Feb 11 2024 Eric Curtin <ecurtin@redhat.com> - 0.992-1 | ||
- Update to 0.992 release. | ||
- Automatically rebuild kernel on upgrade (ecurtin) | ||
- Build initrd in no-hostonly mode for generic initrd (ecurtin) | ||
|
||
* Thu Dec 14 2023 Stephen Smoogen <[email protected]> - 0.99-1 | ||
- Update to 0.99 release. | ||
|
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/bash | ||
|
||
COMMAND="$1" | ||
KERNEL_VERSION="$2" | ||
|
||
case "$COMMAND" in | ||
add) | ||
initoverlayfs-install --kver "$KERNEL_VERSION" | ||
;; | ||
remove) | ||
rm -f /boot/initoverlayfs-$KERNEL_VERSION | ||
;; | ||
*) | ||
exit 0 | ||
esac | ||
|