]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
use grubby to add a new boot entry
authorRay Strode <rstrode@redhat.com>
Fri, 8 Jun 2007 19:44:54 +0000 (15:44 -0400)
committerRay Strode <rstrode@redhat.com>
Fri, 8 Jun 2007 19:44:54 +0000 (15:44 -0400)
scripts/plymouth-update-initrd

index dc899b408e1fd2e923201336e152aea284ce4d6f..b8975604145a601f0ca7b59e685a9d5f3196f93a 100755 (executable)
@@ -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"