diff options
author | Ray Strode <rstrode@redhat.com> | 2007-06-08 15:44:54 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2007-06-08 15:44:54 -0400 |
commit | 36c3e8e2bdeedc67dd93c236d4c26fa731ba3e07 (patch) | |
tree | 782e4ea4925b5edc79f6847d34c9ad650911fb2e /scripts/plymouth-update-initrd | |
parent | 6e65b02035f444a0d961ff91f202485e8302e927 (diff) |
use grubby to add a new boot entry
Diffstat (limited to 'scripts/plymouth-update-initrd')
-rwxr-xr-x | scripts/plymouth-update-initrd | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/plymouth-update-initrd b/scripts/plymouth-update-initrd index dc899b40..b8975604 100755 --- a/scripts/plymouth-update-initrd +++ b/scripts/plymouth-update-initrd @@ -46,3 +46,11 @@ TMPDIR="$(mktemp -d $PWD/initrd.XXXXXXXXXX)" ) rm -rf "$TMPDIR" + +CURRENT_KERNEL=$(/sbin/grubby --default-kernel) + +/sbin/grubby --title="Graphical Bootup" \ + --add-kernel="$CURRENT_KERNEL" \ + --copy-default \ + --args="vga=0x318 rhgb quiet" \ + --initrd="$NEW_INITRD" |