Bonjour,
Mon ordinateur boot avec UEFI, et je suis obligé d'appuyer sur F9 pour booter Fedora.
# efibootmgr
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 3001,3004,2001,2002,2003
Boot0001* Windows Boot Manager
Boot0002* Notebook Hard Drive
Boot0004* Fedora
Boot001E* EFI HDD Device - MTFDDAT128MAM-1J2
Boot0022* Notebook Hard Drive
Boot2001* USB Drive (UEFI)
Boot3001* EFI Internal Hard Disk or Solid State Disk
Boot3004* EFI Internal Hard Disk or Solid State Disk
Changer l'ordre de boot ne marche pas, par contre prévoir de lancer Fedora au prochain démarrage marche bien
# efibootmgr -o 4,3 # ne marche pas
# efibootmgr -n 4 # marche très bien
Donc je voudrais simplement lancer cette commande à chaque démarrage. J'ai trouvé qu'il fallait créer un script avec une structure prédéfinie dans
/etc/init.d. Voilà le script :
# cat /etc/init.d/boot_fedora_first
#!/bin/bash
# chkconfig: 2345 20 80
# description: boot fedora first :
# set fedora as next boot entry via command efibootmgr
# specifies '--quiet --bootnext 4'
# 4 is fedora boot entry
# Source function library.
. /etc/init.d/functions
start() {
efibootmgr --quiet --bootnext 4
}
stop() {
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
status)
;;
*)
echo "Usage: $0 {start|stop|status|restart}"
esac
exit 0
# chkconfig --add boot_fedora_first
# chkconfig --level 2345 boot_fedora_first on
# chkconfig
Note: This output shows SysV services only and does not include native
systemd services. SysV configuration data might be overridden by native
systemd configuration.
If you want to list systemd services use 'systemctl list-unit-files'.
To see services enabled on particular target use
'systemctl list-dependencies [target]'.
boot_fedora_first 0:off 1:off 2:on 3:on 4:on 5:on 6:off
jexec 0:off 1:on 2:on 3:on 4:on 5:on 6:off
livesys 0:off 1:off 2:off 3:on 4:on 5:on 6:off
livesys-late 0:off 1:off 2:off 3:on 4:on 5:on 6:off
netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off
network 0:off 1:off 2:off 3:off 4:off 5:off 6:off
Mais ça ne marche pas, que faire ?