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
This commit is contained in:
sankalp committed 2026-05-25 13:36:23 +05:45
1 parent 4e46604cfd
commit 73e1edfd97
1 file changed
+4
+4
View File
@@ -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."
);
}
}