From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] Q: postinst hook for firmware-*
Date: Thu, 7 Sep 2017 09:37:13 +0300
Message-ID: <20170907063713.GB24910@altlinux.org> (raw)
In-Reply-To: <20170906220343.GA26309@lks.home>
[-- Attachment #1: Type: text/plain, Size: 1443 bytes --]
On Thu, Sep 07, 2017 at 12:03:43AM +0200, Konstantin Lepikhov wrote:
> Hi Dmitry!
>
> On 09/06/2017, at 04:37:35 PM you wrote:
>
> >
> > содержимое ucode_handled дальше только проверяется на непустоту,
> > можно записывать туда что-то более простое, например, ucode_handled=1
> >
> ok
>
> > > + set +f
> >
> > set +f дальше не используется и, видимо, не нужен.
> ну как бы readlink может обломаться, если у нас нет /boot/vmlinuz.
Это же +f, а не +e.
> Я не знаю, эта проверка есть в handle_kernel, я ее добавил по аналогии.
>
> >
> > > + f="$(readlink -e /boot/vmlinuz)"
> > > + if [ -n "$f" -a -n "$kernel_versions_handled" ]; then
> > > + VERSION=${f#$VMLINUZ_PREFIX-}
> > > + case "$kernel_version_handled" in
> > > + "* $VERSION*")
> > > + ucode_handled=
> > > + ;;
> > > + esac
> > > + fi
> >
> > Это лучше делать всего один раз после обработки цикла по файлам.
> > Хотя почему это исключение сделано именно для /boot/vmlinuz, неочевидно.
> я тут не очень понял логику, которая ниже по коду - если у нас выставлен
> INITRD_AUTOUPDATE=all это значит что будет обновлятся initramfs для всех
> ядер, или только тех, что попали в обновление?
Судя по всему, для всех (commit 0.4.10-alt3~2), хотя зачем понадобилась
такая странная логика, я не знаю.
> Почему там еще раз проверяется является ли файл /boot/vmlinuz?
Чтобы не обновить дважды (commit 0.4.10-alt3^0).
--
ldv
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
next prev parent reply other threads:[~2017-09-07 6:37 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-04 11:56 Konstantin Lepikhov
2017-09-04 16:01 ` Dmitry V. Levin
2017-09-04 19:18 ` Konstantin Lepikhov
2017-09-04 21:35 ` Dmitry V. Levin
2017-09-06 12:09 ` Konstantin Lepikhov
2017-09-06 13:37 ` Dmitry V. Levin
2017-09-06 22:03 ` Konstantin Lepikhov
2017-09-07 6:37 ` Dmitry V. Levin [this message]
2017-09-07 7:47 ` Konstantin Lepikhov
2017-09-07 9:28 ` Dmitry V. Levin
2017-09-07 10:17 ` Konstantin Lepikhov
2017-09-08 21:01 ` Dmitry V. Levin
2017-09-08 22:06 ` Konstantin Lepikhov
2017-11-22 11:23 ` Mikhail Efremov
2017-11-23 11:55 ` Konstantin Lepikhov
2017-11-23 13:53 ` Sergey Afonin
2017-11-23 13:56 ` Mikhail Efremov
2017-11-23 14:22 ` Konstantin Lepikhov
2017-11-23 16:19 ` Mikhail Efremov
2017-11-23 18:15 ` Dmitry V. Levin
2017-11-23 18:19 ` Michael Shigorin
2017-11-24 8:46 ` Sergey Afonin
2017-11-24 9:58 ` Alexey Gladkov
2017-11-23 17:10 ` Sergey Y. Afonin
2017-11-23 18:08 ` Michael Shigorin
2017-11-23 18:10 ` Anton Farygin
2017-11-23 18:24 ` Sergey Y. Afonin
2017-11-23 23:06 ` Konstantin Lepikhov
2017-11-23 23:41 ` Dmitry V. Levin
2017-11-24 0:43 ` Alexey Gladkov
2017-11-24 1:41 ` Dmitry V. Levin
2017-12-05 13:48 ` Alexey Gladkov
2017-11-24 4:37 ` [devel] Q: agp modules in initrd ? Anton Farygin
2017-11-24 10:06 ` Alexey Gladkov
2017-11-24 10:32 ` Anton Farygin
2017-11-24 11:15 ` Alexey Gladkov
2017-11-24 11:25 ` Anton Farygin
2017-11-24 12:44 ` Alexey Gladkov
2017-11-24 13:10 ` Anton Farygin
2017-11-24 15:04 ` Alexey Gladkov
2017-11-24 15:07 ` Anton Farygin
2017-11-24 15:47 ` Mikhail Efremov
2017-11-24 16:04 ` Anton Farygin
2017-11-24 16:20 ` Mikhail Efremov
2017-11-24 16:21 ` Anton Farygin
2017-11-24 17:38 ` Mikhail Efremov
2017-11-24 11:44 ` Konstantin Lepikhov
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=20170907063713.GB24910@altlinux.org \
--to=ldv@altlinux.org \
--cc=devel@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 Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git