[Git-commits] [grml/grml-live] 48f94b: Add support for building grml ISOs with zfs
Michael Prokop
noreply at github.com
Mon Aug 29 16:10:30 CEST 2022
Branch: refs/heads/master
Home: https://github.com/grml/grml-live
Commit: 48f94bbb6a097f02f984d87a0b165093056a901b
https://github.com/grml/grml-live/commit/48f94bbb6a097f02f984d87a0b165093056a901b
Author: AndrĂ¡s Korn <korn-github.com at elan.rulez.org>
Date: 2022-08-21 (Sun, 21 Aug 2022)
Changed paths:
A etc/grml/fai/config/hooks/instsoft.ZFS
M etc/grml/fai/config/package_config/ZFS
Log Message:
-----------
Add support for building grml ISOs with zfs
The `ZFS` FAI class will, via the `instsoft.ZFS` hook, install the packages
needed to build the zfs modules, build the zfs modules, then remove the
development packages again to avoid bloating the ISO. The ZFS
`package_config` now only installs `zfsutils-linux` so that the iso contains
the userspace zfs tools.
In my tests, the ZFS class now only increases the size of the ISO by about
3MB.
I wanted to rely on apt autoremove to get rid of automatically installed
packages, but for some reason as of 2.5.2 autoremove doesn't actually remove
some of the development packages (e.g. gcc-11) even though they're Priority
optional, marked as auto-installed, and not depended on by anything that
isn't auto-installed.
So, to avoid bloating the ISO with hundreds of MB of development packages,
the `instsoft.ZFS` script works out which packages it installs and removes
those explicitly, using potentially brittle parsing of `apt-get` output.
This has been tested to work and should do until a better solution is found.
Commit: 12daa74c0a5d83c13e582dc59ad3b38c8588ef7f
https://github.com/grml/grml-live/commit/12daa74c0a5d83c13e582dc59ad3b38c8588ef7f
Author: Michael Prokop <mika at grml.org>
Date: 2022-08-29 (Mon, 29 Aug 2022)
Changed paths:
A etc/grml/fai/config/hooks/instsoft.ZFS
M etc/grml/fai/config/package_config/ZFS
Log Message:
-----------
Merge remote-tracking branch 'origin/github/pr/117'
Compare: https://github.com/grml/grml-live/compare/6f72e3fc92a4...12daa74c0a5d
More information about the Git-commits
mailing list