Wizard: Add kernel append input

This adds the kernel append input. New arguments can be added by pressing the "Add" button or hitting Enter after the argument.

The kernel arguments linked to a selected OpenSCAP profile are rendered in a category marked as "Required by OpenSCAP" and are read only.
This commit is contained in:
regexowl 2025-01-07 11:43:24 +01:00 committed by Klara Simickova
parent 199dd3d5d7
commit 1b21852518
13 changed files with 305 additions and 40 deletions

View file

@ -124,6 +124,14 @@ export const isKernelNameValid = (kernelName: string) => {
);
};
export const isKernelArgumentValid = (arg: string) => {
if (!arg) {
return true;
}
return /^[a-zA-Z0-9=-_,"']*$/.test(arg);
};
export const isPortValid = (port: string) => {
return /^(\d{1,5}|[a-z]{1,6})(-\d{1,5})?:[a-z]{1,6}$/.test(port);
};