Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 7 additions & 29 deletions docs/Getting Started/Debian/Debian Trixie Root on ZFS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ Step 1: Prepare The Install Environment

sudo -i

#. Install missing prerequisites in zfsutils-linux package (`bug 1091428 <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1091428>`_)::

apt install --yes linux-headers-generic

#. Install ZFS in the Live CD environment::

apt install --yes debootstrap gdisk zfsutils-linux
Expand Down Expand Up @@ -449,8 +453,6 @@ Step 3: System Installation

zfs create -o com.sun:auto-snapshot=false rpool/var/cache
zfs create -o com.sun:auto-snapshot=false rpool/var/lib/nfs
zfs create -o com.sun:auto-snapshot=false rpool/var/tmp
chmod 1777 /mnt/var/tmp

If you use /srv on this system::

Expand Down Expand Up @@ -487,22 +489,8 @@ Step 3: System Installation

zfs create rpool/var/www

A tmpfs is recommended later, but if you want a separate dataset for
``/tmp``::

zfs create -o com.sun:auto-snapshot=false rpool/tmp
chmod 1777 /mnt/tmp

The primary goal of this dataset layout is to separate the OS from user
data. This allows the root filesystem to be rolled back without rolling
back user data.

If you do nothing extra, ``/tmp`` will be stored as part of the root
filesystem. Alternatively, you can create a separate dataset for ``/tmp``,
as shown above. This keeps the ``/tmp`` data out of snapshots of your root
filesystem. It also allows you to set a quota on ``rpool/tmp``, if you want
to limit the maximum space used. Otherwise, you can use a tmpfs (RAM
filesystem) later.
**Note:** As tmpfs is used by default by Debian Trixie, all ``/tmp`` related operations
in previous versions are now obsolete.

**Note:** If you separate a directory required for booting (e.g. ``/etc``)
into its own dataset, you must add it to
Expand Down Expand Up @@ -723,17 +711,6 @@ Step 4: System Configuration
``-d DISK-part3`` (replace ``DISK`` with the correct device path) to the
``zpool import`` command.

#. Optional (but recommended): Mount a tmpfs to ``/tmp``

If you chose to create a ``/tmp`` dataset above, skip this step, as they
are mutually exclusive choices. Otherwise, you can put ``/tmp`` on a
tmpfs (RAM filesystem) by enabling the ``tmp.mount`` unit.

::

cp /usr/share/systemd/tmp.mount /etc/systemd/system/
systemctl enable tmp.mount

#. Optional: Install SSH::

apt install --yes openssh-server
Expand Down Expand Up @@ -1024,6 +1001,7 @@ Step 8: Full Software Installation

#. Install a regular set of software::

apt install tasksel
tasksel --new-install

**Note:** This will check "Debian desktop environment" and "print server"
Expand Down