From 282b8d80fd84bc913abbd76ff0311da2e3e74fd8 Mon Sep 17 00:00:00 2001 From: Black-Hole Date: Thu, 4 Jan 2024 16:52:38 +0800 Subject: [PATCH] chore(rootfs): add system.conf (#48) 1. set stop timeout to 9s 2. disable dump core Signed-off-by: Black-Hole1 --- .../board/ovm/systemd/rootfs-overlay/etc/systemd/system.conf | 3 +++ buildroot_external/configs/rootfs_amd64_defconfig | 2 +- buildroot_external/configs/rootfs_arm64_defconfig | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 buildroot_external/board/ovm/systemd/rootfs-overlay/etc/systemd/system.conf diff --git a/buildroot_external/board/ovm/systemd/rootfs-overlay/etc/systemd/system.conf b/buildroot_external/board/ovm/systemd/rootfs-overlay/etc/systemd/system.conf new file mode 100644 index 0000000..9668de0 --- /dev/null +++ b/buildroot_external/board/ovm/systemd/rootfs-overlay/etc/systemd/system.conf @@ -0,0 +1,3 @@ +[Manager] +DefaultTimeoutStopSec=9s +DumpCore=no \ No newline at end of file diff --git a/buildroot_external/configs/rootfs_amd64_defconfig b/buildroot_external/configs/rootfs_amd64_defconfig index 92474c5..7119c49 100644 --- a/buildroot_external/configs/rootfs_amd64_defconfig +++ b/buildroot_external/configs/rootfs_amd64_defconfig @@ -13,7 +13,7 @@ BR2_TARGET_GENERIC_ROOT_PASSWD="1" BR2_SYSTEM_BIN_SH_BASH=y BR2_SYSTEM_ENABLE_NLS=y BR2_TARGET_LOCALTIME="PRC" -BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_OVM_PATH)/board/ovm/chrony/rootfs-overlay/ $(BR2_EXTERNAL_OVM_PATH)/board/ovm/ssh/rootfs-overlay/ $(BR2_EXTERNAL_OVM_PATH)/board/ovm/wsl/rootfs-overlay/ $(BR2_EXTERNAL_OVM_PATH)/board/ovm/ready/rootfs-overlay/ $(BR2_EXTERNAL_OVM_PATH)/board/ovm/net/rootfs-overlay/" +BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_OVM_PATH)/board/ovm/chrony/rootfs-overlay/ $(BR2_EXTERNAL_OVM_PATH)/board/ovm/ssh/rootfs-overlay/ $(BR2_EXTERNAL_OVM_PATH)/board/ovm/wsl/rootfs-overlay/ $(BR2_EXTERNAL_OVM_PATH)/board/ovm/ready/rootfs-overlay/ $(BR2_EXTERNAL_OVM_PATH)/board/ovm/net/rootfs-overlay/ $(BR2_EXTERNAL_OVM_PATH)/board/ovm/systemd/rootfs-overlay/" BR2_PACKAGE_BUSYBOX_INDIVIDUAL_BINARIES=y BR2_PACKAGE_BUSYBOX_WATCHDOG=y BR2_PACKAGE_GZIP=y diff --git a/buildroot_external/configs/rootfs_arm64_defconfig b/buildroot_external/configs/rootfs_arm64_defconfig index e0ab71a..f36e04f 100644 --- a/buildroot_external/configs/rootfs_arm64_defconfig +++ b/buildroot_external/configs/rootfs_arm64_defconfig @@ -13,7 +13,7 @@ BR2_TARGET_GENERIC_ROOT_PASSWD="1" BR2_SYSTEM_BIN_SH_BASH=y BR2_SYSTEM_ENABLE_NLS=y BR2_TARGET_LOCALTIME="PRC" -BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_OVM_PATH)/board/ovm/chrony/rootfs-overlay/ $(BR2_EXTERNAL_OVM_PATH)/board/ovm/ssh/rootfs-overlay/ $(BR2_EXTERNAL_OVM_PATH)/board/ovm/wsl/rootfs-overlay/ $(BR2_EXTERNAL_OVM_PATH)/board/ovm/ready/rootfs-overlay/$(BR2_EXTERNAL_OVM_PATH)/board/ovm/net/rootfs-overlay/" +BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_OVM_PATH)/board/ovm/chrony/rootfs-overlay/ $(BR2_EXTERNAL_OVM_PATH)/board/ovm/ssh/rootfs-overlay/ $(BR2_EXTERNAL_OVM_PATH)/board/ovm/wsl/rootfs-overlay/ $(BR2_EXTERNAL_OVM_PATH)/board/ovm/ready/rootfs-overlay/ $(BR2_EXTERNAL_OVM_PATH)/board/ovm/net/rootfs-overlay/ $(BR2_EXTERNAL_OVM_PATH)/board/ovm/systemd/rootfs-overlay/" BR2_PACKAGE_BUSYBOX_INDIVIDUAL_BINARIES=y BR2_PACKAGE_BUSYBOX_WATCHDOG=y BR2_PACKAGE_GZIP=y