From 73e1edfd973b5362e687fcc15ff9524b4cd64172 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Mon, 25 May 2026 13:36:23 +0545 Subject: [PATCH] fix(src/utils): add warning for unknowndistribution when rebuilding initramfs Log a warning when the initramfs rebuild is skipped because the distribution is unknown, ensuring the user is informed. New Features - None Enhancements - Added explicit warning for unknown distributions to prevent silent skips - Improved logging clarity in rebuild_initramfs Bug Fixes - Fixed missing warning path that could hide build issues on unsupported distros --- src/utils/system.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/system.rs b/src/utils/system.rs index 9ce96ab..0ff600f 100644 --- a/src/utils/system.rs +++ b/src/utils/system.rs @@ -168,6 +168,10 @@ pub fn rebuild_initramfs() { error!("An error occurred while rebuilding the initramfs"); } } + } else { + log::warn!( + "Unknown distribution: initramfs was not rebuilt. You may need to rebuild it manually before rebooting." + ); } }