Make-initrd development discussion
 help / color / mirror / Atom feed
From: Alexey Gladkov <gladkov.alexey@gmail.com>
To: make-initrd@lists.altlinux.org
Subject: Re: [make-initrd] master updated
Date: Mon, 29 Apr 2019 16:49:01 +0200
Message-ID: <20190429144901.GW9023@dhcp129-178.brq.redhat.com> (raw)
In-Reply-To: <fe13f139-91d0-9be5-3f1a-5eaa9fb715af@complife.ru>

On Mon, Apr 29, 2019 at 04:37:58PM +0200, Michael A. Kangin wrote:
> On 04/29/2019 02:18 PM, Alexey Gladkov wrote:
> 
> > В логах что-нибудь есть ? ip-route выполняется ?
> 
> [2019-04-29 13:47:36] 040-network: eth1: process event: network.route.update
> [2019-04-29 13:47:36] route: eth1: run: ip -4 route append default via 
> 192.168.222.1
> [2019-04-29 13:47:36] route: eth1: run: ip -4 route append 172.16.0.0/12
> ip: RTNETLINK answers: No such device

Спасибо. Так яснее.

> [2019-04-29 13:47:36] route: eth1: create event: network.route.update -> 
> network.route.updated
> 
> /.initrd/initenv:export 
> CMDLINE="ip=192.168.222.25::192.168.222.1:25:myhost:eth1:none 
> route=172.16.0.0/12::eth1 nameserver=98.158.111.2 
> nameserver=[fd00:eeee:2::1] debug rd-depmod=y rdshell rootdelay=5"
> /.initrd/initenv:export ROUTE0="172.16.0.0/12::eth1"
> /.initrd/initenv:export route="172.16.0.0/12::eth1"
> /.initrd/kernenv:route="172.16.0.0/12::eth1"

Спасибо. Проверю.

> кстати: еще в логах постоянно мелькает такая запись:
> [2019-04-29 14:22:27] addr: lo: run: ip -4 address add dev lo 127.0.0.1/8
> ip: RTNETLINK answers: File exists

Я видел. Да, это не страшно.

> еще кстати:
> If you are here that something went wrong. If so, it's important to 
> remember:
> ...
> - /var/log/uevent.log -- contains log of the execution of handlers.
> 
> Он /var/log/uevent*d*.log
>

Исправлю.

> - /var/log/udhcp{4|6}.<iface>.log -- contains DHCP logs.
> 
> Оне /var/log/udhcp*с*...

А это вообще нужно придумать как вынести в фичу.

> > root=/dev/nfs это не моё изобретение:
> > https://github.com/torvalds/linux/blob/master/Documentation/filesystems/nfs/nfsroot.txt#L46
> 
> Я просто задумался, если NFS (и другие фичи) рассматривать и как 
> транспорт, то чей root= в итоге будет. Ну да ладно, у вас там свои идеи 
> наверное есть :)

В каком смысле чей будет ?

> >> И напоминаю, фича dropbear тоже сломана, сислога хочет.
> > Угу. Видимо добавлю из busybox, хотя не очень хочется.
> 
> В принципе, сам dropbear прекрасно сейчас и без него работает (из 
> дополнительного debug.cpio)
> 
> Если закомментить упоминания syslog:

А куда у тебя логи идут в этом случае ?

> Впрочем, для того, чтобы действительно приконнектиться, нужно еще решить 
> вопрос с ключом или паролем для root, а так же монтировать в рантайме 
> /dev/pts

В сервисе dropbear нужно проверять и монтировать его.

> мне кажется, при сборке стоит подумать о вопросах:
> - добавления паблик-ключа в /home/root/.ssh/authorized_keys

Хорошая мысль.

> - возможность класть свои host-ключи (сейчас они генерятся каждый раз 
> заново при старте системы, не вижу в этом большого профита, только с 
> known_hosts лишняя возня)

Угу

> - как класть дропбировский scp

Можно.

-- 
Rgrds, legion



  reply	other threads:[~2019-04-29 14:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-26 12:35 Alexey Gladkov
2019-04-29 11:02 ` Michael A. Kangin
2019-04-29 12:18   ` Alexey Gladkov
2019-04-29 14:37     ` Michael A. Kangin
2019-04-29 14:49       ` Alexey Gladkov [this message]
2019-04-29 15:39         ` Michael A. Kangin
2019-04-29 15:53           ` Leonid Krivoshein
2019-04-29 21:08             ` Alexey Gladkov
2019-04-29 16:26           ` Alexey Gladkov
2019-04-29 16:42             ` Michael A. Kangin
2019-04-29 17:25               ` Alexey Gladkov
2019-04-29 17:46                 ` Michael A. Kangin
2019-04-29 21:05                   ` 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=20190429144901.GW9023@dhcp129-178.brq.redhat.com \
    --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