From: Alexey Gladkov <gladkov.alexey@gmail.com> To: make-initrd@lists.altlinux.org Subject: Re: [make-initrd] root=<any> --> mount event handler / 900-localdev regression Date: Thu, 15 Feb 2024 12:46:11 +0000 Message-ID: <Zc4Hk6FFuiKbtmeA@example.org> (raw) In-Reply-To: <9d2f201c-1984-482e-a9ef-8db5e98ecf5e@gmail.com> On Thu, Feb 15, 2024 at 08:42:03AM +0300, Leonid Krivoshein wrote: > > On 2/11/24 17:54, Alexey Gladkov wrote: > > $ git ls-tree -r master | grep rootdelay > > 100755 blob c4dfb325061456cd3c9e47a12c5043d97126c2a5 data/etc/rc.d/init.d/rootdelay > > 100755 blob b6624fbd8ec095f1a48e2a4b50a7ad771f367d4c data/sbin/rootdelayd > > > > Я не знаю про какой 100-rootdelay ты говоришь. Его нет уже как с 9 июля > > 2023. > > > >> Как правильно избежать этих гонок? > > Одно потенциальное место гонки я предложил исправить выше. О каких ещё > > местах ты говоришь я пока не понимаю. > > > >> Как отключить на время обработки цепочки обработку mount и localdev? > > Все эвенты в очереди mount в handlers/mount/900-localdev игнорируются пока > > method не localdev. > > К сожалению, это не так. В начале chaind выставляет метод в пустоту. Как > только выполняется mount --move ... $rootmnt, тут же начинают > срабатывать события mount/localdev, что видно по /var/log/uevents.log и > по совпадению временных метод в /var/log/chaind.log. > > Выше там у тебя всего одна команда. Подразумевается, что твой демон > pipeline после этого шага rootfs тут же завершится. А если нет? В > bootchain есть какая-то логика после шага rootfs. И в параллель с ней > начинали отрабатывать эти события. В общем, мне удалось всё это > победить, выполняя команду mount --move ... $rootmnt самой последней в > chaind, т.е. непосредственно перед завершением демона. Да, rootfs меняет метод и это подразумевает конец работы pipeline. Так задумывалось с самого начала. Если такое поведение не нужно, то нужен другой шаг делать - не-rootfs. Что, как я понимаю, ты и сделал. > >> И как включить их обратно после того, как цепочка отработает? > > Записать в /etc/initrd/method значение localdev и переместить/смонтировать > > в rootmnt все необходимые устройства. > > Именно так я и сделал. То есть, теперь эти две команды -- завершение > chaind, а не шага rootfs. Всё правильно сделал. -- Rgrds, legion
prev parent reply other threads:[~2024-02-15 12:46 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-02-11 1:57 Leonid Krivoshein 2024-02-11 14:54 ` Alexey Gladkov 2024-02-15 5:42 ` Leonid Krivoshein 2024-02-15 12:46 ` Alexey Gladkov [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=Zc4Hk6FFuiKbtmeA@example.org \ --to=gladkov.alexey@gmail.com \ --cc=make-initrd@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
Make-initrd development discussion This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/make-initrd/0 make-initrd/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 make-initrd make-initrd/ http://lore.altlinux.org/make-initrd \ make-initrd@lists.altlinux.org make-initrd@lists.altlinux.ru make-initrd@lists.altlinux.com public-inbox-index make-initrd Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.make-initrd AGPL code for this site: git clone https://public-inbox.org/public-inbox.git