new function for initializing the linux kernel

This commit is contained in:
aminnairi
2025-11-08 21:02:17 +01:00
parent 5681211ae1
commit 1e19a92b0c
+12 -1
View File
@@ -288,4 +288,15 @@ function ensure_gnome_setting_set() {
fi
log "Paramètre $setting_schema $setting_key paramétré avec succès."
}
}
function ensure_mkinitcpio_configured_for() {
local kernel="$1"
if sudo mkinitcpio -p "$kernel"
then
log "Noyau $kernel installé."
else
log "Echec lors de l'installation du noyau $kernel, ne redémarrez surtout pas !"
fi
}