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:
1 file changed
+4
@@ -168,6 +168,10 @@ pub fn rebuild_initramfs() {
|
|||||||
error!("An error occurred while rebuilding the 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."
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user