From: Alexey Gladkov <gladkov.alexey@gmail.com>
To: make-initrd@lists.altlinux.org
Subject: Re: [make-initrd] udhcpc script в фиче network
Date: Wed, 22 Sep 2021 12:01:06 +0200
Message-ID: <20210922100106.ldzf74zrq24lh2ex@example.org> (raw)
In-Reply-To: <b2557078-cb5d-3baf-217e-b348630625bf@gmail.com>
On Wed, Sep 22, 2021 at 01:51:20AM +0300, Leonid Krivoshein wrote:
> Алексей, привет!
>
>
> 20.09.2021 0:50, Leonid Krivoshein пишет:
> > Вопрос в том, как заставить снова запуститься network-up
>
> Никак без тебя этот вопрос не решается! Что я делаю не так?
>
> Если вижу, что все четыре переменные равны нулю (IP, NAMESERVER, IFNAME,
> ROUTE), делаю примерно следующее:
>
> ( echo 'export IP="1"'
> echo 'export ROUTE="0"'
> echo 'export IFNAME="0"'
> echo 'export NAMESERVER="0"'
> echo 'export IP0="dhcp4"'
> ) >> /.initrd/initenv
>
> ( run /lib/initrd/cmdline.d/network
> run /etc/rc.d/init.d/network-up start
> ) >/dev/tty1 &
Что за ужас ты делаешь ?
Речь в начале была про добавление дополнительных переменных в udhcpc, а
это уже ну совсем не про это.
> а далее идёт код, который ждёт появления IP на любом интерфейсе, кроме lo, и
> это уже проверенный, рабочий фрагмент. То есть, я хочу повторно запустить
> конфигурирование и поднятие сети через фичу network, если никакие параметры
> в /proc/cmdline не были определены. В логе на tty3 вижу следующее:
>
> waitnet: [0] RUN: /lib/initrd/cmdline.d/network
> waitnet: [0] RUN: /etc/rc.d/init.d/network-up start
> waitnet: connection timeout
>
> (последнее сообщение спустя 30 секунд). При этом на tty1 последние строки
> выглядят так:
>
> Network up (lo): [DONE]
> Starting bootchained service: [DONE]
> Generating network configuration: [DONE]
> Network up (lo): [DONE]
>
> Больше ничего про сеть нет, в отличии от ситуации, когда я её конфигурирую
> руками через /proc/cmdline.
>
>
> > и как отлаживать это хозяйство в rdshell, учитывая, что с ним сеть не
> > конфигурируется.
>
> Пробовал выставлять RDSHELL= и комментировать фрагмент его проверки, но
> тогда network-up просто виснет (видимо на взаимной блокировке /dev/console).
>
>
> --
> Best regards,
> Leonid Krivoshein.
>
> _______________________________________________
> Make-initrd mailing list
> Make-initrd@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/make-initrd
--
Rgrds, legion
next prev parent reply other threads:[~2021-09-22 10:01 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-17 20:48 Leonid Krivoshein
2021-09-17 22:08 ` Alexey Gladkov
2021-09-19 21:50 ` Leonid Krivoshein
2021-09-21 22:51 ` Leonid Krivoshein
2021-09-22 0:16 ` Leonid Krivoshein
2021-09-22 10:01 ` Alexey Gladkov [this message]
2021-09-22 10:09 ` Alexey Gladkov
2021-09-22 10:56 ` Leonid Krivoshein
2021-09-22 11:41 ` Alexey Gladkov
2021-09-22 12:06 ` Leonid Krivoshein
2021-09-22 13:08 ` Alexey Gladkov
2021-09-22 14:46 ` Alexey Gladkov
2021-09-22 16:12 ` Leonid Krivoshein
2021-09-22 19:03 ` Alexey Gladkov
2021-09-22 22:06 ` Leonid Krivoshein
2021-09-23 0:45 ` Alexey Gladkov
2021-09-23 2:31 ` Антон Мидюков
2021-09-23 8:59 ` Alexey Gladkov
2021-09-23 20:40 ` Leonid Krivoshein
2021-09-23 21:15 ` Alexey Gladkov
2021-09-23 21:55 ` Arseny Maslennikov
2021-09-23 22:41 ` Alexey Gladkov
2021-09-23 22:51 ` Leonid Krivoshein
2021-09-23 22:56 ` Leonid Krivoshein
2021-09-23 23:31 ` Alexey Gladkov
2021-09-23 2:40 ` Leonid Krivoshein
2021-09-23 11:38 ` Alexey Gladkov
2021-09-24 17:31 ` Leonid Krivoshein
2021-09-24 18:35 ` Leonid Krivoshein
2021-09-24 19:00 ` Alexey Gladkov
2021-09-24 20:09 ` Leonid Krivoshein
2024-03-07 19:18 ` Leonid Krivoshein
2024-03-12 17:42 ` Alexey Gladkov
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=20210922100106.ldzf74zrq24lh2ex@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