ALT Linux Distributions development
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@osdn.org.ua>
To: devel-distro@lists.altlinux.org
Subject: Re: [devel-distro] Обновление branding
Date: Sat, 5 May 2012 22:31:52 +0300
Message-ID: <20120505193152.GQ17612@osdn.org.ua> (raw)
In-Reply-To: <201205052315.26351.cas@altlinux.ru>

On Sat, May 05, 2012 at 11:15:21PM +0400, Андрей Черепанов wrote:
> > > %postin bootloader
> > > test -f "/boot/grub/grub.cfg" && grub-mkconfig -o /boot/grub/grub.cfg
> > > %postin bootsplash
> > > make-initrd
> > Напрашивается на posttrans trigger, и для случая с как минимум
> > lilo нельзя трогать initrd без последующей установки загрузчика.
> Какую проверку можно сделать (по аналогии с grub-mkconfig)?

Аналогичную. :)

test -f /etc/lilo.conf

Только имей в виду, что у тебя сейчас дословно получается
последняя команда в пакетном скрипте, которая может на ровном
месте вернуть не-ноль:

$ false && true
$ echo $?
1

...поэтому и делают либо так:

[ ! ... ] || cmd

либо так:

[ ... ] && cmd ||:

(здесь ":" -- это shell builtin, алиас true)

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


      reply	other threads:[~2012-05-05 19:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-05 19:02 Андрей Черепанов
2012-05-05 19:05 ` Michael Shigorin
2012-05-05 19:15   ` Андрей Черепанов
2012-05-05 19:31     ` Michael Shigorin [this message]

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=20120505193152.GQ17612@osdn.org.ua \
    --to=mike@osdn.org.ua \
    --cc=devel-distro@lists.altlinux.org \
    --cc=shigorin@gmail.com \
    /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