mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
enable zram by default (#2470)
This commit is contained in:
@@ -80,7 +80,7 @@ impl Database {
|
|||||||
.map(|x| format!("{x:X}"))
|
.map(|x| format!("{x:X}"))
|
||||||
.join(":"),
|
.join(":"),
|
||||||
system_start_time: Utc::now().to_rfc3339(),
|
system_start_time: Utc::now().to_rfc3339(),
|
||||||
zram: false,
|
zram: true,
|
||||||
},
|
},
|
||||||
package_data: AllPackageData::default(),
|
package_data: AllPackageData::default(),
|
||||||
ui: serde_json::from_str(include_str!("../../../frontend/patchdb-ui-seed.json"))
|
ui: serde_json::from_str(include_str!("../../../frontend/patchdb-ui-seed.json"))
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ impl VersionT for Version {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
db.mutate(|v| {
|
db.mutate(|v| {
|
||||||
|
v.as_server_info_mut().as_zram_mut().ser(&true)?;
|
||||||
for (_, pde) in v.as_package_data_mut().as_entries_mut()? {
|
for (_, pde) in v.as_package_data_mut().as_entries_mut()? {
|
||||||
for (dependency, info) in pde
|
for (dependency, info) in pde
|
||||||
.as_installed_mut()
|
.as_installed_mut()
|
||||||
|
|||||||
Reference in New Issue
Block a user