Apt: use kernel/headers meta packages
- `generic` packages exist since bullseye - older versions have `amd64` meta package
This commit is contained in:
@@ -184,7 +184,7 @@ Step 2: Disk Formatting
|
||||
mdadm --zero-superblock --force $DISK
|
||||
# For an array using a partition:
|
||||
mdadm --zero-superblock --force ${DISK}-part2
|
||||
|
||||
|
||||
If the disk was previously used with zfs::
|
||||
|
||||
wipefs -a $DISK
|
||||
@@ -623,7 +623,7 @@ Step 4: System Configuration
|
||||
|
||||
#. Install ZFS in the chroot environment for the new system::
|
||||
|
||||
apt install --yes dpkg-dev linux-headers-amd64 linux-image-amd64
|
||||
apt install --yes dpkg-dev linux-headers-generic linux-image-generic
|
||||
|
||||
apt install --yes zfs-initramfs
|
||||
|
||||
|
||||
@@ -146,8 +146,7 @@ Step 1: Prepare The Install Environment
|
||||
|
||||
#. Install ZFS in the Live CD environment::
|
||||
|
||||
apt install --yes debootstrap gdisk dkms dpkg-dev \
|
||||
linux-headers-$(uname -r)
|
||||
apt install --yes debootstrap gdisk dkms dpkg-dev linux-headers-amd64
|
||||
|
||||
apt install --yes -t buster-backports --no-install-recommends zfs-dkms
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@ connect with ``ssh user@IP``.
|
||||
|
||||
::
|
||||
|
||||
# apt install --yes debootstrap gdisk dkms dpkg-dev linux-headers-$(uname -r)
|
||||
# apt install --yes debootstrap gdisk dkms dpkg-dev linux-headers-amd64
|
||||
# apt install --yes -t stretch-backports zfs-dkms
|
||||
# modprobe zfs
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ Add the backports repository::
|
||||
Install the packages::
|
||||
|
||||
apt update
|
||||
apt install dpkg-dev linux-headers-$(uname -r) linux-image-amd64
|
||||
apt install dpkg-dev linux-headers-generic linux-image-generic
|
||||
apt install zfs-dkms zfsutils-linux
|
||||
|
||||
**Caution**: If you are in a poorly configured environment (e.g. certain VM or container consoles), when apt attempts to pop up a message on first install, it may fail to notice a real console is unavailable, and instead appear to hang indefinitely. To circumvent this, you can prefix the `apt install` commands with ``DEBIAN_FRONTEND=noninteractive``, like this::
|
||||
|
||||
Reference in New Issue
Block a user