# boot-managed-by-snapd

This essentially is a dummy package that is installed by the installer
when the user selects snapd-based encryption on classic systems to ensure
that users cannot accidentally install grub debs and similar and break their
boot.

It also includes an apt json hook which produces a slightly nicer message
than just the dependency errors from apt. The hook exits successfully such
that the apt error messages look nice.

The list of conflicts is stored centrally in the hook itself, the hook has
a --print command to print the conflicts to stdout, and they are then substvared
into the Conflicts field of the binary package.

The hook runs on every install command and hence startup time is crucial,
which is why it is implemented in C.
