From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Resent-From: Michael Shigorin Resent-Date: Tue, 23 Apr 2019 16:00:17 +0300 Resent-Message-ID: <20190423130017.GO18867@imap.altlinux.org> Resent-To: make-initrd@lists.altlinux.org Envelope-to: ar@cs.msu.ru Delivery-date: Tue, 23 Apr 2019 01:50:45 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=aDyeVqJ4bFaha9PwlqvOp6WWWd1hCVSNTEpIxd2TDzg=; b=YZAPRNM6LIUzgpNktculhwJGY1f4IyUlxnBZgu9v1uMpBy9Qp10rD9BTvt407/1A7I l+0UwCrG7fPUP9KTrCxlCIVMYhfEzI3KWU2cr/TC2Hdhd52717KWMfSsMFJU5qnxcVTt 06JeFj05Gg+tUQl+y5zelrzeUQgyHQ5sB6olyc1svHDzLn7lx/1ucNeHSkjzUOlPDyzk EtI63QdJnh2PPhvkdKnnnG+JrR4/asdWsF1XOPuNQAeP1XRtCAmi58UruA/0ZaT35N1O kQi8fooGbVs1HQS3vc5SrFJuVk9gjDhPJjO9gLZPREBOs04J4Ls+B++Ee37LS8kg5Uef bvOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=aDyeVqJ4bFaha9PwlqvOp6WWWd1hCVSNTEpIxd2TDzg=; b=gv1CQMC/zYJpMXN4KWy6vsp91LbNOdVW1KLGtI2Z6qf8Bcki61r4GJqLlt4RxFzDuZ qcJfdHcQbT/qmqcPQqOtRaIy0WZU6YG1IeHozt2nGvR2WYgzwSqA8eZ0CLIAXK5BmXO+ hGgJhkDEUexGHpqrA+2PZwht1xsIejrrWunuu+h27HZJtESrBk4UgKLdgyroIXGyBmVB umXioaZpeGLNcfq4dN6FjUGkpXJ6Dot1JNm+0SmMnohnEStV2klegI1cj7vn6tGt57Vl QhpVMV+vdQshDaStm3Z/bAYu5M6kNLiB7g+5dt2rTUORoSA/RLeS0Sd/FFVwyVXD2mMK HNLg== X-Gm-Message-State: APjAAAVdJg+ALGKsAUxn34P6xVMJP2xJv8l4dAHtx4K8KRPvo2WNFOzK mh8T+wnRfBxzOVOGueRCHf2GcLEv X-Google-Smtp-Source: APXvYqzVyahQSwQykjOua4ZRqz1wjyV91uio2dUheTJYEdvODr/u1o1FCSwTr2a31kmGEEJYzmqQNA== X-Received: by 2002:a2e:7c02:: with SMTP id x2mr11206519ljc.176.1555973439324; Mon, 22 Apr 2019 15:50:39 -0700 (PDT) To: "Michael A. Kangin" , Alexey Gladkov References: <489be984-aa29-53cf-c0a8-e4da309efc8a@complife.ru> <5b6ad98a-29bc-1c16-27df-d0a82b3e3adc@gmail.com> <28dad1c6-a80c-7b5d-a6b8-2c6a8f404842@complife.ru> <20190419210447.GV21174@Legion-PC.fortress> <7f74a951-a415-1581-4df0-909d5ba75020@complife.ru> <20190421134343.GW21174@Legion-PC.fortress> <20190422000450.GY21174@Legion-PC.fortress> <20190422191435.GG21174@Legion-PC.fortress> <6091f200-06d7-b8d7-48bc-6965bd9e3df2@complife.ru> <28c245e8-187d-b300-31f8-e8c9b762f75f@complife.ru> From: Leonid Krivoshein Message-ID: Date: Tue, 23 Apr 2019 01:48:25 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <28c245e8-187d-b300-31f8-e8c9b762f75f@complife.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: ru X-SA-Exim-Connect-IP: 194.107.17.36 X-SA-Exim-Mail-From: klark.devel@gmail.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.cs.msu.ru X-Spam-Level: ** X-Spam-Status: No, score=2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_SOFTFAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mail.cs.msu.ru) Cc: antohami@altlinux.org Subject: Re: [make-initrd] [devel] syslinux X-BeenThere: make-initrd@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Apr 2019 13:00:19 -0000 Archived-At: List-Archive: Я могу собрать тестовое задание на основе этого: http://git.altlinux.org/people/legion/packages/make-initrd.git ? Это решит проблемы с шеллом? А то завтра хотел продолжить на железе... 23.04.2019 01:38, Michael A. Kangin пишет: > On 04/23/2019 12:12 AM, Michael A. Kangin wrote: > >>> Я для себя генерирую просто ещё один образ с башем и утилитами. >> >> Кстати, а как бы вы в такой образ клали dropbear-scp? Он конфликтует >> по имени с opensshшным, в системе его всё время держать не получится... > > Кстати о dropbear, ему нужен /dev/pts, иначе к нему подключиться не > удаётся: > [4752] Apr 22 22:22:09 pty_allocate: openpty: No such file or directory > [4752] Apr 22 22:22:09 No pty was allocated, couldn't execute > [4752] Apr 22 22:22:09 Exit (root): Exited normally > > В initrd оно само не монтируется - в fstab при генерации не попадает, > но если смонтировать вручную, то можно подключаться нормально. > > > Кстати, он с dropbear вообще оказывается в образ не собирается, даже > если добавить syslog дополнительно, да и klogd кудато делся... > > [root@Sisyphus 1]# cat /etc/initrd.mk > # trying to detect modules and features to access to root volume > AUTODETECT = all > MODULES_PRELOAD += autofs4 > FEATURES += nfsroot dropbear syslog > DISABLE_GUESS += ucode > MODULES_ADD += ipv6 > > > [root@Sisyphus 1]# make-initrd > Config file: /etc/initrd.mk > Generating module dependencies on host ... > Creating initrd image ... > Adding NFS root support ... > Adding syslog support ... > initrd-cp: error: /sbin/klogd: No such file or directory > Adding dropbear server ... > Adding modules ... > Adding modules (preload) ... > Adding rescue modules ... > Adding module dependencies ... > Adding modules to run inside qemu ... > Generating module dependencies in image ... > Adding initrd shell support (shell mode) ... > Packed modules: 8139cp 8390 9pnet 9pnet_virtio af_packet ahci > ata_generic ata_piix autofs4 caif_virtio cdrom crc-ccitt crc16 > crc32c-intel crc32c_generic crypto_engine drm drm_kms_helper e100 > e1000 evdev ext4 failover fscache fscrypto grace hid hid-generic > i2c-core input-leds ipv6 jbd2 libahci libata lockd mbcache mii > ne2k-pci net_failover nfs pata_acpi pcnet32 rng-core rpmsg_core > scsi_mod serio_raw sr_mod sunrpc ttm virtio virtio-gpu virtio-rng > virtio_balloon virtio_blk virtio_console virtio_crypto virtio_input > virtio_mmio virtio_net virtio_pci virtio_ring virtio_rpmsg_bus > virtio_scsi vmw_vsock_virtio_transport > vmw_vsock_virtio_transport_common vringh vsock > Sorting sysvinit services ... > sort-lsb: Error: Unable to find dependency for 'uevent' on K0: $syslog > sort-lsb: Error: Unmet found at runlevel K0 in services: dropbear > klogd mountsrc syslogd udev uevent > make: *** [/usr/share/make-initrd/mk/rules.mk:59: sort-services] Error 1 > make: *** [/usr/share/make-initrd/mk/make-initrd.mk:29: all] Error 1 > -- Best regards, Leonid Krivoshein.