All Projects → saveriomiroddi → Zfs Installer

saveriomiroddi / Zfs Installer

Licence: gpl-3.0
Shell script program that prepares ZFS on a system, and installs Linux

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Zfs Installer

zfs-installer
Shell script program that prepares ZFS on a system, and installs Linux
Stars: ✭ 137 (+55.68%)
Mutual labels:  debian, ubuntu, boot
Debootstick
Generate a bootable live image from any Debian/Ubuntu filesystem tree.
Stars: ✭ 48 (-45.45%)
Mutual labels:  ubuntu, debian, boot
Dockstarter
DockSTARTer helps you get started with home server apps running in Docker.
Stars: ✭ 1,265 (+1337.5%)
Mutual labels:  ubuntu, debian
Spocon
SpoCon - A Spotify Connect Client for Debian , Ubuntu and Raspberry Pi based on librespot-java
Stars: ✭ 51 (-42.05%)
Mutual labels:  ubuntu, debian
Hardware
The devices I have, what runs on them, their configurations, issues, solutions, and associated projects
Stars: ✭ 67 (-23.86%)
Mutual labels:  ubuntu, debian
Mortar
Framework to join Linux's physical security bricks.
Stars: ✭ 80 (-9.09%)
Mutual labels:  debian, boot
Ansible Mariadb Galera Cluster
Stars: ✭ 49 (-44.32%)
Mutual labels:  ubuntu, debian
Ansible Wordpress
Ansible role to set up (multiple) wordpress installations in Debian-like systems (using wp-cli)
Stars: ✭ 58 (-34.09%)
Mutual labels:  ubuntu, debian
Crouton
Chromium OS Universal Chroot Environment
Stars: ✭ 7,941 (+8923.86%)
Mutual labels:  ubuntu, debian
Debreate
A utility for creating Debian packages.
Stars: ✭ 70 (-20.45%)
Mutual labels:  ubuntu, debian
Ucaresystem
An all-in-one, one click system maintenance application for Ubuntu/Debian operating systems and derivatives
Stars: ✭ 69 (-21.59%)
Mutual labels:  ubuntu, debian
Vfs495
Validity VFS495 (138a:003f) drivers & utilities for Linux
Stars: ✭ 71 (-19.32%)
Mutual labels:  ubuntu, debian
Rocket.chat.ansible
Deploy Rocket.Chat with Ansible!
Stars: ✭ 80 (-9.09%)
Mutual labels:  ubuntu, debian
Certbot Install
Install the latest Certbot in a breeze. Great for Ubuntu Focal 20.04, and other Linux/Mac.
Stars: ✭ 50 (-43.18%)
Mutual labels:  ubuntu, debian
Rtinst
seedbox installation script for Ubuntu and Debian systems
Stars: ✭ 1,029 (+1069.32%)
Mutual labels:  ubuntu, debian
Linux face unlock
A face authentication system for Ubuntu that works while logging in and running "sudo" commands with a friendly CLI to operate it.
Stars: ✭ 55 (-37.5%)
Mutual labels:  ubuntu, debian
Linux Baytrail Flexx10
Install GNU/Linux on NextBook Flexx 10.1
Stars: ✭ 73 (-17.05%)
Mutual labels:  ubuntu, debian
Hostapd
Script for compiling, patching and packing hostapd from sources
Stars: ✭ 36 (-59.09%)
Mutual labels:  ubuntu, debian
Adoptopenjdk Deb Installer
Creates Ubuntu/Debian installer packages for AdoptOpenJDK builds using their API
Stars: ✭ 39 (-55.68%)
Mutual labels:  ubuntu, debian
Jdk switcher
A yet another Ubuntu/Debian-specific tool that makes switching between multiple JDK versions a one liner
Stars: ✭ 69 (-21.59%)
Mutual labels:  ubuntu, debian

Build Status

zfs-installer

ZFS installer is a shell script program that fully prepares ZFS on a system, and allows an effortless installation of several Debian-based operating systems using their standard installer (or debootstrap, or any custom script).

Requirements and functionality

The program currently supports:

  • Ubuntu Desktop 18.04.x/20.04 Live
  • Ubuntu Server 18.04.x/20.04 Live
  • Linux Mint 19.x, 20
  • Debian 10.x Live (desktop environment required)
  • ElementaryOS 5.1

The ZFS version installed is 0.8, which supports native encryption and trimming (among the other improvements over 0.7). The required repositories are automatically added to the destination system.

EFI boot is required (any modern (2011+) system will do); legacy boot is currently not supported.

All the ZFS RAID types are supported, with any arbitrary number of disks. An EFI partition is created on each disk, for redundancy purposes.

It's fairly easy to extend the program to support other Debian-based operating systems (e.g. older/newer Ubuntu's, etc.) - the project is (very) open to feature requests.

Comparison with Ubuntu built-in installer

As of 20.04, Canonical makes available an experimental ZFS installer on Ubuntu Desktop.

The advantages of this project over the Ubuntu installer are:

  1. it supports pools configuration;
  2. it allows specifying the RAID type;
  3. it allows customization of the disk partitions;
  4. it supports additional features (e.g. encryption);
  5. it supports many more operating systems;
  6. it supports unattended installations, via custom scripts;
  7. it installs a convenient trimming job for ZFS pools;
  8. it's easy to extend.

The disadvantages are:

  1. the Ubuntu installer has a more sophisticated filesystem layout - it separates base directories into different ZFS filesystems (this is planned to be implemented in the ZFS installer as well).

Instructions

Start the live CD of a supported Linux distribution, then open a terminal and execute:

GET https://git.io/JelI5 | sudo bash

then follow the instructions; halfway through the procedure, the GUI installer of the O/S will be launched.

Ubuntu Server

Ubuntu Server requires a slightly different execution procedure:

  • when the installer welcome screen shows up, tap Ctrl+Alt+F2,
  • then type curl -L https://git.io/JelI5 | sudo bash.

then follow the instructions.

Demo

Demo

Unsupported systems/Issues

The Ubuntu Server alternate (non-live) version is not supported, as it's based on the Busybox environment, which lacks several tools used in the installer (apt, rsync...).

The installer itself can run over SSH ([S]Ubiquity of course needs to be still run in the desktop environment, unless a custom script is provided), however, GNU Screen sessions may break, due to the virtual filesystems rebinding/chrooting. This is not an issue with the ZFS installer; it's a necessary step of the destination configuration.

Unattended installations

The program supports unattended installation, via environment variables. The program built-in help explains all the options:

$ wget -qO- https://git.io/JelI5 | bash /dev/stdin --help
Usage: install-zfs.sh [-h|--help]

Sets up and install a ZFS Ubuntu installation.

This script needs to be run with admin permissions, from a Live CD.

The procedure can be entirely automated via environment variables:

- ZFS_OS_INSTALLATION_SCRIPT : path of a script to execute instead of Ubiquity (see dedicated section below)
- ZFS_SELECTED_DISKS         : full path of the devices to create the pool on, comma-separated
- ZFS_ENCRYPT_RPOOL          : set 1 to encrypt the pool
- ZFS_PASSPHRASE
- ZFS_BPOOL_NAME
- ZFS_RPOOL_NAME
- ZFS_BPOOL_TWEAKS           : boot pool options to set on creation (defaults to `-o ashift=12`)
- ZFS_RPOOL_TWEAKS           : root pool options to set on creation (defaults to `-o ashift=12 -O acltype=posixacl -O compression=lz4 -O dnodesize=auto -O relatime=on -O xattr=sa -O normalization=formD`)
- ZFS_NO_INFO_MESSAGES       : set 1 to skip informational messages
- ZFS_SWAP_SIZE              : swap size (integer); set 0 for no swap
- ZFS_FREE_TAIL_SPACE        : leave free space at the end of each disk (integer), for example, for a swap partition

When installing the O/S via $ZFS_OS_INSTALLATION_SCRIPT, the root pool is mounted as `/mnt`; the requisites are:

1. the virtual filesystems must be mounted in `/mnt` (ie. `for vfs in proc sys dev; do mount --rbind /$vfs /mnt/$vfs; done`)
2. internet must be accessible while chrooting in `/mnt` (ie. `echo nameserver 8.8.8.8 >> /mnt/etc/resolv.conf`)
3. `/mnt` must be left in a dismountable state (e.g. no file locks, no swap etc.);

Other options may be supported, and displayed in the current commandline help, so users are invited to take a look.

Bug reporting/feature requests

This project is entirely oriented to community requests, as the target is to facilitate ZFS adoption.

Both for feature requests and bugs, open a GitHub issue.

For issues, also attach the content of the directory /tmp/zfs-installer. It doesn't contain any information aside what required for performing the installation; it can be trivially inspected, as it's a standard Bash debug output.

Help

For requests that are not strictly bugs (confirmed or suspected), feel free to post on the project discussion board. Differently from bugs/feature requests, replies are not guaranteed, however, even if there is no official reply, somebody else may still help.

The ZFS Discuss forum is also a good place where to post this type of requests.

Credits

The workflow of this program is based on the official ZFS wiki procedure, so, many thanks to the ZFS team.

As my other open source work and technical writing, this project is sponsored by Ticketsolve.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].