zfsonlinux / pkg-zfs

Native ZFS packaging for Debian and Ubuntu
https://launchpad.net/~zfs-native/+archive/daily
308 stars 55 forks source link

Bug in zfs-initramfs #41

Closed dajhorn closed 11 years ago

dajhorn commented 12 years ago

Hi, I do not have access to the ZoL bug system, so I thought I should bring this little bug to your attention:

file: /usr/share/initramfs-tools/scripts/zfs

line 92: ZFS_STDERR=$(zfs set -o mountpoint=/ "$ZFS_BOOTFS" 2>&1)

should be 92 ZFS_STDERR=$(zfs set mountpoint=/ "$ZFS_BOOTFS" 2>&1)

ie. just remove the "-o".

This would also be a good place to do a 91.5 ZFS_STDERR=$(zfs set canmount=noauto "$ZFS_BOOTFS" 2>&1)

The "canmount=noauto" should be set on all zfs root filesystems (important if there is more than one), but I haven't seen this mentioned in any of the HowTo's related to ZoL root filesystems.

Cheers.