File tree Expand file tree Collapse file tree 6 files changed +12
-56
lines changed
base/mkosi.skeleton/etc/sysconfig Expand file tree Collapse file tree 6 files changed +12
-56
lines changed Original file line number Diff line number Diff line change 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 /"
Original file line number Diff line number Diff 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"
2727else
2828 build_rust_package \
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"
3939else
4040 build_rust_package \
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"
5151else
5252 make_git_package \
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"
6565else
6666 make_git_package \
Original file line number Diff line number Diff line change @@ -31,3 +31,11 @@ mkosi-chroot chmod 0770 /vault/secrets
3131mkosi-chroot chmod 0750 /etc/vault-agent
3232mkosi-chroot chmod 0750 /etc/vault-agent/gomplate
3333mkosi-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
Original file line number Diff line number Diff line change 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=
292SystemMaxFileSize=128M
303SystemMaxFiles=2
31- #RuntimeMaxUse=64K
32- #RuntimeKeepFree=
334RuntimeMaxFileSize=512K
345RuntimeMaxFiles=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
Original file line number Diff line number Diff 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
3131fi
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
3935rm -rf " $BUILDROOT /etc/nvme/hostid" " $BUILDROOT /etc/nvme/hostnqn"
You can’t perform that action at this time.
0 commit comments