Skip to content

Commit a90b19b

Browse files
committed
Debian: Update initrd example
This now uses a /BOOT instead of /ROOT. I also changed rpool/ROOT/debian-1 to rpool/ROOT/debian. These changes make it match the Root on ZFS systems. I have no actually tested this. Closes #215 Signed-off-by: Richard Laager <[email protected]>
1 parent 567524c commit a90b19b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/Getting Started/Debian/Debian GNU Linux initrd documentation.rst

+10-10
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ Enter the snapshot for the root= parameter like in this example:
5959

6060
::
6161

62-
linux /ROOT/debian-1@/boot/vmlinuz-3.2.0-4-amd64 root=ZFS=rpool/ROOT/debian-1@some_snapshot ro boot=zfs $bootfs quiet
62+
linux /BOOT/debian@/boot/vmlinuz-5.10.0-9-amd64 root=ZFS=rpool/ROOT/debian@some_snapshot ro
6363

64-
This will clone the snapshot rpool/ROOT/debian-1@some_snapshot into the
65-
filesystem rpool/ROOT/debian-1_some_snapshot and use that as root
64+
This will clone the snapshot rpool/ROOT/debian@some_snapshot into the
65+
filesystem rpool/ROOT/debian_some_snapshot and use that as root
6666
filesystem. The original filesystem and snapshot is left alone in this
6767
case.
6868

6969
**BEWARE** that it will first destroy, blindingly, the
70-
rpool/ROOT/debian-1_some_snapshot filesystem before trying to clone the
70+
rpool/ROOT/debian_some_snapshot filesystem before trying to clone the
7171
snapshot into it again. So if you've booted from the same snapshot
7272
previously and done some changes in that root filesystem, they will be
7373
undone by the destruction of the filesystem.
@@ -83,7 +83,7 @@ Select snapshot dynamically
8383
---------------------------
8484

8585
From version 0.6.4-1-3 it is now also possible to specify a NULL
86-
snapshot name (such as root=rpool/ROOT/debian-1@) and if so, the initrd
86+
snapshot name (such as root=rpool/ROOT/debian@) and if so, the initrd
8787
script will discover all snapshots below that filesystem (sans the at),
8888
and output a list of snapshot for the user to choose from.
8989

@@ -108,18 +108,18 @@ Example:
108108

109109
::
110110

111-
rpool/ROOT/debian-1@some_snapshot
112-
rpool/ROOT/debian-1/usr@some_snapshot
111+
rpool/ROOT/debian@some_snapshot
112+
rpool/ROOT/debian/usr@some_snapshot
113113

114114
These will create the following filesystems respectively (if not doing a
115115
rollback):
116116

117117
::
118118

119-
rpool/ROOT/debian-1_some_snapshot
120-
rpool/ROOT/debian-1/usr_some_snapshot
119+
rpool/ROOT/debian_some_snapshot
120+
rpool/ROOT/debian/usr_some_snapshot
121121

122122
The initrd code will use the mountpoint option (if any) in the original
123123
(without the snapshot part) dataset to find *where* it should mount the
124124
dataset. Or it will use the name of the dataset below the root
125-
filesystem (rpool/ROOT/debian-1 in this example) for the mount point.
125+
filesystem (rpool/ROOT/debian in this example) for the mount point.

0 commit comments

Comments
 (0)