From: Alexander Bokovoy <a.bokovoy@sam-solutions.net> To: ALT Linux kernel packages development <devel-kernel@altlinux.ru> Subject: Re: [d-kernel] update startup? Date: Sat, 7 Feb 2004 12:54:01 +0200 Message-ID: <20040207105401.GC5936@sam-solutions.net> (raw) In-Reply-To: <20040206211538.GD11495@basalt.office.altlinux.org> On Sat, Feb 07, 2004 at 12:15:38AM +0300, Dmitry V. Levin wrote: > > Собственно, вопрос к LDV и состоит он вот в чем. Могу ли я обновить > > startup и залить изменения в Сизиф? Или достаточно перечислить смысл > > изменений и ты их внесёшь самостоятельно? > > Способ не имеет значения - я "перехвачу" и проверю любое изменение > "своего" пакета. Так что можно патч прислать, можно пакет выложить - > результат по существу будет одинаковый. Ok. Ну ты же не против дать мне соблюсти формальности и спросить? :-))) > > Список изменений: > > > > - поддержка определения версии запущенного ядра в /etc/init.d/functions > > Вопрос только в выборе удачного интерфейса. > Может, стоит обсудить? Сейчас я просто взял код из vconfig и обернул (init.d/functions): RegisterKernelVersion() { KV=`/bin/uname -r |/bin/cut -d- -f1` [ -n "$KV" ] KV_MAJOR=`echo "$KV" |/bin/cut -d. -f1` [ -n "$KV_MAJOR" ] KV_MINOR=`echo "$KV" |/bin/cut -d. -f2` [ -n "$KV_MINOR" ] } Обернуто в функцию, чтобы не засорять пространство имен и не выполнять эти вызовы, когда не требуется. Далее используется это, скажем, в rc.sysinit вот так: RegisterKernelVersion # Mount /proc (done here so volume labels can work with fsck) action "Mounting proc filesystem" mount -n -t proc /proc /proc chgrp proc /proc >/dev/null 2>&1 ||: if [ "$KV_MAJOR" -eq 2 ] && [ "$KV_MINOR" -gt 4 ]; then # Mount /sys action "Mounting sys filesystem" mount -n -t sysfs /sys /sys fi > > > - поддержка монтирования sysfs с автоматическим созданием /sys при её > > отсутствии в rc.sysinit. Включается только если загружено ядро серии > > 2.5 и выше > > Поскольку пакет filesystem >= 2.1.7-alt1 содержит /sys, какой смысл > создавать этот каталог? Мы же не создаём /proc и /dev/pts, верно? Конечно. С требованием установки filesystem >= 2.1.7-alt1 в новом startup (Requires) > А монтирование sysfs для 2.6, конечно, нужно. > > > - поддержка двух отдельных /etc/modules и /etc/modules.26 для разных > > серий ядер в скрипте /etc/rc.d/scripts/load_modules, поскольку названия > > модулей для разных серий отличаются, а сосуществование в рамках > > имеющегося формата невозможно. > > Действительно, почему бы и не /etc/modules-2.6? Я не против. Что важнее здесь -- отказаться от /etc/modules в пользу переимменования в /etc/modules-2.4 при установке обновления пакета service. -- / Alexander Bokovoy Samba Team http://www.samba.org/ ALT Linux Team http://www.altlinux.org/ Midgard Project Ry http://www.midgard-project.org/
next prev parent reply other threads:[~2004-02-07 10:54 UTC|newest] Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-02-06 16:44 Alexander Bokovoy 2004-02-06 20:29 ` Mikhail Zabaluev 2004-02-07 10:48 ` Alexander Bokovoy 2004-02-07 11:26 ` Michael Shigorin 2004-02-07 11:40 ` Alexander Bokovoy 2004-02-07 12:04 ` Michael Shigorin 2004-02-07 12:09 ` Alexander Bokovoy 2004-02-07 12:21 ` Michael Shigorin 2004-02-07 12:27 ` Alexander Bokovoy 2004-02-07 13:14 ` Mikhail Zabaluev 2004-02-07 13:20 ` Alexander Bokovoy 2004-02-09 7:41 ` Anton Farygin 2004-02-09 12:52 ` Michael Shigorin 2004-02-07 12:16 ` Sergey Vlasov 2004-02-07 12:26 ` Dmitry V. Levin 2004-02-07 12:44 ` Alexander Bokovoy 2004-02-09 7:15 ` Anton Farygin 2004-02-06 21:15 ` Dmitry V. Levin 2004-02-07 10:54 ` Alexander Bokovoy [this message] 2004-02-07 12:30 ` Dmitry V. Levin 2004-02-07 12:35 ` Alexander Bokovoy
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=20040207105401.GC5936@sam-solutions.net \ --to=a.bokovoy@sam-solutions.net \ --cc=devel-kernel@altlinux.ru \ /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 kernel packages development This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/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-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \ devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com public-inbox-index devel-kernel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel-kernel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git