Coder Social home page Coder Social logo

grub problems about pkg-zfs HOT 4 CLOSED

zfsonlinux avatar zfsonlinux commented on July 16, 2024
grub problems

from pkg-zfs.

Comments (4)

nergdron avatar nergdron commented on July 16, 2024

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.

rlaager avatar rlaager commented on July 16, 2024

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.

dajhorn avatar dajhorn commented on July 16, 2024

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.

rlaager avatar rlaager commented on July 16, 2024

Can this issue be closed?

from pkg-zfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.