Re: Beadm can't create snapshot
- Reply: Peter Jeremy : "Re: Beadm can't create snapshot"
- In reply to: Kyle Evans : "Re: Beadm can't create snapshot"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 23 Aug 2022 13:19:34 UTC
Van: Kyle Evans <kevans@freebsd.org> Datum: maandag, 22 augustus 2022 17:11 Aan: Ronald Klop <ronald-lists@klop.ws> CC: Peter Jeremy <peterj@freebsd.org>, freebsd-current@freebsd.org, Ryan Moeller <freqlabs@freebsd.org>, "Patrick M. Hausen" <pmh@hausen.com> Onderwerp: Re: Beadm can't create snapshot > > On Mon, Aug 22, 2022 at 5:10 AM Ronald Klop <ronald-lists@klop.ws> wrote: > > > > > > > > Van: Peter Jeremy <peterj@freebsd.org> > > Datum: maandag, 22 augustus 2022 10:45 > > Aan: "Patrick M. Hausen" <pmh@hausen.com> > > CC: Ryan Moeller <freqlabs@freebsd.org>, freebsd-current@freebsd.org > > Onderwerp: Re: Beadm can't create snapshot > > > > On 2022-Aug-17 18:07:20 +0200, "Patrick M. Hausen" <pmh@hausen.com> wrote: > > >Isn't beadm retired in favour of bectl? > > > > bectl still has a number of bugs: > > 1) The output from "bectl list" is in filesystem/bename order rather > > than creation date order. This is an issue if you use (eg) git > > commit hashes as the name. > > 2) "bectl activate" doesn't update /boot/loader.conf so the wrong > > root filesystem is mounted. > > > > That said "bectl create" appears to be a workable replacement for > > "beadm create" and avoids the current "'snapshots_changed' is > > readonly" bugs. > > > > -- > > Peter Jeremy > > ________________________________ > > > > > > > > > > Hi, > > > > From man bectl: > > activate [-t | -T] beName > > Activate the given beName as the default boot filesystem. If > > the -t flag is given, this takes effect only for the next boot. > > Flag -T removes temporary boot once configuration. Without > > temporary configuration, the next boot will use zfs dataset > > specified in boot pool bootfs property. > > > > So it uses the bootfs property instead of loader.conf. If beadm used a different mechaniscm it would by nice to mention that in the HISTORY section of the bectl man page. > > > > I was not aware that beadm touches loader.conf, but I find that > slightly horrifying. I won't personally make bectl do that, but I > guess I could at least document that it doesn't... > > > Hi, Today I looked up something for boot environments myself and read this: https://wiki.freebsd.org/BootEnvironments#Setting_Boot_Dataset "In order for boot environments to be effective, you must let the bootfs zpool property control which dataset gets mounted as the root. Particularly, /etc/fstab must be purged of any / mount, and /boot/loader.conf must not be setting vfs.root.mountfrom directly. " So it is documented somewhere at least. Regards, Ronald.