ALT Linux Distributions development
 help / color / mirror / Atom feed
From: "Антон Мидюков" <midyukov-anton@ya.ru>
To: devel-distro@lists.altlinux.org
Subject: Re: [devel-distro] I: systemd-settings
Date: Mon, 12 Aug 2019 20:48:52 +0700
Message-ID: <e8fd37f8-0651-abcf-a881-26d003f6e1b9@ya.ru> (raw)
In-Reply-To: <CAEdvWkRRt7rHfxVFROQER+xVntC5jNW7LTLpo8McXqBaG_Wbug@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2025 bytes --]

26.07.2019 2:48, Alexey Shabalin пишет:
> Всем привет.
> Я добавил несколько новых пакетов в systemd-settings.
> К ранее существовавшим
> - systemd-settings-disable-kill-user-processes
> - systemd-settings-enable-kill-user-processes (что бы работал screen)
> - systemd-settings-disable-user-systemd-for-selinux
> добавил:
> - systemd-settings-enable-showstatus
> - systemd-settings-disable-dumpcore
> - systemd-settings-enable-log-to-tty12

Все три хочется включить в сборки регулярок/стартеркитов с systemd по 
дефолту.

Потому предлагаю такой патч.

Для каждого своя цель и общая для всех троих цель use/init/systemd/settings

> Функционал вообщем понятен из названия.
>
> systemd-settings-enable-showstatus понадобился потому,что
> по умолчанию ShowStatus=yes, то стоит передать ядру параметр quiet,
> как этот параметр становится ShowStatus=auto. А это означает не
> показывать успешно запущенные systemd unit ([OK] описание юнита), а
> показывать только запуск с ошибками.
> Поэтому с quiet после сообщений от initrd видно сразу приглашение login:
> Пакет systemd-settings-enable-showstatus заставляет всегда показывать
> статус старта сервиса.
>
> Пакет systemd-settings-enable-log-to-tty12 может заменить
> installer-feature-journald-tty.
> Достаточно просто установить пакет, а не править конфиги systemd.
> Прошу поправить это в mkimage-profiles.
>
-- 
С уважением, Антон Мидюков <antohami@altlinux.org>


[-- Attachment #2: 0001-init-add-systemd-settings.patch --]
[-- Type: text/x-patch, Size: 1393 bytes --]

>From 314cb55337665ae4175eb85ad1dd81a027154cd6 Mon Sep 17 00:00:00 2001
From: Anton Midyukov <antohami@altlinux.org>
Date: Mon, 12 Aug 2019 19:28:28 +0700
Subject: [PATCH] init: add systemd-settings-*

See-also: https://lists.altlinux.org/pipermail/devel-distro/2019-July/001710.html
---
 features.in/init/config.mk | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/features.in/init/config.mk b/features.in/init/config.mk
index c3b7f9a07..edee166c7 100644
--- a/features.in/init/config.mk
+++ b/features.in/init/config.mk
@@ -46,3 +46,19 @@ use/init/systemd/debug: use/init/systemd use/services
 # set multi-user target by default
 use/init/systemd/multiuser: use/init/systemd
 	@$(call add,STAGE2_BOOTARGS,systemd.unit=multi-user.target)
+
+# set global TTYPath=/dev/tty12 for forward logs
+use/init/systemd/log-to-tty12: use/init/systemd
+	@$(call add,THE_PACKAGES,systemd-settings-enable-log-to-tty12)
+
+# disable dumpcore
+use/init/systemd/disable-dumpcore: use/init/systemd
+	@$(call add,THE_PACKAGES,systemd-settings-disable-dumpcore)
+
+# enable show status for quit
+use/init/systemd/enable-showstatus: use/init/systemd
+	@$(call add,THE_PACKAGES,systemd-settings-enable-showstatus)
+
+# optimal settings for systemd
+use/init/systemd/settings: use/init/systemd/log-to-tty12 \
+	use/init/systemd/disable-dumpcore use/init/systemd/enable-showstatus; @:
-- 
2.21.0


  parent reply	other threads:[~2019-08-12 13:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-25 19:48 Alexey Shabalin
2019-07-26 11:19 ` Michael Shigorin
2019-08-01 20:19   ` Alexey Shabalin
2019-08-12 13:48 ` Антон Мидюков [this message]
2019-08-12 14:17   ` Michael Shigorin
2019-08-12 15:12     ` Антон Мидюков
2019-08-20 15:05       ` Michael Shigorin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e8fd37f8-0651-abcf-a881-26d003f6e1b9@ya.ru \
    --to=midyukov-anton@ya.ru \
    --cc=devel-distro@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Distributions development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-distro/0 devel-distro/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel-distro devel-distro/ http://lore.altlinux.org/devel-distro \
		devel-distro@lists.altlinux.org devel-distro@lists.altlinux.ru devel-distro@lists.altlinux.com
	public-inbox-index devel-distro

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-distro


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git