Hi, In CentOS6 I do: echo "savedefault --default=0 --once" | grub --batch My question is how do I do the same on CentOS7? Any ideas? Adrian -- Adri P. van Bloois Antonlaan 104 email: adrian at pa0rda.nl 3701 VG Zeist voice: +31-(0)-30-6912741 The Netherlands fax: NONE 52 05'15.77"N 5 4'44.56"E QTH-locater JO 22 OC "Elegance is not a dispensable luxury but a factor that decides between success and failure." Edsger W. Dijkstra
On Thu, 14 Jan 2016 19:11, adrian at ... wrote:> Hi, > In CentOS6 I do: > echo "savedefault --default=0 --once" | grub --batch > > My question is how do I do the same on CentOS7? > Any ideas? > > AdrianC7 uses grub2: look at the man-pages of these: grub2-set-default grub2-editenv grub2-reboot grub2-once Either grub2-set-default or direct via grub2-reboot with the needed params. - Yamaban.