]> git.proxmox.com Git - zfsonlinux.git/commit
fix #4440: cherry-pick patch for mountpoint=legacy on /
authorStoiko Ivanov <s.ivanov@proxmox.com>
Mon, 2 Jan 2023 14:25:49 +0000 (15:25 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 2 Jan 2023 16:03:49 +0000 (17:03 +0100)
commitd0e8c24e02d18ae653951396120467c3055e324f
treef20411d7ddd65b5e35979853e32ca8f141f4c7a7
parent796e3f981ff4670411f7da2eadd944e4bfc2ff2a
fix #4440: cherry-pick patch for mountpoint=legacy on /

As reported having set 'mountpoint=legacy' on the root dataset (for a
default install this would be 'rpool/ROOT/pve-1') for mounting through
e.g. /etc/fstab breaks booting in initramfs

The cherry-picked patch is already applied to zfs-2.1.8-staging
upstream so will be included in the next zfs point release.

reproduced the issue on a VM with ZFS on root by:
* booting into a PVE 7.3 iso (to have zfs and an inactive
  rpool/ROOT/pve-1)
* `zpool import -ocachefile=none -N -f rpool
* `zfs set mountpoint=legacy rpool/ROOT/pve-1`
* `mount -t zfs rpool/ROOT/pve-1 /mnt
* `echo "rpool/ROOT/pve-1 / zfs defaults 0 0" >> /mnt/etc/fstab`
* `zpool export rpool`
* reboot - the boot breaks with zfs-initramfs 2.1.7-pve1 but works
  with this patch applied

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
debian/patches/0012-initramfs-Fix-legacy-mountpoint-rootfs.patch [new file with mode: 0644]
debian/patches/series