Project

General

Profile

Download (383 Bytes) Statistics
| Branch: | Tag: | Revision:
#!/bin/bash
<%#
kind: script
name: Community Grubby Default
%>

KERNEL="/boot/kernel"
INITRD="/boot/initrd.img"

wget -O "$KERNEL" "<%= @host.url_for_boot(:kernel) %>"
wget -O "$INITRD" "<%= @host.url_for_boot(:initrd) %>"

grubby --add-kernel=$KERNEL --initrd=$INITRD --copy-default --title "<%= @host.operatingsystem %>" --make-default --args="ks=<%= foreman_url("provision")%>"
    (1-1/1)