]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Add a swap partition 28862/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 16 Aug 2023 14:17:44 +0000 (16:17 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 16 Aug 2023 19:26:07 +0000 (21:26 +0200)
systemd-oomd keeps complaining about the lack of swap partition, so
let's add one.

mkosi.presets/system/mkosi.extra/usr/lib/repart.d/15-swap.conf [new file with mode: 0644]

diff --git a/mkosi.presets/system/mkosi.extra/usr/lib/repart.d/15-swap.conf b/mkosi.presets/system/mkosi.extra/usr/lib/repart.d/15-swap.conf
new file mode 100644 (file)
index 0000000..3755278
--- /dev/null
@@ -0,0 +1,6 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Partition]
+Type=swap
+SizeMinBytes=100M
+SizeMaxBytes=100M