Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add e2fsprogs #1091

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .kres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spec:
- containerd
- cryptsetup
- dosfstools
- e2fsprogs
- fhs
- flannel-cni
- grub
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2024-11-18T15:53:48Z by kres a8af16d.
# Generated on 2024-11-20T04:30:14Z by kres a8af16d.

# common variables

Expand Down Expand Up @@ -53,6 +53,7 @@ TARGETS += cni
TARGETS += containerd
TARGETS += cryptsetup
TARGETS += dosfstools
TARGETS += e2fsprogs
TARGETS += fhs
TARGETS += flannel-cni
TARGETS += grub
Expand Down
5 changes: 5 additions & 0 deletions Pkgfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ vars:
drbd_sha256: 016127238d5e0585130ec9558d991347e5360fb3c075283c62ea67f661bcd66b
drbd_sha512: 437e50d588b37aece7583eed06236c82931a41ab69f6835853fbeaf05125e4d5e0d1a81f501971e6773f86703d71d604ee3e1f0634faa9a03c3379d8297ed1cc

# renovate: datasource=git-tags depName=git://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
e2fsprogs_version: v1.47.1
e2fsprogs_sha256: db95ff1cb6ef741c9aa8875d9f3f52a34168360febba765b6377b80bada09a8c
e2fsprogs_sha512: 7e59746e14df9e29034693f415dc4bcbd405217712e2d9e594dcc755bbc1c9f3c4f66ba37e4289b022c337c5aae3d96561c0cd88fa21082ed1017d2a000d3b82

# renovate: datasource=github-releases extractVersion=^v(?<version>.*)$ depName=systemd/systemd
systemd_version: 256.6
systemd_sha256: c085f162dec001407dd32f00abbf20b7e6ed7043dcfaf8ed954787d86707f409
Expand Down
47 changes: 47 additions & 0 deletions e2fsprogs/pkg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: e2fsprogs
variant: scratch
shell: /toolchain/bin/bash
dependencies:
- stage: base
- stage: util-linux
#- stage: libattr
#- stage: libinih
#- stage: liburcu
steps:
- sources:
- url: https://github.com/tytso/e2fsprogs/archive/refs/tags/{{ .e2fsprogs_version}}.tar.gz
destination: e2fsprogs.tar.gz
sha256: "{{ .e2fsprogs_sha256 }}"
sha512: "{{ .e2fsprogs_sha512 }}"
prepare:
- |
tar xf e2fsprogs.tar.gz --strip-components=1

./configure \
--prefix=/usr \
--localstatedir=/run \
--enable-hardening \
--enable-elf-shlibs \
--enable-symlink-install \
--disable-fsck \
--disable-uuidd \
--disable-libuuid \
--disable-libblkid \
--disable-nls \
--disable-fuse2fs
build:
- |
make -j $(nproc) progs
install:
- |
make install DESTDIR=/rootfs-temp

rm -rf /rootfs-temp/usr/{bin,etc,include,share}

mkdir -p /rootfs/{sbin,usr/lib}

cp -r /rootfs-temp/usr/lib /rootfs/usr
cp -r /rootfs-temp/usr/sbin/{e2fsck,fsck.*,mke2fs,mkfs.*,resize2fs,tune2fs} /rootfs/sbin
finalize:
- from: /rootfs
to: /
1 change: 1 addition & 0 deletions reproducibility/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies:
- stage: containerd
- stage: cryptsetup
- stage: dosfstools
- stage: e2fsprogs
- stage: fhs
- stage: flannel-cni
- stage: grub
Expand Down
Loading