archiso-zfs/README.md

30 lines
1.5 KiB
Markdown
Raw Normal View History

2020-05-01 17:00:24 +02:00
### Why this
2020-05-01 17:37:33 +02:00
If you want to install Archlinux on ZFS, you need to deal with [ZFS licensing problem](https://wiki.archlinux.org/index.php/ZFS). The kernel module isn't included in default archiso, you need to [include it](https://wiki.archlinux.org/index.php/ZFS#Embed_the_archzfs_packages_into_an_archiso) in a custom archiso to be able to install ZFS.
2020-05-01 17:00:24 +02:00
I wrote an article about [archiso netbooting](https://eoli3n.github.io/archlinux/2020/04/25/recovery.html).
2020-05-01 17:37:33 +02:00
This project lets you include the zfs kernel module on any archiso without creating a custom one.
2020-05-01 17:00:24 +02:00
### Archzfs
2020-05-01 19:05:31 +02:00
The [Archzfs](https://github.com/archzfs/archzfs/wiki) unofficial user repository offers multiple ways to install the ZFS kernel module.
We need to compile zfs module using [DKMS method](https://wiki.archlinux.org/index.php/ZFS#DKMS), so it will work with the running kernel.
In order to build the module, DKMS needs the ``linux-headers`` package for the running kernel.
2020-05-01 17:00:24 +02:00
### How does it work
2020-05-01 19:05:31 +02:00
It uses [Arch Linux Archive](https://wiki.archlinux.org/index.php/Arch_Linux_Archive#How_to_restore_all_packages_to_a_specific_date) to install the ``linux-headers`` package required for DKMS.
2020-05-01 17:00:24 +02:00
### How to use
2020-05-01 16:19:33 +02:00
2020-05-01 19:05:31 +02:00
Boot on any archiso, and run
2020-05-01 16:19:33 +02:00
```
curl -s https://eoli3n.github.io/archzfs/init | bash
```
2020-05-01 17:28:19 +02:00
### Wow, that's slow...
2020-05-01 17:21:43 +02:00
2020-05-01 17:37:33 +02:00
Yes, the Arch Linux Archive have a limited brandwidth, but at least, it is automated.
A better solution would be to store archives on the Archzfs repo.
2020-05-01 19:05:31 +02:00
More details here: https://github.com/archzfs/archzfs/issues/337