Bug#1051507: grub-common.service fails on read-only root

Jörg Sommer joerg at jo-so.de
Fri Sep 8 20:50:23 BST 2023


Package: grub-common
Version: 2.12~rc1-9
Severity: normal

Hi,

my root filesystem (including /boot) is mounted read-only, which makes the
service grub-common fail:

```text
% journalctl -b -u grub-common
Sep 08 21:15:44 systemd[1]: Starting grub-common.service - Record successful boot for GRUB...
Sep 08 21:15:44 grub-editenv[865]: grub-editenv: Fehler: »/boot/grub/grubenv« kann nicht geöffnet werden: Das Dateisystem ist nur lesbar.
Sep 08 21:15:44 systemd[1]: grub-common.service: Main process exited, code=exited, status=1/FAILURE
Sep 08 21:15:44 systemd[1]: grub-common.service: Failed with result 'exit-code'.
Sep 08 21:15:44 systemd[1]: Failed to start grub-common.service - Record successful boot for GRUB.
```

I've added an additional condition:

```text
[Unit]
ConditionPathIsReadWrite=/boot/grub/grubenv
```

Regards,

Jörg


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/Linux_vg-Linux_Root / ext4 ro,noatime,errors=remount-ro 0 0
/dev/mapper/Linux_vg-Linux_Var /var ext4 rw,relatime 0 0
/dev/mapper/Linux_vg-Linux_Var /home ext4 rw,relatime 0 0
/dev/mapper/Linux_vg-Linux_Var /srv ext4 rw,relatime 0 0
*********************** END /proc/mounts

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-0-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages grub-common depends on:
ii  gettext-base        0.21-13+b1
ii  libc6               2.37-7
ii  libdevmapper1.02.1  2:1.02.185-2
ii  libefiboot1         37-6
ii  libefivar1          37-6
ii  libfreetype6        2.13.2+dfsg-1
ii  libfuse3-3          3.14.0-4
ii  liblzma5            5.4.4-0.1

Versions of packages grub-common recommends:
ii  os-prober  1.81

Versions of packages grub-common suggests:
ii  console-setup  1.222
ii  desktop-base   12.0.6+nmu1
pn  grub-emu       <none>
pn  mtools         <none>
pn  multiboot-doc  <none>
pn  xorriso        <none>

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 269 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-grub-devel/attachments/20230908/fdb36979/attachment.sig>


More information about the Pkg-grub-devel mailing list