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 25, 2024
1 parent 5a5f852 commit c079cf0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/storaged/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1770,8 +1770,13 @@ client.export_mount_point_mapping = () => {
for (const c of b.Configuration) {
if (c[0] == "fstab") {
const dir = client.strip_mount_point_prefix(utils.decode_filename(c[1].dir.v));
const device = utils.decode_filename(b.PreferredDevice);
const type = utils.decode_filename(c[1].type.v);

if (dir)
mpm[dir] = utils.decode_filename(b.PreferredDevice);
mpm[dir] = device;
if (type === "swap")
mpm[type] = device;
}
}
}
Expand Down

0 comments on commit c079cf0

Please sign in to comment.