Comments (4)
I'm seeing the same problem trying to run update-grub from inside a chrooted env from the 11.10 live CD:
update-grub
Generating grub.cfg ...
[: 68: missing ]
/etc/grub.d/10_linux: 68: xUNKNOWN (0x2fc12fc1): not found
done
Looking at the code in /etc/grub.d/10_linux, it looks like the offending line is this:
LINUX_ROOT_STAT=stat -f --printf=%T / || true
That stat command returns "UNKNOWN (0x2fc12fc1)" on 11.10 for a zfs mount.
I don't see any similar lines in the upstream grub2 in 11.10, so I'm not sure what it's supposed to do (other than the obvious following stuff for btrfs).
Thankfully, it doesn't seem to affect setting up the grub.cfg, zfs entries.
from pkg-zfs.
The issue with the "[: 68: missing ]" error is this line in /etc/grub.d/10_linux:
if [ "x${LINUX_ROOT_FS}" = xbtrfs || "x${LINUX_ROOT_STAT}" = xbtrfs ]; then
The fix is to change it to this:
if [ "x${LINUX_ROOT_FS}" = xbtrfs ] || [ "x${LINUX_ROOT_STAT}" = xbtrfs ]; then
from pkg-zfs.
I already fixed this in-tree as
if [ "x${LINUX_ROOT_FS}" = xbtrfs -o "x${LINUX_ROOT_STAT}" = xbtrfs ]; then
Let me double check whether I published it for all distro releases.
from pkg-zfs.
Can this issue be closed?
from pkg-zfs.
Related Issues (20)
- PPA packages for xenial / yakkety HOT 2
- Ubuntu 17.04, initramfs zfs script does not honor datasets with canmount property set to none HOT 6
- Ubuntu 14.04 ubuntu-zfs Depends: zfs-dkms but it is not installable HOT 3
- 0.6.5.11 hasn't been built for Ubuntu stable ppa HOT 1
- zfs-mount.service Working Directory Issue
- ZFS daily/stable PPA for Ubuntu 16.04 xenial possible? HOT 4
- CentsOS 7 not booting after 'yum update' - zfs kernel module missing (using zfs-kmod)
- Root on Ubuntu 18.04 "recordsize" too large?
- Problem EL7 (CentOS RHEL) to a Native ZFS Root Filesystem HOT 4
- zvol for swap and sync=? HOT 5
- Repository ubuntu server 18.04 no release file found
- EL7 (CentOS 7.6) After Native ZFS Installation, Second Array causes grub to fail: No Device found HOT 2
- Can the root be on a RAID-Z1?
- Missing command detecting ZFS-ID
- Error during upgrade to 0.8.1-1ubuntu14.2 HOT 1
- ZFS on Ubuntu16 (booting from non-zfs volume) does not mount /var from ZFS-Dataset HOT 1
- ZFS_INITRD_ADDITIONAL_DATASETS does not work
- Importing multiple encrypted pools at boot HOT 3
- compatibility with `openrc` (Devuan) HOT 1
- Undeclared dependency on GNU awk in vdev_id
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pkg-zfs.