summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.bu1
-rw-r--r--config.ign4
-rw-r--r--parts/zram.bu10
-rw-r--r--rpi4.bu3
-rw-r--r--rpi4.ign6
5 files changed, 22 insertions, 2 deletions
diff --git a/config.bu b/config.bu
index ef24b42..a1f8a4d 100644
--- a/config.bu
+++ b/config.bu
@@ -5,3 +5,4 @@ ignition:
merge:
- local: parts/users.bu
- local: parts/timezone.bu
+ - local: parts/zram.bu
diff --git a/config.ign b/config.ign
index 4c2876d..656329e 100644
--- a/config.ign
+++ b/config.ign
@@ -9,6 +9,10 @@
{
"compression": "",
"source": "data:;base64,dmFyaWFudDogZmNvcwp2ZXJzaW9uOiAxLjUuMApzdG9yYWdlOgogIGxpbmtzOgogICAgLSBwYXRoOiAvZXRjL2xvY2FsdGltZQogICAgICB0YXJnZXQ6IC4uL3Vzci9zaGFyZS96b25laW5mby9Bc2lhL1Rva3lvCg=="
+ },
+ {
+ "compression": "gzip",
+ "source": "data:;base64,H4sIAAAAAAAC/0yOwU70MAyE732Kkf7zNv2lhUOegxviEJJJa6l1UOwtAvHwqGWF8Gk08vfZe+qS1CNqbjbs7CZNI/6PD+M0mLeeZsYBqLLSjgBc8JZ8iQj0HOzDnFsJnz1tl5nKnrz1MTetYwk3408+QWBrhRHT4/V6L3JTp/rdfIzoKsqIr98G+IenRexYrjKfr4CaXlcaEkLhfp6fULhLJt7FF/hCFNZ0Wx1Gd9HZ/iifT+Jl+A4AAP//8YV92QABAAA="
}
]
},
diff --git a/parts/zram.bu b/parts/zram.bu
new file mode 100644
index 0000000..99f80e0
--- /dev/null
+++ b/parts/zram.bu
@@ -0,0 +1,10 @@
+variant: fcos
+version: 1.5.0
+storage:
+ files:
+ - path: /etc/systemd/zram-generator.conf.d/user.conf
+ mode: 0644
+ contents:
+ inline: |
+ # This config file enables a /dev/zram0 device with the default settings
+ [zram0]
diff --git a/rpi4.bu b/rpi4.bu
index 461c8aa..307fb98 100644
--- a/rpi4.bu
+++ b/rpi4.bu
@@ -5,5 +5,6 @@ ignition:
merge:
- local: parts/users.bu
- local: parts/timezone.bu
- - local: parts/rpi4-hostname.bu
+ - local: parts/zram.bu
- local: parts/rpi-cpugovernor.bu
+ - local: parts/rpi4-hostname.bu
diff --git a/rpi4.ign b/rpi4.ign
index 1872c45..0af903b 100644
--- a/rpi4.ign
+++ b/rpi4.ign
@@ -12,11 +12,15 @@
},
{
"compression": "gzip",
- "source": "data:;base64,H4sIAAAAAAAC/yyNTarDMAyE9z7FXODlB/y60G2EqzSCRAqWyPmLS2Y1zPDx3dyVLQlb8yi39FA3wjr9T0uJ9M4foQJsekiMAvzh4twJs2Sbd480PuX3AKe/hbC8an2G5pZi+aAjaoeaEC6tw7mWbwAAAP//HoeGtoMAAAA="
+ "source": "data:;base64,H4sIAAAAAAAC/0yOwU70MAyE732Kkf7zNv2lhUOegxviEJJJa6l1UOwtAvHwqGWF8Gk08vfZe+qS1CNqbjbs7CZNI/6PD+M0mLeeZsYBqLLSjgBc8JZ8iQj0HOzDnFsJnz1tl5nKnrz1MTetYwk3408+QWBrhRHT4/V6L3JTp/rdfIzoKsqIr98G+IenRexYrjKfr4CaXlcaEkLhfp6fULhLJt7FF/hCFNZ0Wx1Gd9HZ/iifT+Jl+A4AAP//8YV92QABAAA="
},
{
"compression": "gzip",
"source": "data:;base64,H4sIAAAAAAAC/3SQPWvDMBCGd/+KI0ugYKsduhg89CNDt9I0dCglKPLFEdh37t3ZjSE/vjgfTpcOAt0rPTo913uJniyHbWBNehSNTDncZffZbaKDGjZlngB0FE3HDUAK5BvMIbRdWnGPQiyZovQx4PECAJLf1JiDSXeJApMhmeZwOCcAnyuK9jWVz6hBYmuRqVgcX4Cn1xW0/IMC6vtIVXJll6eOV/x9aLFgQt2xTeEbNj7Sw9ZQFvtoxYA6nS32GJbmxQrXqTjdRHINl63wBke7reD3OjCNbt5ij/+RI6g7SAPMpxrDjmHGVGLjqZzBAQwRnA7qShw/ru40Xhfablw37tzSafB1pGp9Ge78j/ULqfm6vlp/eDIsH4ei6WqLaacomXmp0JLfAAAA//8D64rP3AEAAA=="
+ },
+ {
+ "compression": "gzip",
+ "source": "data:;base64,H4sIAAAAAAAC/yyNTarDMAyE9z7FXODlB/y60G2EqzSCRAqWyPmLS2Y1zPDx3dyVLQlb8yi39FA3wjr9T0uJ9M4foQJsekiMAvzh4twJs2Sbd480PuX3AKe/hbC8an2G5pZi+aAjaoeaEC6tw7mWbwAAAP//HoeGtoMAAAA="
}
]
},