Re: R: Re: Subvolumes and /proc/self/mountinfo

H. Peter Anvin
2012-06-20T15:37:54Z

On 06/20/2012 05:02 AM, Goffredo Baroncelli <kreijack@libero.it>
wrote:
>
> If I swap (via a rename) __active and __rollback, in the next boot my
system
> uses a "good" copy of the root filesystem. This is a simple way
to swap
> two subvolumes, without involving the boot logic
>
> Instead if I had tracked the subvolume-id, to swap the root filesystem I
> would have update the boot logic.
>
> I suspect that could exists other cases where it is preferable to track the
> subvolume-id instead the path. However what I would highlight it is the two
> ways aren''t equal.
>

Yes.  The question here is what makes sense for the low-level part of a
bootloader (Syslinux in this case) to use, and it sounds like you have
some experience here that would be highly useful to have.

The thing to keep in mind here is that the low level bootloader code
*must* match what is installed in the boot block (functionally another
part of the bootloader), or all hell will break loose.  I think that
means that relying on the subvolume ID makes more sense.  To upgrade the
bootloader, invoke the bootloader installer at the end of the update;
that will repoint *everything*, which is rather nice.

	-hpa

--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don''t speak on their behalf.