HomeFreeBSD

libbe(3): Properly account for altroot when creating new BEs

Description

libbe(3): Properly account for altroot when creating new BEs

Previously we would blindly copy the 'mountpoint' property, which includes
the altroot. The altroot needs to be snipped off prior to setting it on the
new BE, though, or you'll end up with a new BE and a mountpoint of /mnt with
altroot=/mnt

MFC after: 3 days

Details

Provenance
kevansAuthored on
Parents
rS340592: bectl(3)/libbe(3): Allow BE root to be specified
Branches
Unknown
Tags
Unknown