Skip to content

Commit

Permalink
storage: pass configured swap partition in the cockpit_mount_points
Browse files Browse the repository at this point in the history
  • Loading branch information
KKoukiou committed Jan 24, 2024
1 parent 5a5f852 commit 50abb9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/storaged/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1772,6 +1772,8 @@ client.export_mount_point_mapping = () => {
const dir = client.strip_mount_point_prefix(utils.decode_filename(c[1].dir.v));
if (dir)
mpm[dir] = utils.decode_filename(b.PreferredDevice);
if (b.IdType === "swap")
mpm[b.IdType] = utils.decode_filename(b.PreferredDevice);
}
}
}
Expand Down

0 comments on commit 50abb9f

Please sign in to comment.