Page 1 sur 1
[EFI boot] kernel update (résolu)
Publié : mer. 24 mai 2017, 11:10
par trapangle
Bonjour,
Mon premier kernel update n'a pas fonctionné comme je l'espérais. La première erreur que j'ai eue après un reboot c'était :
boot-efi.mount mount process exited, code=exited status=32
Failed to mount /boot/efi.
Je suis allé voir en arch-chroot, les fichiers dans /boot étaient plus récents que ceux dans /boot/efi/EFI/arch, donc j'ai copié les nouveaux fichiers dans /boot/efi/EFI/arch.
Depuis j'ai une erreur
.
J'ai refait la commande
efibootmgr -c -g -d /dev/sda -p 1 -L "Arch Linux" -l "\EFI\arch\vmlinuz-linux.efi" -u "root=UUID=da65... rootfstype=ext4 initrd=\EFI\arch\initramfs-linux.img rw add_efi_memmap"
Le retour de cette commande a l'air bon, sauf un warning parce que 2 lignes ont le même label "Arch Linux".
Mais au reboot j'ai toujours la même erreur
.
Dans la sortie de
blkid
je vois bien le da65... dans le champ UUID de /dev/sda2 (mon /)
Dans ce post j'ai raccourci l'UUID à "da65..." mais il est plus long que ça (32 caractères hexadécimaux)
Une idée ?
Re: [EFI boot] kernel update
Publié : mer. 24 mai 2017, 13:58
par trapangle
J'arrive à lancer le système, le problème a été réglé avec :
Code : Tout sélectionner
mkinitcpio -p linux
mv /boot/initramfs* /boot/efi/EFI/arch/
mv /boot/efi/EFI/arch/vmlinuz-linux /boot/efi/EFI/arch/vmlinuz-linux.efi
Reste à faire en sorte que le prochain kernel update se passe mieux que cette fois-ci. J'ai pourtant suivi
https://wiki.archlinux.org/index.php/EF ... ng_systemd.
/etc/systemd/system/efistub-update.path :
Code : Tout sélectionner
[Unit]
Description=Copy kernel in ESP
[Path]
PathChanged=/boot/vmlinuz-linux
PathChanged=/boot/initramfs-linux.img
PathChanged=/boot/initramfs-linux-fallback.img
[Install]
WantedBy=multi-user.target
/etc/systemd/system/efistub-update.service :
Code : Tout sélectionner
[Unit]
Description=Copy kernel in ESP
[Service]
Type=oneshot
ExecStart=/usr/bin/cp -f /boot/vmlinuz-linux /boot/efi/EFI/arch/vmlinuz-linux.efi
ExecStart=/usr/bin/cp -f /boot/initramfs-linux.img /boot/initramfs-linux-fallback.img /boot/efi/EFI/arch/
Par contre, ceci ne m'a pas l'air bon :
Code : Tout sélectionner
[alain@earth system]$ systemctl status efistub-update
● efistub-update.service - Copy kernel in ESP
Loaded: loaded (/etc/systemd/system/efistub-update.service; static; vendor preset: disabled)
Active: inactive (dead)
[alain@earth system]$ sudo systemctl enable efistub-update
[sudo] Mot de passe de alain :
The unit files have no installation config (WantedBy, RequiredBy, Also, Alias
settings in the [Install] section, and DefaultInstance for template units).
This means they are not meant to be enabled using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
.wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, ...).
4) In case of template units, the unit is meant to be enabled with some
instance name specified.
Je continue à chercher...
Re: [EFI boot] kernel update
Publié : mer. 24 mai 2017, 17:13
par benjarobin
Il faut regarder le status de efistub-update.path : systemctl status efistub-update.path
Re: [EFI boot] kernel update
Publié : mer. 24 mai 2017, 17:54
par trapangle
Merci, il était désactivé, je l'ai activé :
Code : Tout sélectionner
[alain@earth ~]$ systemctl status efistub-update.path
● efistub-update.path - Copy kernel in ESP
Loaded: loaded (/etc/systemd/system/efistub-update.path; enabled; vendor preset: disabled)
Active: inactive (dead)
C'est possible de tester si ça fonctionne sans attendre le prochain update du kernel ?
Re: [EFI boot] kernel update
Publié : mer. 24 mai 2017, 18:14
par benjarobin
Oui tu supprimes les fichiers de l'EFI, et puis tu lances tout simplement : pacman -S linux
Re: [EFI boot] kernel update
Publié : mer. 24 mai 2017, 18:44
par trapangle
Ça ne marche pas :
Code : Tout sélectionner
[alain@earth ~]$ sudo pacman -S linux
avertissement : linux-4.11.2-1 est à jour -- réinstalle
résolution des dépendances...
recherche des conflits entre paquets...
Paquets (1) linux-4.11.2-1
Taille totale installée : 80,49 MiB
Taille de mise à jour nette : 0,00 MiB
:: Procéder à l’installation ? [O/n]
(1/1) vérification des clés dans le trousseau [######################] 100%
(1/1) vérification de l’intégrité des paquets [######################] 100%
(1/1) chargement des fichiers des paquets [######################] 100%
(1/1) analyse des conflits entre fichiers [######################] 100%
(1/1) vérification de l’espace disque disponible [######################] 100%
:: Traitement des changements du paquet...
(1/1) réinstallation linux [######################] 100%
>>> Updating module dependencies. Please wait ...
:: Exécution des crochets de post-transaction...
(1/2) Updating linux initcpios
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 4.11.2-1-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 4.11.2-1-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: aic94xx
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
(2/2) Arming ConditionNeedsUpdate...
[alain@earth ~]$ cd -
/boot/efi/EFI/arch
[alain@earth arch]$ ls -l
total 0
[alain@earth arch]$ ls -l /boot
total 33144
drwxr-xr-x 3 root root 4096 1 jan 1970 efi
-rw-r--r-- 1 root root 23105654 24 mai 18:21 initramfs-linux-fallback.img
-rw-r--r-- 1 root root 5778793 24 mai 18:21 initramfs-linux.img
-rw-r--r-- 1 root root 5044496 22 mai 06:55 vmlinuz-linux
Tentative de voir ce qui se passe dans systemd :
Code : Tout sélectionner
[alain@earth arch]$ journalctl | grep efistub
mai 05 23:48:56 earth sudo[19349]: alain : TTY=pts/0 ; PWD=/home/alain ; USER=root ; COMMAND=/usr/bin/vi /etc/systemd/system/efistub-update.path
mai 05 23:50:27 earth sudo[19408]: alain : TTY=pts/0 ; PWD=/home/alain ; USER=root ; COMMAND=/usr/bin/vi /etc/systemd/system/efistub-update.service
mai 24 13:54:57 earth polkitd[3155]: Operator of unix-session:c1 successfully authenticated as unix-user:alain to gain TEMPORARY authorization for action org.freedesktop.systemd1.manage-unit-files for system-bus-name::1.188 [systemctl enable efistub-update] (owned by unix-user:alain)
mai 24 13:55:14 earth polkitd[3155]: Operator of unix-session:c1 FAILED to authenticate to gain authorization for action org.freedesktop.systemd1.reload-daemon for system-bus-name::1.188 [systemctl enable efistub-update] (owned by unix-user:alain)
mai 24 13:55:24 earth sudo[5194]: alain : TTY=pts/0 ; PWD=/etc/systemd/system ; USER=root ; COMMAND=/usr/bin/systemctl enable efistub-update
mai 24 17:19:32 earth sudo[14649]: alain : TTY=pts/1 ; PWD=/home/alain ; USER=root ; COMMAND=/usr/bin/systemctl enable efistub-update.path
Re: [EFI boot] kernel update
Publié : mer. 24 mai 2017, 19:09
par trapangle
OK, c'est bon, ça marche maintenant.
Le service efistub était activé mais pas démarré.
Merci benjarobin !