diff options
-rw-r--r-- | README.md | 34 |
1 files changed, 32 insertions, 2 deletions
@@ -10,8 +10,17 @@ Usage: ./efi-sync {install|watch} ``` -`efi-sync` watches your kernel path for updates. Once one is detected and the -package commands have completed, your EFI will be updated. +`efi-sync watch` watches your kernel path for updates. Your EFI will be updated once +one is detected and the package commands have completed. + +For systems using an initial ram disk (initrd), `efi-sync watch` watches +/lib/modules and /lib/firmware for updates. Your system is assumed to use one +if '/etc/mkinitrd.conf' is present on start. Once changes are detected, the +initrd file is recreated using 'mkinitrd' and with the result installed into +the EFI. + +You will need to manually install the initrd if it was recreated outside of +this program. ## Installation @@ -22,6 +31,8 @@ chown root:root /usr/local/sbin/efi-sync chmod +x /usr/local/sbin/efi-sync ``` +The efi-sync will need to be integrated to start automatically on your system. + ## Configuration The command looks for configuration at /etc/efi-sync.conf. @@ -40,3 +51,22 @@ EFI_INITRD=/boot/efi/Slackware/initrd.gz If you want the initial ram disk updated, ensure /etc/mkinitrd.conf exists and is configured correctly. + +### Testing + +To test everything is working correctly: + +``` +slackpkg -batch=on -default_answer=y upgrade --reinstall kernel-huge + +# You should confirm the recent update with this output. +date -r /boot/efi/EFI/Slackware/vmlinuz +``` + +For initrd updates: +``` +slackpkg -batch=on -default_answer=y upgrade --reinstall kernel-firmware + +# You should confirm the recent update with this output. +date -r /boot/efi/EFI/Slackware/initrd.gz +``` |