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 22:12:09 +0700
Message-ID: <a1ce58ad-f177-3b11-bbc6-d0f1a46a76a7@ya.ru> (raw)
In-Reply-To: <20190812141702.GA3604@imap.altlinux.org>

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

12.08.2019 21:17, Michael Shigorin пишет:
> On Mon, Aug 12, 2019 at 08:48:52PM +0700, Антон Мидюков wrote:
>> +# 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)
> А здесь подумалось, что может быть лучше что-то вроде
>
> ... use/init/systemd/settings/%:
> 	@$(call add,THE_PACKAGES,systemd-settings-$*)
>
> (как для lightdm-*-greeter сделано, например).
>
Да, пожалуй. Тогда вот так.

-- 
С уважением, Антон Мидюков <antohami@altlinux.org>


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

>From 4d02cb1ff63e32281b1e7ebcd22ad29d62b780d8 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 | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/features.in/init/config.mk b/features.in/init/config.mk
index c3b7f9a07..4fb56c4a7 100644
--- a/features.in/init/config.mk
+++ b/features.in/init/config.mk
@@ -46,3 +46,15 @@ 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)
+
+use/init/systemd/settings/disable-dumpcore \
+use/init/systemd/settings/disable-user-systemd-for-selinux \
+use/init/systemd/settings/enable-log-to-tty12 \
+use/init/systemd/settings/enable-showstatus: \
+use/init/systemd/settings/%: use/init/systemd
+	@$(call add,THE_PACKAGES,systemd-settings-$*)
+
+use/init/systemd/settings/optimal: \
+	use/init/systemd/settings/disable-dumpcore \
+	use/init/systemd/settings/enable-log-to-tty12 \
+	use/init/systemd/settings/enable-showstatus; @:
-- 
2.21.0


  reply	other threads:[~2019-08-12 15:12 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 ` Антон Мидюков
2019-08-12 14:17   ` Michael Shigorin
2019-08-12 15:12     ` Антон Мидюков [this message]
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=a1ce58ad-f177-3b11-bbc6-d0f1a46a76a7@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