Kategorien
Allgemein

Install Ubuntu 20.04 with ZFS root from Debian Live CD

Let me warn you: You likely don’t want to do this but in case you do, for example because you can only boot a Debian live CD but want to install Ubuntu, be my guest (no guarantees, no warranty, no liability yada yada):

  1. boot into debian live CD image, install gparted, shrink and move ubuntu partition to the end
  2. follow debian guide to prepare the live cd environment:
  3. Before you got to 2, disk partitioning, jump to the ubuntu guide
  4. now first change the package sources:
    1. nano /etc/apt/sources.list
    2. replace sources with

deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu focal-security main restricted universe multiverse

    1. we have to add the public key, so run apt-update first
    2. in the current case, missing public key is 871920D1991BC93C
    3. run

gpg --keyserver keyserver.ubuntu.com --recv-key 871920D1991BC93C && gpg --export --armor 871920D1991BC93C | sudo apt-key add -

apt update

    1. then install from ubuntu guide:

apt install --yes debootstrap gdisk zfs-initramfs

  1. now follow ubuntu guide with partitioning
  2. Beware:
    when creating rpool, include -o feature@log_spacemap=disabled – otherwise boot might fail
    * in step 8, create /boot/efi manually