/etc/grub.d/10_linux_zfs doesn't skip non-linux zpools
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
# 1. Symptoms: `update-grub` fails when trying to access an os-release file
root@
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/
Generating grub configuration file ...
/etc/
done
# 2. Cause: 10_linux_zfs is trying to access /etc/os-release in all zpool, even when the system is not Linux based
+ machine_
+ . /tmp/zfsmnt.
/etc/
+ pretty_name=
+ boot_list=\n
+ boot_list=
+ on_exit
+ zpool export rpool
+ mountpoint -q /tmp/zfsmnt.AC9sAy
+ true
+ rmdir /tmp/zfsmnt.AC9sAy
+ rm -rf /tmp/zfstmp.lEMWy3
+ exit 0
done
# 3. Quick fix (for /etc/os-release)
in /etc/grub.
if [ -z "${etc_dir}" ]; then
by:
if [ -z "${etc_dir}" ] || [ ! -f "${etc_
then when the file is not found, the zpool is skipped
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/
Generating grub configuration file ...
Warning: Ignoring rpool/ROOT/
Warning: Ignoring rpool/ROOT/
Warning: Ignoring rpool/ROOT/
Warning: Ignoring rpool/ROOT/
Found linux image: vmlinuz-
Found initrd image: initrd.
Found linux image: vmlinuz-
Found initrd image: initrd.
Found linux image: vmlinuz-
Found initrd image: initrd.
Found linux image: vmlinuz-
Found initrd image: initrd.
done
ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: grub-common 2.04-1ubuntu12
ProcVersionSign
Uname: Linux 5.3.0-19-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu8
Architecture: amd64
CurrentDesktop: XFCE
Date: Sun Oct 27 00:30:31 2019
SourcePackage: grub2
UpgradeStatus: Upgraded to eoan on 2019-10-26 (0 days ago)
modified.
mtime.conffile.
Status changed to 'Confirmed' because the bug affects multiple users.