ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Alexey V. Vissarionov" <gremlin@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] К вопросу о сжатии  firmware-linux
Date: Mon, 23 May 2022 13:01:19 +0300
Message-ID: <20220523100119.GB21406@altlinux.org> (raw)
In-Reply-To: <d5c7048d-2cec-f970-7008-cd3938f58aa7@ya.ru>

On 2022-05-23 16:10:15 +0700, Антон Мидюков wrote:

 >>> Зачем это нужно?
 >>> Уменьшить размер установленного пакета с 500+ МБ до 100+ МБ.
 >>> Что нужно сделать?
 >>> Требуется ядро >= 5.3 с CONFIG_FW_LOADER_COMPRESS=y.
 >>> Что мешает?
 >>> Наличие ядер в p10:
 >>> kernel-image-mcom02	4.4.189.9-alt8

Не критично: эта железяка - совсем вещь в себе, и firmware ей
вообще не нужно.

 >>> kernel-image-tegra 4.9.140-alt2

А здесь можно обновиться.

 >> Ещё могут быть самособранные ядра у пользователей.

Этих пользователей можно считать достаточно квалифицированными
для того, чтобы они сами обновили собираемые ими ядра.

 >> Я молчу про mipsel и некоторые экзотические платы. systemd
 >> это конечно... сильный аргумент,

Это не аргумент, а обычное приложение, работающее в userspace.

 >> но всё-таки не хотелось бы увеличивать число сценариев
 >> при котором обычный казалось бы dist-upgrade неминуемо
 >> превращает систему в тыкву.

Избыток скриптовых костылей превращает систему в тыкву не то
что после dist-upgrade, а и просто при установке очередного
пакета из репы. Но это совершенно не мешает мейнтейнерам,
наоборот, создавать все больше таких костылей.

 > У mipsel отдельный репозиторий, поэтому для него компрессию
 > можно не включать. Разве не так? И systemd не обновлять.

В принципе, пакеты noarch лучше бы делать одинаковыми везде.

 >> Может, стоит придумать схему, при которой сжатый firmware
 >> пакуется в отдельный пакет (firmware-linux-compressed),
 >> и firmware-linux и firmware-linux-compressed какое-то
 >> время существуют и обновляются параллельно?

Нужно.

 >> Старые системы будут получать непожатый firmware-linux
 >> (что админы смогут легко поправить одним apt-get install),
 >> а в новые продукты можно сразу класть compressed-версию.
 > А этого бы хотелось избежать.

Чего именно избежать и зачем? Чем плох вариант

%package compressed
Provides: %name = %EVR

?


-- 
Alexey V. Vissarionov
gremlin ПРИ altlinux ТЧК org; +vii-cmiii-ccxxix-lxxix-xlii
GPG: 0D92F19E1C0DC36E27F61A29CD17E2B43D879005 @ hkp://keys.gnupg.net


  reply	other threads:[~2022-05-23 10:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-22 18:21 Антон Мидюков
2022-05-23  8:57 ` Ivan A. Melnikov
2022-05-23  9:10   ` Антон Мидюков
2022-05-23 10:01     ` Alexey V. Vissarionov [this message]
2022-05-23 11:36     ` Paul Wolneykien

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=20220523100119.GB21406@altlinux.org \
    --to=gremlin@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