Size: 465
Comment:
|
← Revision 3 as of 2016-04-13 23:06:16 ⇥
Size: 810
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
Describe Tech/LinuxBoot here. |
|
Line 5: | Line 3: |
* Grub 2 {{{ |
* Grub 2 - Setting default entry {{{ |
Line 22: | Line 20: |
=== Systemd === * Enable rc-local in OL7 {{{ cat >> /usr/lib/systemd/system/rc-local.service <<EOF [Install] WantedBy=multi-user.target EOF chmod +x /etc/rc.d/rc.local systemctl enable rc-local.service systemctl start rc-local.service systemctl status rc-local.service echo "systemctl restart network.service" >> /etc/rc.d/rc.local }}} |
Grub
- Grub 2 - Setting default entry
Open /etc/default/grub and ensure this line exists: GRUB_DEFAULT=saved Apply the change to grub.cfg by running: # grub2-mkconfig -o /boot/grub2/grub.cfg Now list all possible menu entries # grep ^menuentry /boot/grub2/grub.cfg | cut -d "'" -f2 Now set the desired default menu entry # grub2-set-default <menu entry title> Verify the default menu entry # grub2-editenv list
Systemd
- Enable rc-local in OL7
cat >> /usr/lib/systemd/system/rc-local.service <<EOF [Install] WantedBy=multi-user.target EOF chmod +x /etc/rc.d/rc.local systemctl enable rc-local.service systemctl start rc-local.service systemctl status rc-local.service echo "systemctl restart network.service" >> /etc/rc.d/rc.local