From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ya.ru; s=mail; t=1638541317; bh=DZwOr8/COeihg9YXXN1WWIv0b5cNRYdwW3GDsD393Tg=; h=In-Reply-To:From:Subject:References:Date:Message-ID:To; b=ZH0hqi3MMz324k8CXWKWBf/3+VtgpdKShUDny4eD2P7Dl1Eo+YnDWdW8few4gshcq 2ORu4cgUBzbBxVk7BFkxBGyWwOcoNvSRobjoM5fL+en/jJCQ2qRXlgLVzyFEb8NfuK Na7hBaDn+L24rwv/U2yM+Rv6gVAG0NLqhMutwOFs= Authentication-Results: sas1-f45a06513e06.qloud-c.yandex.net; dkim=pass header.i=@ya.ru X-Yandex-Fwd: 2 Message-ID: <45ac498a-58c3-1ee2-c421-b9067fe23ebb@ya.ru> Date: Fri, 3 Dec 2021 21:21:56 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Content-Language: ru To: devel-distro@lists.altlinux.org References: <88494e69-2602-4c8f-a8a1-879425ae3ff4@ya.ru> <499e2651-c1d7-eff1-bb7f-5c8f33525df0@ya.ru> <97aac25d-a7f5-aaec-a19e-3973be7b8c27@ya.ru> From: =?UTF-8?B?0JDQvdGC0L7QvSDQnNC40LTRjtC60L7Qsg==?= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [devel-distro] Q: virt-install vs vm/builder qcow2 X-BeenThere: devel-distro@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Distributions development List-Id: Distributions development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Dec 2021 14:22:00 -0000 Archived-At: List-Archive: 03.12.2021 20:07, Konstantin Lepikhov пишет: > Hi Konstantin! > > On 12/03/2021, at 12:04:05 PM you wrote: > > >> (тут должна появиться текстовая консоль grub но ничего не происходит и >> висит) > Сам нашел, сам и исправил ) > > diff --git a/conf.d/vm.mk b/conf.d/vm.mk > index 82c991e7..ef774f22 100644 > --- a/conf.d/vm.mk > +++ b/conf.d/vm.mk > @@ -24,12 +24,13 @@ vm/systemd-net: vm/systemd use/net-eth/networkd-dhcp use/net-ssh \ > # vm/net or vm/systemd-net > vm/cloud-systemd: vm/systemd-net mixin/cloud-init use/vmguest/kvm use/tty/S0 \ > use/net/networkd/resolved > + @$(call set,KFLAVOURS,centos) > @$(call add,THE_KMODULES,drm) > @$(call add,VM_INITRDMODULES,sr_mod) > @$(call add,BASE_PACKAGES,update-kernel) > @$(call add,BASE_PACKAGES,apt-scripts) > @$(call add,BASE_PACKAGES,systemd-settings-disable-kill-user-processes) > - @$(call add,DEFAULT_SERVICES_ENABLE,getty@tty1 getty@ttyS0) > + @$(call add,DEFAULT_SERVICES_ENABLE,getty@tty0 getty@ttyS0) > @$(call add,DEFAULT_SERVICES_DISABLE,consolesaver) > > vm/cloud-sysv: vm/net mixin/cloud-init use/vmguest/kvm use/power/acpi/button; @: > diff --git a/features.in/tty/config.mk b/features.in/tty/config.mk > index adca3ae1..252e4174 100644 > --- a/features.in/tty/config.mk > +++ b/features.in/tty/config.mk > @@ -14,4 +14,4 @@ use/tty/S0 use/tty/SIF0 use/tty/AMA0: use/tty/%: use/tty > @$(call add,TTY_DEV,tty$*) > @$(call set,TTY_RATE,115200) > @$(call add,SYSLINUX_CFG,tty$*) > - @$(call add,BASE_BOOTARGS,console=tty1 console=$$(TTY_DEV)$(comma)$$(TTY_RATE)n8) > + @$(call add,BASE_BOOTARGS,console=tty0 console=$$(TTY_DEV)$(comma)$$(TTY_RATE)) > diff --git a/features.in/tty/rootfs/image-scripts.d/50-serial b/features.in/tty/rootfs/image-scripts.d/50-serial > index 411fbc18..320f93b6 100755 > --- a/features.in/tty/rootfs/image-scripts.d/50-serial > +++ b/features.in/tty/rootfs/image-scripts.d/50-serial > @@ -4,6 +4,7 @@ > BIN=/sbin/agetty > CFG=/etc/inittab > SEC=/etc/securetty > +GRUB=/etc/default/grub > > [ -n "$GLOBAL_TTY_DEV" -a -n "$GLOBAL_TTY_RATE" ] || exit 0 > [ -s "$CFG" -a -x "$BIN" ] || exit 0 > @@ -16,3 +17,8 @@ if ! grep -q "$BIN" "$CFG"; then > n=$(($n+1)) > done > fi > + > +if [ -s "$GRUB" ]; then > + echo 'GRUB_TERMINAL="serial console"' >> "$GRUB" > + echo "GRUB_SERIAL_COMMAND=\"serial --speed=$GLOBAL_TTY_RATE --unit=0 --word=8 --parity=no --stop=1\"" >> "$GRUB" > +fi > > ^ вот это исправление в features.in/tty/rootfs/image-scripts.d/50-serial > для GRUB_TERMINAL и RUB_SERIAL_COMMAND помогло. > Вот оно что. В qemu эта проблема решается передачей параметра -nographic. Вывод идёт в терминал. Может и тут что-то подкрутить можно? А tty0 действительно вместо tty1 нужен? -- С уважением, Антон Мидюков