]> git.proxmox.com Git - grub2.git/commit
Cope with / being on a ZFS root dataset
authorColin Watson <cjwatson@ubuntu.com>
Mon, 29 Oct 2018 12:24:41 +0000 (12:24 +0000)
committerSteve McIntyre <93sam@debian.org>
Tue, 25 Jun 2019 09:11:12 +0000 (10:11 +0100)
commit8cd844d0d5011efe6e184fa4261d0113afe71fdb
tree658414fe297af8f6380bee5ecedf6f47450d1556
parent5a1fd4cbda0d2a9b31367ebf56503da5323a866a
Cope with / being on a ZFS root dataset

If / is on the root dataset in a ZFS pool, then ${bootfs} will be set to
"/" (whereas if it is on a non-root dataset, there will be no trailing
slash).  Passing "root=ZFS=${rpool}/" will fail to boot, but
"root=ZFS=${rpool}" works fine, so strip the trailing slash.

Fixes: https://savannah.gnu.org/bugs/?52746
Tested-by: Fejes József <jozsef.fejes@gmail.com>
Signed-off-by: Colin Watson <cjwatson@ubuntu.com>
Bug: https://savannah.gnu.org/bugs/?52746
Bug-Debian: https://bugs.debian.org/886178
Last-Update: 2018-10-29

Patch-Name: zfs-root-dataset.patch

Gbp-Pq: Name zfs-root-dataset.patch
util/grub.d/10_linux.in
util/grub.d/20_linux_xen.in