blob: 9982c6d845da6a9167b70edbcdf3ca0be236f4f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# EFI Sync
Automatically install your kernel and initrd into the EFI when your Slackware system is updated.
```
Usage: ./efi-sync {install|watch}
- install: install the kernel and initrd into your EFI.
- watch: install on updates to your kernel
```
`efi-sync` watches your kernel path for updates. Once one is detected and the
package commands have completed, your EFI will be updated.
## Installation
Run the following are root to install this command:
```
cp efi-sync /usr/local/sbin/efi-sync
chown root:root /usr/local/sbin/efi-sync
chmod +x /usr/local/sbin/efi-sync
```
## Configuration
The command looks for configuration at /etc/efi-sync.conf.
Here is an example with the default values:
```
# The kernel path to watch.
KERNEL=/boot/vmlinuz
# The path to the EFI kernel.
EFI_KERNEL=/boot/efi/Slackware/vmlinuz
# The path for the initial ram disk to install.
INITRD=/boot/initrd.gz
# The path to the EFI's initial ram disk.
EFI_INITRD=/boot/efi/Slackware/initrd.gz
```
The initial ram disk (initrd) will be built automatically if
'/etc/mkinitrd.conf' exists.
|