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=-3.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.1 Date: Sat, 4 Dec 2021 22:04:51 +0100 From: Konstantin Lepikhov To: Distributions development Message-ID: Mail-Followup-To: Distributions development References: <499e2651-c1d7-eff1-bb7f-5c8f33525df0@ya.ru> <97aac25d-a7f5-aaec-a19e-3973be7b8c27@ya.ru> <45ac498a-58c3-1ee2-c421-b9067fe23ebb@ya.ru> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="7tTYFaB8YS/sedyD" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <45ac498a-58c3-1ee2-c421-b9067fe23ebb@ya.ru> X-Operation-System: ALT Sisyphus Sisyphus (unstable) (sisyphus) 5.10.0-lks-wks-alt13 User-Agent: Mutt/2.1.1.0.3.g6c0f75cca (2021-07-12) 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: Sat, 04 Dec 2021 21:04:55 -0000 Archived-At: List-Archive: --7tTYFaB8YS/sedyD Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Hi Антон! On 12/03/2021, at 09:21:56 PM you wrote: > Вот оно что. В qemu эта проблема решается передачей параметра -nographic. Вывод идёт в терминал. > Может и тут что-то подкрутить можно? --graphics это и есть --graphics=none. Вы сам патч смотрели? ) > > А tty0 действительно вместо tty1 нужен? Оказалось, не нужен. Прилагаю патч с учетом последних находок -- WBR et al. --7tTYFaB8YS/sedyD Content-Type: text/x-patch; charset=us-ascii Content-Disposition: attachment; filename="0092-use-tty-enable-grub-console-support.patch" >>From 9d71dadc916a20b07b024f185fe8f81a232f5044 Mon Sep 17 00:00:00 2001 From: "Konstantin A. Lepikhov" Date: Sat, 4 Dec 2021 14:51:57 +0100 Subject: [PATCH 92/94] use/tty: enable grub console support - Even if we enable console/tty support in kernel, grub should be aware too. --- features.in/tty/rootfs/image-scripts.d/50-serial | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.33.0 --7tTYFaB8YS/sedyD--