From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 093F4158089 for ; Thu, 19 Oct 2023 19:38:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 74E242BC0CF; Thu, 19 Oct 2023 19:38:51 +0000 (UTC) Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 27A132BC017 for ; Thu, 19 Oct 2023 19:38:51 +0000 (UTC) Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1qtYr3-0001eY-G1 for gentoo-user@lists.gentoo.org; Thu, 19 Oct 2023 21:38:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Grant Edwards Subject: [gentoo-user] Re: OFF TOPIC Need Ubuntu network help: boot loader info Date: Thu, 19 Oct 2023 19:38:44 -0000 (UTC) Message-ID: References: <17dbcf2a-13c7-b8c0-69f1-a09e5288cfd5@gmail.com> <2581583.Lt9SDvczpP@rogueboard> <2647385.k3LOHGUjKi@rogueboard> <48ea62a7-962e-feb5-218b-b08d73b645ab@gmail.com> <20231019000643.44bf5a62@digimed.co.uk> <21ad1989-913f-893d-8cb9-b5537100668a@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User-Agent: slrn/1.0.3 (Linux) X-Archives-Salt: 9d214845-f95b-4b9b-8c7d-ba6a42acfd57 X-Archives-Hash: cf4785a9b88cdfa51bea7d739717c389 On 2023-10-19, Dale wrote: > That config kinda reminds me of the old grub.  A title line, location of > kernel and then options.  Sounds easy enough.  The new grub config is > almost impossible to config by hand.  They had to make a tool to do it.  > That says a lot there.  ;-)  Manually configuring Grub2 for a single OS is pretty trivial. Here's a typical grub.cfg file: -----------------------------grub.cfg------------------------------------ timeout=10 default=0 root (hd0,0) menuentry vmlinuz-5.15.135-gentoo { linux /boot/vmlinuz-5.15.135-gentoo root=/dev/sda1 } menuentry vmlinuz-5.10.76-gentoo-r1 { linux /boot/vmlinuz-5.10.76-gentoo-r1 root=/dev/sda1 } ------------------------------------------------------------------------ If you want to get fancy and use labels and UUIDs, it looks like this ------------------------------grub.cfg---------------------------------- search --no-floppy --label ROOT --set root timeout=10 default=0 menuentry vmlinuz-5.15.135-gentoo { linux /boot/vmlinuz-5.15.135-gentoo root=PARTUUID=fd96ac2d-5521-c043-9fdb-5067b48fb063 } menuentry vmlinuz-5.15.127-gentoo { linux /boot/vmlinuz-5.15.127-gentoo root=PARTUUID=fd96ac2d-5521-c043-9fdb-5067b48fb063 } ------------------------------------------------------------------------ Most distros add 2 or 3 layers of obsfucation on top of grub.cfg with scripts upon scripts upon scripts that read a dozen or so config files and automagically detect kernels and initrds and other OSes and then generate a grub.cfg file containing many hundreds of lines of stuff. If you just boot one OS with a "main" kernel and a "backup" kernel, then all you need is what you see above.