Questo contenuto non è disponibile nella lingua selezionata.

17.3. Method: addScript


Description

Add a pre or post script to a kickstart profile.

Parameters

The following parameters are available for this method:

  • string sessionKey
  • string ksLabel - The kickstart label to add the script
  • string name - The kickstart script name
  • string contents - The full script to add
  • string interpreter - The path to the interpreter to use e.g. /bin/bash; an empty string enables the kickstart default interpreter
  • string type - The type of script; either pre or post
  • boolean chroot - Whether to run the script in the chrooted install location (recommended) or not.
  • boolean template - Enable templating using cobbler
Returns

The following return values are available for this method:

  • int id - The ID of the added script
Torna in cima
Red Hat logoGithubredditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi. Esplora i nostri ultimi aggiornamenti.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Theme

© 2025 Red Hat