Fix boot entry containing subvolume definition when no subvolumes were selected (#1424)

* Attempting fix by looking at the subvolume 'name', <FS_TREE> should indicate it's a root block and not a root subvolume
This commit is contained in:
Anton Hvornum 2022-08-14 11:56:24 +02:00 committed by GitHub
parent b1ab5ba372
commit 65212a46aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -866,7 +866,7 @@ class Installer:
options_entry = f'rw intel_pstate=no_hwp {" ".join(self.KERNEL_PARAMS)}\n'
for subvolume in root_partition.subvolumes:
if subvolume.root is True:
if subvolume.root is True and subvolume.name != '<FS_TREE>':
options_entry = f"rootflags=subvol={subvolume.name} " + options_entry
# Zswap should be disabled when using zram.