-
Notifications
You must be signed in to change notification settings - Fork 92
/
pkg.yaml
98 lines (94 loc) · 2.8 KB
/
pkg.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: lvm2
variant: scratch
shell: /toolchain/bin/bash
dependencies:
- stage: base
- stage: libaio
- stage: eudev
- stage: util-linux
steps:
- sources:
- url: https://mirrors.kernel.org/sourceware/lvm2/LVM2.{{ .lvm2_version | replace "_" "." }}.tgz
destination: lvm2.tar.gz
sha256: "{{ .lvm2_sha256 }}"
sha512: "{{ .lvm2_sha512 }}"
prepare:
- |
tar -xzf lvm2.tar.gz --strip-components=1
patch -p1 < /pkg/patches/includes.patch
patch -p0 < /pkg/patches/fix-stdio-usage.patch
patch -p0 < /pkg/patches/mlockall-default-config.patch
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
./configure \
--with-thin=internal \
--with-cache=none \
--disable-udev-systemd-background-jobs \
--with-systemdsystemunitdir=/dev/null \
--localstatedir=/var \
--disable-nls \
--disable-readline \
--disable-selinux \
--enable-cmdlib \
--enable-pkgconfig \
--enable-udev_sync \
--enable-udev_rules \
--enable-static_link \
--with-udev-prefix=/usr
rm -f /sbin/blkdeactivate \
/sbin/fsadm \
/sbin/fsck.xfs \
/sbin/lvchange \
/sbin/lvconvert \
/sbin/lvcreate \
/sbin/lvdisplay \
/sbin/lvextend \
/sbin/lvmconfig \
/sbin/lvmdevices \
/sbin/lvmdiskscan \
/sbin/lvmdump \
/sbin/lvm_import_vdo \
/sbin/lvmsadc \
/sbin/lvmsar \
/sbin/lvreduce \
/sbin/lvremove \
/sbin/lvrename \
/sbin/lvresize \
/sbin/lvs \
/sbin/lvscan \
/sbin/pvchange \
/sbin/pvck \
/sbin/pvcreate \
/sbin/pvdisplay \
/sbin/pvmove \
/sbin/pvremove \
/sbin/pvresize \
/sbin/pvs \
/sbin/pvscan \
/sbin/vgcfgbackup \
/sbin/vgcfrestore \
/sbin/vgchange \
/sbin/vgck \
/sbin/vgconvert \
/sbin/vgcreate \
/sbin/vgdisplay \
/sbin/vgexport \
/sbin/vgimport \
/sbin/vgimportclone \
/sbin/vgimportdevices \
/sbin/vgmerge \
/sbin/vgmknodes \
/sbin/vgreduce \
/sbin/vgremove \
/sbin/vgrename \
/sbin/vgs \
/sbin/vgscan \
/sbin/vgsplit
build:
- |
make -j $(nproc)
install:
- |
make DESTDIR=/rootfs install
finalize:
- from: /rootfs
to: /