Project

General

Profile

Feature #31440

Add 'snippet_if_exists' to default kickstart template

Added by Dominik Matoulek 8 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Low
Category:
Unattended installations
Target version:
-
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1901504

1. Proposed title of this feature request
Add 'snippet_if_exists' to default kickstart template

2. What is the nature and description of the request?
Improve the usablity of the default kickstart template
For flexability it would be useful to add 'snippet_if_exists' to the post nochroot section of the default kickstart profile.

3. How would the user like to achieve this? (List the functional requirements here)
The section would look like this:
post --nochroot
exec < /dev/tty3 > /dev/tty3
#changing to VT 3 so that we can see whats going on....
+<%= snippet_if_exists(template_name + " custom postnochroot") %>
/usr/bin/chvt 3
(
cp -va /etc/resolv.conf /mnt/sysimage/etc/resolv.conf
/usr/bin/chvt 1
) 2>&1 | tee /mnt/sysimage/root/install.postnochroot.log
<%= section_end -

4. List any affected packages or components.
Template: kickstart_default.erb

Associated revisions

Revision b6c40daf (diff)
Added by Dominik Matoulek 7 months ago

Fixes #31440 - adding snippet_if_exists to nochroot block (#8175)

Adding call of macro snippet_if_exists for better logging in nochroot block of kickstart_default template

History

#1 Updated by Dominik Matoulek 8 months ago

  • Triaged changed from No to Yes
  • Category changed from TFTP to Unattended installations
  • Subject changed from Add 'snippet_if_exists' to default kickstart template to Add 'snippet_if_exists' to default kickstart template

#2 Updated by Dominik Matoulek 8 months ago

  • Description updated (diff)

#3 Updated by The Foreman Bot 8 months ago

  • Assignee set to Dominik Matoulek
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/8175 added

#4 Updated by The Foreman Bot 7 months ago

  • Fixed in Releases 2.4.0 added

#5 Updated by Anonymous 7 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF