[Bug 2004133] Re: package grub-pc 2.06-2ubuntu12.1 failed to install/upgrade: installed grub-pc package post-installation script subprocess returned error exit status 1
Julian Andres Klode
2004133 at bugs.launchpad.net
Tue Aug 15 10:31:39 UTC 2023
This bug only affects zfs systems that have modified fstab without
reloading systemd.
Essentially we run find on $boot_dir which is set as
# read available kernels from /boot
boot_dir="$(try_default_layout_bpool "${dataset}" "${mntdir}")"
if [ -z "${boot_dir}" ]; then
boot_dir=$(get_system_directory "${dataset}" "boot" "false" "${mntdir}" "${etc_dir}")
fi
which somehow ends up being
'mount: (hint) your fstab has been modified, but systemd still uses\n
the old version; use 'systemctl daemon-reload' to
reload.\n/tmp/zfsmnt.liPzsI/boot'
It's not clear to me why the hint is on stdout in the first place.
This then causes the script to exit, which causes the trap to run which
is broken due to bug 2031042.
** Changed in: grub2 (Ubuntu)
Importance: Undecided => Medium
** Summary changed:
- package grub-pc 2.06-2ubuntu12.1 failed to install/upgrade: installed grub-pc package post-installation script subprocess returned error exit status 1
+ grub zfs integration fails when fstab has been modified without reloading systemd
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/2004133
Title:
grub zfs integration fails when fstab has been modified without
reloading systemd
Status in grub2 package in Ubuntu:
Triaged
Bug description:
dont know
ProblemType: Package
DistroRelease: Ubuntu 22.10
Package: grub-pc 2.06-2ubuntu12.1
ProcVersionSignature: Ubuntu 5.19.0-29.30-generic 5.19.17
Uname: Linux 5.19.0-29-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.23.1-0ubuntu3
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Mon Jan 23 21:25:33 2023
ErrorMessage: installed grub-pc package post-installation script subprocess returned error exit status 1
ProcCmdLine: BOOT_IMAGE=/BOOT/ubuntu_7ydweu@/vmlinuz-5.19.0-29-generic root=ZFS=rpool/ROOT/ubuntu_7ydweu ro quiet splash vt.handoff=1
Python3Details: /usr/bin/python3.10, Python 3.10.7, python3-minimal, 3.10.6-1
PythonDetails: N/A
RelatedPackageVersions:
dpkg 1.21.9ubuntu1
apt 2.5.3
SourcePackage: grub2
Title: package grub-pc 2.06-2ubuntu12.1 failed to install/upgrade: installed grub-pc package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/2004133/+subscriptions
More information about the foundations-bugs
mailing list