X-Loop: [email protected] Subject: bug#784: devuan-installer: GRUB fails on raid drives or no space on EFI Reply-To: Jerzy Sobczyk <[email protected]>, [email protected] Resent-From: Jerzy Sobczyk <[email protected]> Resent-To: [email protected] Resent-CC: Ralph Ronnquist <[email protected]> X-Loop: [email protected] Resent-Date: Fri, 01 Sep 2023 14:54:03 +0000 Resent-Message-ID: <[email protected]> Resent-Sender: [email protected] X-Devuan-PR-Message: report 784 X-Devuan-PR-Package: devuan-installer X-Devuan-PR-Keywords: Received: via spool by [email protected] id=B.16935799721110 (code B); Fri, 01 Sep 2023 14:54:03 +0000 Received: (at submit) by bugs.devuan.org; 1 Sep 2023 14:52:52 +0000 Delivered-To: [email protected] Received: from email.devuan.org [2a01:4f8:140:32a1::58c6:6473] by doc.devuan.org with IMAP (fetchmail-6.4.16) for <debbugs@localhost> (single-drop); Fri, 01 Sep 2023 14:52:52 +0000 (UTC) Received: from email.devuan.org by email.devuan.org with LMTP id jIAYF2/68WSxLwAAmSBk0A (envelope-from <[email protected]>) for <[email protected]>; Fri, 01 Sep 2023 14:51:27 +0000 Received: by email.devuan.org (Postfix, from userid 109) id 842C0AC6; Fri, 1 Sep 2023 14:51:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::82d; helo=mail-qt1-x82d.google.com; [email protected]; receiver=<UNKNOWN> Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) by email.devuan.org (Postfix) with ESMTPS id E9D962AB for <[email protected]>; Fri, 1 Sep 2023 14:51:17 +0000 (UTC) Received: by mail-qt1-x82d.google.com with SMTP id d75a77b69052e-41243a67b62so12042631cf.2 for <[email protected]>; Fri, 01 Sep 2023 07:51:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693579876; x=1694184676; darn=bugs.devuan.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=Kp/40NmbX3RtS1s9JDAQYM+GyKg6bpseqg2khxEvPJY=; b=dl0GpoedqKDFIx+yJk48bQf/r9YBrjo+bZy79lJR77avK+GoEFeCiwK6HBrypR3iaj mDxWeYXrz4u9bF360GMZFAJ7auBYTIT35Z5i3e0yQ1jkA3vAj+Zil4ELZBsCtnbEokUB eQ3Sj8ABHN/i8JcPjy9v4GOdWYkhepsabkmDPiEyq2Og9+vZfOqYFpvMQ9CBF8YPBKwl vOzpGYaq5WlI27T0iizYw4rLjm6y+Dm+Qc8YiXFavu1BshXdl1PvQccv6xv9CkV7RMWy hyDv5vEX0Hj1iZ9ddKxUBR2pQUR+X02hgN2h+nWS27d5WBGzIAt1aQe4tkxGxQ3lDQ4I SUfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693579876; x=1694184676; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Kp/40NmbX3RtS1s9JDAQYM+GyKg6bpseqg2khxEvPJY=; b=iF7S99B0dORQ96uIHQ5YaiGLRk+h+PORLcb2F3N4aeYc7nlvZcXmBtD54hQn0elOkZ Hoh0rZm1FxbKF39uLgLyCHHIT5fro9HPgAlKfltL/nANH1ChAr3Dpw5pswvnoZIe4Aa7 FwVZLv3d/DaqkdAzgPsj7RmIXtkYZO2fn3Dx+wThAqqKr8S90kdnKbHcC+S2bMQxSTqf SuppZVtiWaeNSCG+r3jNvkjblg24FRf587Wd0cUAPAOiNgZxjaMsoskW/gLqo5cKjGAX DWkS7hAkorJvgZQ3zGamMLu5zxEbzuUTXuIZTOdaiQKPrlAHi2gz0Fs9H/bcVnR9lU6I 9d5A== X-Gm-Message-State: AOJu0Yzep6vz6R42y4jC/Q3iRDjePAbjCux6jRgj9JU8rYABMJ0/OoWp ECWRoeyTHS2f4RVhj5ZBnw7izVXVgrG12ws1q/Loy9Z3 X-Google-Smtp-Source: AGHT+IFlGpOyVNd+qVW0hD2Xk2RHckGRvUqbz2tYXNfEKdFm20tRABwwpHs8oyABas6RPuPYdSmhQ5ta8yXqTjBa1B4= X-Received: by 2002:a05:622a:148:b0:412:f12:239f with SMTP id v8-20020a05622a014800b004120f12239fmr3493768qtw.5.1693579876557; Fri, 01 Sep 2023 07:51:16 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <CALUj2P4EjH-11B7A3UDpeG4rZTknk_5SqnyQrPX9yhPkh_YS=A@mail.gmail.com> From: Jerzy Sobczyk <[email protected]> Date: Fri, 1 Sep 2023 16:51:05 +0200 Message-ID: <CALUj2P4FeBiwMuLfHyM4eKmJwvE1m8NpH+YpjmVaUrQLvr4ynQ@mail.gmail.com> To: [email protected] Content-Type: multipart/alternative; boundary="000000000000f0e70706044d4ae5" --000000000000f0e70706044d4ae5 Content-Type: text/plain; charset="UTF-8" Package: devuan-installer Version: current Severity normal Dear Maintainer, Instalation of Dedalus on the machine with EFI and software RAID drives created earlier. Installation of GRUB has failed with a message like: grub-install dummy has failed which gives no clue for actual reason of the failure. I have accepted the failure, finished installation without GRUB and booted from old system from another partition. Then I added manually newly installed system to the GRUB menu and booted from it. After booting I had to solve two problems before I could install GRUB again from the new system: 1. There was no /sbin and /usr/sbin i the PATH for root which results with messages like: "disk 'md11' not found" even if the drive exists and is OK. After googling awhile I found that grub-install is looking for mdadm and needs it in the PATH. 2. /sys/firmware/efi/efivars was full of dump-* files. After removing this files I have managed to install GRUB from the new system. So I guess that failure of GRUB during system installation was probably caused by one of this reasons. I think that the PATH passed to grub-install by devuan-installer shoud be checked to ensure that it contains /sbin directory. And a popup shoud be shown allowing to clean EFI dumps if necessary. -- System Information: Distributor ID: Devuan Description: Devuan GNU/Linux 5 (daedalus) Release: 5 Codename: daedalus Architecture: x86_64 Kernel: Linux 6.1.0-10-amd64 (SMP w/12 CPU threads; PREEMPT) Kernel taint flags: TAINT_USER Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: OpenRC (via /run/openrc), PID 1: init LSM: AppArmor: enabled > --000000000000f0e70706044d4ae5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Package: devuan-installer<div class=3D"gmail_quote"><div d= ir=3D"ltr"><div>Version: current<br></div><div dir=3D"ltr"><br></div><div d= ir=3D"ltr">Severity=C2=A0 normal<br>Dear Maintainer,<br>Instalation of Deda= lus on the machine with EFI and software RAID drives created earlier.<br><b= r>=C2=A0Installation of GRUB has failed with a message like:<br><div>=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 grub-install dummy has fa= iled</div><div>=C2=A0which gives no clue for actual reason of the failure.<= br></div>=C2=A0</div><div dir=3D"ltr">I have accepted the failure, finished= installation without GRUB and booted from old system from another partitio= n. Then I added manually newly installed system to the GRUB menu and booted= from it. After booting I had to solve two problems before I could install = GRUB again from the new system:<br>=C2=A0 =C2=A0 =C2=A0=C2=A0 <br></div><di= v dir=3D"ltr">=C2=A01. There was no /sbin and /usr/sbin i the PATH for root= =C2=A0 which results with messages like: "disk 'md11' not foun= d" even if the drive exists and is OK. After googling awhile I found t= hat grub-install is looking for mdadm and needs it in the PATH.</div><div d= ir=3D"ltr"><br></div><div dir=3D"ltr">2. /sys/firmware/efi/efivars was full= of dump-* files. After removing this files I have managed to install GRUB = from the new system.<br><br>So I guess that failure of GRUB during system i= nstallation was probably caused by one of this reasons.<br></div><div dir= =3D"ltr"><br></div><div dir=3D"ltr">I think that the PATH passed to grub-in= stall by devuan-installer shoud be checked to ensure that it contains /sbin= directory.<br>And a popup shoud be shown allowing to clean EFI dumps if ne= cessary.<br><br><br>-- System Information:<br>Distributor ID: Devuan<br>Des= cription: =C2=A0 =C2=A0Devuan GNU/Linux 5 (daedalus)<br>Release: =C2=A0 =C2= =A0 =C2=A0 =C2=A05<br><div>Codename: =C2=A0 =C2=A0 =C2=A0 daedalus</div><di= v>Architecture: x86_64<br><br>Kernel: Linux 6.1.0-10-amd64 (SMP w/12 CPU th= reads; PREEMPT)<br>Kernel taint flags: TAINT_USER<br>Locale: LANG=3Dpl_PL.U= TF-8, LC_CTYPE=3Dpl_PL.UTF-8 (charmap=3DUTF-8), LANGUAGE not set<br>Shell: = /bin/sh linked to /bin/dash<br>Init: OpenRC (via /run/openrc), PID 1: init<= br>LSM: AppArmor: enabled<br></div></div><div class=3D"gmail_quote"><blockq= uote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1p= x solid rgb(204,204,204);padding-left:1ex"> </blockquote></div></div> </div></div> --000000000000f0e70706044d4ae5--
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 X-Loop: [email protected] From: "Devuan bug Tracking System" <[email protected]> To: Jerzy Sobczyk <[email protected]> Subject: bug#784: Acknowledgement (devuan-installer: GRUB fails on raid drives or no space on EFI) Message-ID: <[email protected]> References: <CALUj2P4FeBiwMuLfHyM4eKmJwvE1m8NpH+YpjmVaUrQLvr4ynQ@mail.gmail.com> X-Devuan-PR-Message: ack 784 X-Devuan-PR-Package: devuan-installer Reply-To: [email protected] Date: Fri, 01 Sep 2023 14:54:14 +0000 Thank you for filing a new bug report with Devuan. You can follow progress on this bug here: 784: https://bugs.devuan.org/cgi/= bugreport.cgi?bug=3D784. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): Ralph Ronnquist <[email protected]> If you wish to submit further information on this problem, please send it to [email protected]. Please do not send mail to [email protected] unless you wish to report a problem with the Bug-tracking system. --=20 784: https://bugs.devuan.org/cgi/bugreport.cgi?bug=3D784 Devuan Bug Tracking System Contact [email protected] with problems
X-Loop: [email protected] Subject: bug#784: devuan-installer: GRUB fails on raid drives or no space on EFI Reply-To: Ralph Ronnquist <[email protected]>, [email protected] Resent-From: Ralph Ronnquist <[email protected]> Resent-To: [email protected] Resent-CC: Ralph Ronnquist <[email protected]> X-Loop: [email protected] Resent-Date: Fri, 01 Sep 2023 15:44:01 +0000 Resent-Message-ID: <[email protected]> Resent-Sender: [email protected] X-Devuan-PR-Message: followup 784 X-Devuan-PR-Package: devuan-installer X-Devuan-PR-Keywords: References: <CALUj2P43eGJWW5weoY1rgEUMm2c=pPYq=ZqComnQXy7r5TZ3UA@mail.gmail.com> <CALUj2P4EjH-11B7A3UDpeG4rZTknk_5SqnyQrPX9yhPkh_YS=A@mail.gmail.com> <CALUj2P4FeBiwMuLfHyM4eKmJwvE1m8NpH+YpjmVaUrQLvr4ynQ@mail.gmail.com> <CALUj2P4FeBiwMuLfHyM4eKmJwvE1m8NpH+YpjmVaUrQLvr4ynQ@mail.gmail.com> Received: via spool by [email protected] id=B784.16935830154614 (code B ref 784); Fri, 01 Sep 2023 15:44:01 +0000 Received: (at 784) by bugs.devuan.org; 1 Sep 2023 15:43:35 +0000 Delivered-To: [email protected] Received: from email.devuan.org [2a01:4f8:140:32a1::58c6:6473] by doc.devuan.org with IMAP (fetchmail-6.4.16) for <debbugs@localhost> (single-drop); Fri, 01 Sep 2023 15:43:35 +0000 (UTC) Received: from email.devuan.org by email.devuan.org with LMTP id wfwTN3EG8mS9MQAAmSBk0A (envelope-from <[email protected]>) for <[email protected]>; Fri, 01 Sep 2023 15:42:41 +0000 Received: by email.devuan.org (Postfix, from userid 109) id D5317AC2; Fri, 1 Sep 2023 15:42:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2001:19f0:5801:e4:afc4:ef12:0:2; helo=mail.rrq.id.au; [email protected]; receiver=<UNKNOWN> Received: from mail.rrq.id.au (mail.rrq.id.au [IPv6:2001:19f0:5801:e4:afc4:ef12:0:2]) by email.devuan.org (Postfix) with ESMTPS id 1AB9B27 for <[email protected]>; Fri, 1 Sep 2023 15:42:35 +0000 (UTC) Received: from localhost (unknown [124.168.223.40]) by mail.rrq.id.au (Postfix) with ESMTPSA id AB8E3A080A for <[email protected]>; Sat, 2 Sep 2023 01:42:30 +1000 (AEST) Date: Sat, 2 Sep 2023 01:42:28 +1000 From: Ralph Ronnquist <[email protected]> To: [email protected] Message-ID: <ZPIGZGnAyLxjN3Xr@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Thanks, there are a couple of issues here and I've inlined a couple of notes below. On Fri, 1 Sep 2023 16:51:05 +0200 Jerzy Sobczyk <[email protected]> wrote: > Package: devuan-installer > Version: current > > Severity normal > Dear Maintainer, > Instalation of Dedalus on the machine with EFI and software RAID drives > created earlier. > > Installation of GRUB has failed with a message like: > grub-install dummy has failed > which gives no clue for actual reason of the failure. An EFI installation will require an EFI partition "outside" of any software RAID, because the kernel and the RAID software needs to boot up for implementing that. That EFI partition needs to be mounted at /boot/efi of the target filesystem when you run grub-install. I'm guessing something of that was not set up fully correct during your installation; though I can't guess why. > I have accepted the failure, finished installation without GRUB and booted > from old system from another partition. Then I added manually newly > installed system to the GRUB menu and booted from it. After booting I had > to solve two problems before I could install GRUB again from the new system: > > 1. There was no /sbin and /usr/sbin i the PATH for root which results > with messages like: "disk 'md11' not found" even if the drive exists and is > OK. After googling awhile I found that grub-install is looking for mdadm > and needs it in the PATH. Your comment most likely comes as a result of using "su" rather than "su -" to gain root access. See https://wiki.debian.org/NewInBuster "The su command in buster is provided by the util-linux source package, instead of the shadow source package, and no longer alters the PATH variable by default." > > 2. /sys/firmware/efi/efivars was full of dump-* files. After removing this > files I have managed to install GRUB from the new system. > > So I guess that failure of GRUB during system installation was probably > caused by one of this reasons. Yes if efivars is full then the boot record cannot be added. I'm not sure when and why it gets full though, but I don't think it happened at this installation. > > I think that the PATH passed to grub-install by devuan-installer shoud be > checked to ensure that it contains /sbin directory. > And a popup shoud be shown allowing to clean EFI dumps if necessary. Yes that sounds like a handy feature; though that would be a grub enhancement. The installer merely installs the grub package. > > -- System Information: > Distributor ID: Devuan > Description: Devuan GNU/Linux 5 (daedalus) > Release: 5 > Codename: daedalus > Architecture: x86_64 > > Kernel: Linux 6.1.0-10-amd64 (SMP w/12 CPU threads; PREEMPT) > Kernel taint flags: TAINT_USER > Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8), LANGUAGE > not set > Shell: /bin/sh linked to /bin/dash > Init: OpenRC (via /run/openrc), PID 1: init > LSM: AppArmor: enabled > > regards, Ralph. In-Reply-To: <CALUj2P4FeBiwMuLfHyM4eKmJwvE1m8NpH+YpjmVaUrQLvr4ynQ@mail.gmail.com>
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 X-Loop: [email protected] From: "Devuan bug Tracking System" <[email protected]> To: Ralph Ronnquist <[email protected]> Subject: bug#784: Info received (devuan-installer: GRUB fails on raid drives or no space on EFI) Message-ID: <[email protected]> References: <ZPIGZGnAyLxjN3Xr@localhost> X-Devuan-PR-Message: ack-info 784 X-Devuan-PR-Package: devuan-installer Reply-To: [email protected] Date: Fri, 01 Sep 2023 15:44:02 +0000 Thank you for the additional information you have supplied regarding this bug report. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): Ralph Ronnquist <[email protected]> If you wish to submit further information on this problem, please send it to [email protected]. Please do not send mail to [email protected] unless you wish to report a problem with the Bug-tracking system. --=20 784: https://bugs.devuan.org/cgi/bugreport.cgi?bug=3D784 Devuan Bug Tracking System Contact [email protected] with problems
Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.
Devuan Bugs Owner <[email protected]>.
Last modified:
Thu, 28 Nov 2024 08:39:01 UTC