Skip to content

Commit 53432ae

Browse files
authored
Merge pull request #4 from bwbuhse/main
Update btrfs example configs
2 parents ee84211 + 78221f1 commit 53432ae

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

config_subvol.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,17 @@ modules = [
1010
"ugrd.kmod.novideo",
1111
"ugrd.kmod.nosound",
1212
"ugrd.crypto.cryptsetup",
13+
"ugrd.fs.btrfs",
1314
]
1415

1516
# Optionally supply a kernel version
1617
#kernel_version = "6.1.53-gentoo-dist"
1718
kmod_autodetect_lsmod = true
1819

20+
root_subvol="gentoo"
21+
1922
[mounts.root]
2023
type = "btrfs"
21-
options = ["subvol=gentoo"]
2224

2325
[mounts.root.source]
2426
label = "rootfs"

config_subvol_selector.toml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This config will decrypt the colume fdf442da-0574-4531-98c7-55227a041f1d, mapping it to "/dev/mapper/root"
2+
# It will pull all current kernel modules from the active kernel version
3+
# The kmod.novideo and kmod.nosound modules are pulled to help minmize pulled modules
4+
5+
6+
modules = [
7+
"ugrd.base.base",
8+
"ugrd.kmod.kmod",
9+
"ugrd.kmod.novideo",
10+
"ugrd.kmod.nosound",
11+
"ugrd.crypto.cryptsetup",
12+
"ugrd.fs.btrfs",
13+
]
14+
15+
# Optionally supply a kernel version
16+
#kernel_version = "6.1.53-gentoo-dist"
17+
kmod_autodetect_lsmod = true
18+
19+
# Allows you to dynamically select root subvol at UGRD runtime
20+
subvol_selector = true
21+
22+
[mounts.root]
23+
type = "btrfs"
24+
25+
[mounts.root.source]
26+
label = "rootfs"
27+
28+
# The UUID of the encrypted volume, mounted at /dev/mapper/root
29+
[cryptsetup.root]
30+
uuid = "fdf442da-0574-4531-98c7-55227a041f1d"

0 commit comments

Comments
 (0)