Skip to content

Commit 83d9930

Browse files
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

File tree

modules/lvm2

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,26 @@ lvm2_configure := \
3838
--disable-cmirrord \
3939
--disable-cache_check_needs_check \
4040
--disable-thin_check_needs_check \
41+
--disable-systemd-journal \
42+
--disable-app-machineid \
43+
--disable-blkid_wiping \
44+
--disable-o_direct \
45+
--disable-fsadm \
46+
--disable-blkdeactivate \
47+
--disable-blkzeroout \
48+
--without-blkid \
49+
--without-udev \
4150
--with-cluster=none \
51+
--with-thin=none \
52+
--with-cache=none \
53+
--with-vdo=none \
54+
--with-writecache=none \
55+
--with-integrity=none \
56+
--with-snapshots=none \
57+
--with-mirrors=none \
58+
--disable-udev_rules \
59+
--disable-pkgconfig \
60+
--disable-nls \
4261
--with-thin-check= \
4362

4463
# not sure why LIB_SUFFIX is not defined in the cross build

0 commit comments

Comments
 (0)