From: Leonid Krivoshein <klark.devel@gmail.com> To: devel@lists.altlinux.org Subject: Re: [devel] os-release / lsb_release / VENDOR-release Date: Wed, 5 Jun 2019 15:11:52 +0300 Message-ID: <82544dbe-7022-666c-b158-3b3fd0bcd823@gmail.com> (raw) In-Reply-To: <2734023177846f0919ea7cef177691d4@altlinux.ru> 05.06.2019 12:06, Vitaly Lipatov пишет: > Leonid Krivoshein писал 4.6.19 3:34: >> [...] >> 1) Это правда, что LSB-метод (lsb_release) не так широко распространён >> и теперь уступает freedesktop'ному парсингу файла /etc/os-release? >> Критика LSB в этой рассылке уже имела место несколько лет назад. Но >> альтернатив тогда не предлагалось, де-факто стандарт нами не >> поддерживается (пакет отсутствует в системе сразу после установки, на >> него нет зависимости в basesystem/interactivesystem). > /etc/os-release гораздо популярнее и адекватнее. > lsb_release умер, на мой взгляд. > Да, вот только и /etc/os-release не так уж хорош, именно как стандарт. По крайней мере, для данного применения. А какое оно может быть ещё? Найти ID, чтобы прописать в загрузчик UEFI. Для него новый стандарт тоже не ахти. То есть, грубо, они друг друга стоят. Теперь ещё есть hostnamectl... >> >> 2) Как вы считаете, какой идентификатор (ID, DISTRIB_ID) должен быть у >> наших систем -- "alt" или "altlinux"? Дело в том, что LSB считает нас >> как "alt". Тогда как два других метода -- "altlinux". Пояснение в >> прилагаемом скрипте. > Привет строителям велосипедов. > Ух ты, привет!!! >> >> 3) Если исключить экзотику, типа разбора /proc/version или имени файла >> ядра, есть ли хорошие примеры кода, надёжно определяющего текущий >> дистрибутив Linux? > Есть. > $ distr_info Спасибо! Буду иметь ввиду... -- Best regards, Leonid Krivoshein.
next prev parent reply other threads:[~2019-06-05 12:11 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-06-04 0:34 Leonid Krivoshein 2019-06-05 9:06 ` Vitaly Lipatov 2019-06-05 12:11 ` Leonid Krivoshein [this message] 2019-06-05 13:14 ` Vitaly Lipatov 2019-06-07 0:37 ` Leonid Krivoshein 2019-11-21 16:50 ` Vitaly Lipatov
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=82544dbe-7022-666c-b158-3b3fd0bcd823@gmail.com \ --to=klark.devel@gmail.com \ --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