Permalink
Browse files

Add btrfs paramaters to bootloader conf

  • Loading branch information...
demmm committed Nov 25, 2018
1 parent 31668da commit 2840147b2eed327a6ce3d63ea4e87887d1d6989f
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/modules/bootldr/main.py
@@ -74,6 +74,9 @@ def create_conf(uuid, conf_path):
"root=/dev/mapper/{!s}".format(partition["luksMapperName"]),
"resume=/dev/mapper/{!s}".format(partition["luksMapperName"])
]
if partition["fs"] == "btrfs" in partition:
btrfs_params = "rootflags=subvol=@"
if cryptdevice_params:
kernel_params.extend(cryptdevice_params)
@@ -84,6 +87,8 @@ def create_conf(uuid, conf_path):
kernel_params.append("resume=UUID={!s}".format(swap))
if swap_luks:
kernel_params.append("resume=/dev/mapper/{!s}".format(swap_luks))
if btrfs_params:
kernel_params.append(btrfs_params)
lines = [
'## Please edit the paths and kernel parameters according to your system.\n',

0 comments on commit 2840147

Please sign in to comment.