Ubuntu/Debian: Fix bpool importing
We need the bpool to end up in zpool.cache. For some reason, this is not happening normally on Ubuntu 20.04. I added the same steps to Debian too, for good measure. This was discussed in #120. Signed-off-by: Richard Laager <rlaager@wiktel.com>
This commit is contained in:
@@ -226,6 +226,7 @@ Step 2: Disk Formatting
|
|||||||
#. Create the boot pool::
|
#. Create the boot pool::
|
||||||
|
|
||||||
zpool create \
|
zpool create \
|
||||||
|
-o cachefile=/etc/zfs/zpool.cache \
|
||||||
-o ashift=12 -d \
|
-o ashift=12 -d \
|
||||||
-o feature@async_destroy=enabled \
|
-o feature@async_destroy=enabled \
|
||||||
-o feature@bookmarks=enabled \
|
-o feature@bookmarks=enabled \
|
||||||
@@ -528,6 +529,11 @@ Step 3: System Installation
|
|||||||
An alternative to using ``debootstrap`` is to copy the entirety of a
|
An alternative to using ``debootstrap`` is to copy the entirety of a
|
||||||
working system into the new ZFS root.
|
working system into the new ZFS root.
|
||||||
|
|
||||||
|
#. Copy in zpool.cache::
|
||||||
|
|
||||||
|
mkdir /mnt/etc/zfs
|
||||||
|
cp /etc/zfs/zpool.cache /mnt/etc/zfs/
|
||||||
|
|
||||||
Step 4: System Configuration
|
Step 4: System Configuration
|
||||||
----------------------------
|
----------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -383,6 +383,7 @@ Step 2: Disk Formatting
|
|||||||
#. Create the boot pool::
|
#. Create the boot pool::
|
||||||
|
|
||||||
zpool create \
|
zpool create \
|
||||||
|
-o cachefile=/etc/zfs/zpool.cache \
|
||||||
-o ashift=12 -o autotrim=on -d \
|
-o ashift=12 -o autotrim=on -d \
|
||||||
-o feature@async_destroy=enabled \
|
-o feature@async_destroy=enabled \
|
||||||
-o feature@bookmarks=enabled \
|
-o feature@bookmarks=enabled \
|
||||||
@@ -655,6 +656,11 @@ Step 3: System Installation
|
|||||||
An alternative to using ``debootstrap`` is to copy the entirety of a
|
An alternative to using ``debootstrap`` is to copy the entirety of a
|
||||||
working system into the new ZFS root.
|
working system into the new ZFS root.
|
||||||
|
|
||||||
|
#. Copy in zpool.cache::
|
||||||
|
|
||||||
|
mkdir /mnt/etc/zfs
|
||||||
|
cp /etc/zfs/zpool.cache /mnt/etc/zfs/
|
||||||
|
|
||||||
Step 4: System Configuration
|
Step 4: System Configuration
|
||||||
----------------------------
|
----------------------------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user