HomeFreeBSD

initramfs: use correct dataset for rootfs on rollback=1

Description

initramfs: use correct dataset for rootfs on rollback=1

When booting with root=zfs:rpool/myrootfs@foosnapshot rollback=1,
myrootfs and its descendants get rolled back to foosnapshot, however
ZFS_BOOTFS still contains myrootfs@foosnapshot instead of the
actually desired value of myrootfs.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Signed-off-by: Daniel Reichelt <hacking@nachtgeist.net>
Closes #12585
Closes #12586

Details

Provenance
nachtgeist <nachtgeist@users.noreply.github.com>Authored on Oct 8 2021, 6:16 PM
GitHub <noreply@github.com>Committed on Oct 8 2021, 6:16 PM
Parents
rG97bbeeb93803: Fail invalid incremental recursive send gracefully
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGa5b464263bc1: initramfs: use correct dataset for rootfs on rollback=1 (authored by nachtgeist <nachtgeist@users.noreply.github.com>).Oct 8 2021, 6:16 PM