From: Michael Shigorin <mike@altlinux.org> To: smoke-room@lists.altlinux.org Subject: [room] ещё штрих про systemd Date: Wed, 6 Mar 2019 15:32:10 +0300 Message-ID: <20190306123210.GE31737@imap.altlinux.org> (raw) Здравствуйте. Ещё маленькая зарисовка. Опакечиваю специальные настройки acpid для e2k. Пишу: %define acpidrc %_sysconfdir/sysconfig/acpid %define acpid_args ACPID_ARGS+="-S" # ... %post grep -wq '^%acpid_args$' %acpidrc || echo '%acpid_args' >> %acpidrc %preun sed -i '/^%acpid_args$/d' %acpidrc ||: Всё красиво, при установке-сносе отрабатывает. Единственное "но": acpid.service: Ignoring invalid environment assignment 'ACPID_ARGS+=nosocket=1': /etc/sysconfig/acpid Пришлось сделать ACPID_ARGS="-S" с бэкапилкой конфига, но результат получится недружественным к правке вручную (и то, что при нескольких присвоениях берётся _первое_, а не последнее -- тоже ни разу не least surprise). Такому бестолковому апстриму неохота даже баги вешать :-[ -- ---- WBR, Michael Shigorin / http://altlinux.org ------ http://opennet.ru / http://anna-news.info
reply other threads:[~2019-03-06 12:32 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20190306123210.GE31737@imap.altlinux.org \ --to=mike@altlinux.org \ --cc=smoke-room@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
Культурный офтопик This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/smoke-room/0 smoke-room/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 smoke-room smoke-room/ http://lore.altlinux.org/smoke-room \ smoke-room@lists.altlinux.org smoke-room@lists.altlinux.ru smoke-room@lists.altlinux.com smoke-room@altlinux.ru smoke-room@altlinux.org smoke-room@altlinux.com public-inbox-index smoke-room Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.smoke-room AGPL code for this site: git clone https://public-inbox.org/public-inbox.git