Commit 83d9930
committed
modules/lvm2: Add additional optimization flags for 8.5KB space reduction
Further optimize LVM2 by disabling unused features:
- --with-snapshots=none: Disable snapshot support
- --with-mirrors=none: Disable mirror support
- --disable-udev_rules: Disable udev integration
- --disable-pkgconfig: Disable pkgconfig support
- --disable-nls: Disable internationalization
Results (stripped binary sizes):
- lvm: 2,140,888 → 2,132,376 bytes (-8,512 bytes)
- dmsetup: 110,936 bytes (unchanged)
- Total LVM2 optimization: 51,976 bytes saved
These flags safely remove functionality not needed by Heads
while maintaining essential device-mapper capabilities required
by cryptsetup for disk encryption support.
Signed-off-by: Thierry Laurion <insurgo@riseup.net>1 parent 1baf25d commit 83d9930
1 file changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
41 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
42 | 61 | | |
43 | 62 | | |
44 | 63 | | |
| |||
0 commit comments