Skip to content

Scripts to install an Ubuntu system with encrypted ZFS on root

Notifications You must be signed in to change notification settings

nZac/zfs-on-root

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ubuntu Root on ZFS

Resources

Live Env Steps

  1. Mount USB media
  2. Touchpad: no click on touch
  3. Connect to WiFi
  4. sudo sh live-env-prep.sh

Usage Steps

  • sudo python3 zor.py status

  • sudo python3 zor.py disk-wipe

  • sudo python3 zor.py disk-partition

  • sudo python3 zor.py disk-format

  • sudo python3 zor.py efi

  • sudo python3 zor.py zpool

  • sudo python3 zor.py zfs

  • sudo python3 zor.py install-os

  • sudo python3 zor.py status

  • sudo python3 zor.py unmount

  • sudo python3 zor.py recover

  • sudo python3 zor.py chroot

  • sudo python3 zor.py unmount

ToDo

  • Configure swap
    • should be encrypted
    • /etc/sysctl.conf: vm.swappiness=1 vm.vfs_cache_pressure=50
  • Disable log compression
  • Set ZFS trim

Commands

CTRL / ALT swap:

$ setxkbmap -option "ctrl:swap_lalt_lctl"

Zero out the drive:

$ sudo dd bs=10M count=1024 if=/dev/zero of=/dev/disk/by-id/nvme-Samsung_SSD_960_PRO_1TB_S3EVNX0J802831N conv=fdatasync status=progress

Find processes that prevent unmount:

$ sudo fuser -vm /mnt/sampro

About

Scripts to install an Ubuntu system with encrypted ZFS on root

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 70.0%
  • Shell 30.0%