Skip to content

Commit

Permalink
home reuse: set the partitioning scheme explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
rvykydal committed Oct 3, 2024
1 parent 52e293d commit 02f4c7d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/apis/storage_partitioning.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ export const partitioningSetEncrypt = ({ encrypt, partitioning }) => {
export const partitioningSetHomeReuse = async ({ partitioning, scheme }) => {
const request = await getPartitioningRequest({ partitioning });

const configurationSchemeToDBus = {
BTRFS: cockpit.variant("i", 1),
LVM: cockpit.variant("i", 2),
LVM_THINP: cockpit.variant("i", 3),
PLAIN: cockpit.variant("i", 0),
};
request["partitioning-scheme"] = configurationSchemeToDBus?.[scheme];

request["reused-mount-points"] = cockpit.variant("as", ["/home"]);
if (scheme === "PLAIN") {
// "/" will be reallocated by autopartitioning
Expand Down

0 comments on commit 02f4c7d

Please sign in to comment.