Skip to content

Commit ab03849

Browse files
committed
Cleanups for L2 branch
1 parent cd4c2d3 commit ab03849

File tree

6 files changed

+12
-56
lines changed

6 files changed

+12
-56
lines changed

base/mkosi.skeleton/etc/sysconfig/.gitkeep

Whitespace-only changes.

kernel/mkosi.build

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ else
5454
mkosi-chroot --chdir "/build/kernel-${KERNEL_VERSION}" make olddefconfig
5555
mkosi-chroot --chdir "/build/kernel-${KERNEL_VERSION}" make -j "$(nproc 2>/dev/null || echo 2)" bzImage ARCH=x86_64 CONFIG_EFI_STUB=y
5656

57-
echo "# kernel config:"
58-
mkosi-chroot --chdir "/build/kernel-${KERNEL_VERSION}" cat .config
59-
6057
# Cache result
6158
mkdir -p "$cache_dir"
6259
cp arch/x86_64/boot/bzImage "$cache_dir/"

l2/_op_rbuilder/mkosi.build

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ source scripts/build_rust_package.sh
2222

2323
# build op-rbuilder
2424

25-
if [ -f "l2/_op_rbuilder/mkosi.extra/usr/bin/op-rbuilder" ]; then
25+
if [ -f "$SRCDIR/l2/_op_rbuilder/mkosi.extra/usr/bin/op-rbuilder" ]; then
2626
echo "Using pre-built op-rbuilder binary"
2727
else
2828
build_rust_package \
@@ -34,7 +34,7 @@ fi
3434

3535
# build tdx-quote-provider
3636

37-
if [ -f "l2/_op_rbuilder/mkosi.extra/usr/bin/tdx-quote-provider" ]; then
37+
if [ -f "$SRCDIR/l2/_op_rbuilder/mkosi.extra/usr/bin/tdx-quote-provider" ]; then
3838
echo "Using pre-built tdx-quote-provider binary"
3939
else
4040
build_rust_package \
@@ -46,7 +46,7 @@ fi
4646

4747
# build rproxy
4848

49-
if [ -f "l2/_op_rbuilder/mkosi.extra/usr/bin/rproxy" ]; then
49+
if [ -f "$SRCDIR/l2/_op_rbuilder/mkosi.extra/usr/bin/rproxy" ]; then
5050
echo "Using pre-built rproxy binary"
5151
else
5252
make_git_package \
@@ -60,7 +60,7 @@ fi
6060

6161
# build node-healthchecker
6262

63-
if [ -f "l2/mkosi.extra/usr/bin/node-healthchecker" ]; then
63+
if [ -f "$SRCDIR/l2/_op_rbuilder/mkosi.extra/usr/bin/node-healthchecker" ]; then
6464
echo "Using pre-built node-healthchecker binary"
6565
else
6666
make_git_package \

l2/mkosi.postinst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,11 @@ mkosi-chroot chmod 0770 /vault/secrets
3131
mkosi-chroot chmod 0750 /etc/vault-agent
3232
mkosi-chroot chmod 0750 /etc/vault-agent/gomplate
3333
mkosi-chroot sh -c "chmod 0640 /etc/vault-agent/gomplate/*"
34+
35+
# Create /etc/sysconfig for vault-agent
36+
37+
mkosi-chroot mkdir -p /etc/sysconfig
38+
39+
# Limit root filesystem size to 4GB
40+
41+
mkosi-chroot sed -i '1a mount -o remount,size=4G /' /init
Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,5 @@
1-
# This file is part of systemd.
2-
#
3-
# systemd is free software; you can redistribute it and/or modify it under the
4-
# terms of the GNU Lesser General Public License as published by the Free
5-
# Software Foundation; either version 2.1 of the License, or (at your option)
6-
# any later version.
7-
#
8-
# Entries in this file show the compile time defaults. Local configuration
9-
# should be created by either modifying this file (or a copy of it placed in
10-
# /etc/ if the original file is shipped in /usr/), or by creating "drop-ins" in
11-
# the /etc/systemd/journald.conf.d/ directory. The latter is generally
12-
# recommended. Defaults can be restored by simply deleting the main
13-
# configuration file and all drop-ins located in /etc/.
14-
#
15-
# Use 'systemd-analyze cat-config systemd/journald.conf' to display the full config.
16-
#
17-
# See journald.conf(5) for details.
18-
191
[Journal]
20-
#Storage=auto
21-
#Compress=yes
22-
#Seal=yes
23-
#SplitMode=uid
24-
#SyncIntervalSec=5m
25-
#RateLimitIntervalSec=30s
26-
#RateLimitBurst=10000
27-
#SystemMaxUse=
28-
#SystemKeepFree=
292
SystemMaxFileSize=128M
303
SystemMaxFiles=2
31-
#RuntimeMaxUse=64K
32-
#RuntimeKeepFree=
334
RuntimeMaxFileSize=512K
345
RuntimeMaxFiles=2
35-
#MaxRetentionSec=0
36-
#MaxFileSec=1month
37-
#ForwardToSyslog=no
38-
#ForwardToKMsg=no
39-
#ForwardToConsole=no
40-
#ForwardToWall=yes
41-
#TTYPath=/dev/console
42-
#MaxLevelStore=debug
43-
#MaxLevelSyslog=debug
44-
#MaxLevelKMsg=notice
45-
#MaxLevelConsole=info
46-
#MaxLevelWall=emerg
47-
#MaxLevelSocket=debug
48-
#LineMax=48K
49-
#ReadKMsg=yes
50-
#Audit=yes

mkosi.profiles/gcp/mkosi.postinst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ if [ -f /etc/rsyslog.d/50-default.conf ]; then
3030
sed -i 's/^.*\/var\/log\/syslog.*$/# &/' /etc/rsyslog.d/50-default.conf
3131
fi
3232

33-
# Limit root filesystem size to 4GB
34-
35-
mkosi-chroot sed -i '1a mount -o remount,size=4G /' /init
36-
3733
# Remove automatically generated nvme data
3834

3935
rm -rf "$BUILDROOT/etc/nvme/hostid" "$BUILDROOT/etc/nvme/hostnqn"

0 commit comments

Comments
 (0)