Skip to content

Commit 2b67cd7

Browse files
committed
chore(deps): move e2fsprogs dependency to onekey maintained fork.
1 parent 14db866 commit 2b67cd7

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

docs/installation.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,13 @@ There is a handy `install-deps.sh` script included in the repository and PyPI pa
140140
curl -L -o sasquatch_1.0_arm64.deb https://github.com/onekey-sec/sasquatch/releases/download/sasquatch-v4.5.1-4/sasquatch_1.0_arm64.deb
141141
sudo dpkg -i sasquatch_1.0_arm64.deb
142142
rm sasquatch_1.0_arm64.deb
143+
144+
4. We maintain a fork of e2fsprogs based on Debian upstream, with some security fixes. You can install it this way:
145+
146+
curl -L -o libext2fs2_1.47.0-3.ok1_amd64.deb https://github.com/onekey-sec/e2fsprogs/releases/download/v1.47.0-3.ok1/libext2fs2_1.47.0-3.ok1_amd64.deb
147+
dpkg -i libext2fs2_1.47.0-3.ok1_amd64.deb
148+
rm -f libext2fs2_1.47.0-3.ok1_amd64.deb
149+
150+
curl -L -o e2fsprogs_1.47.0-3.ok1_amd64.deb https://github.com/onekey-sec/e2fsprogs/releases/download/v1.47.0-3.ok1/e2fsprogs_1.47.0-3.ok1_amd64.deb
151+
dpkg -i e2fsprogs_1.47.0-3.ok1_amd64.deb
152+
rm -f e2fsprogs_1.47.0-3.ok1_amd64.deb

overlay.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ inputs: final: prev:
99
(super: {
1010
pname = "e2fsprogs-nofortify";
1111
hardeningDisable = (super.hardeningDisable or [ ]) ++ [ "fortify3" ];
12+
13+
version = "1.47.0-3.ok1";
14+
src = prev.fetchurl {
15+
url = "https://github.com/onekey-sec/e2fsprogs/archive/refs/tags/v1.47.0-3.ok1.tar.gz";
16+
hash = "sha256-fsLUySjAdgnRp5m405a4Egso+LXNLxR9Y7WHt8qAvFM=";
17+
};
1218
});
1319

1420
# Own package updated independently of nixpkgs

unblob/install-deps.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,11 @@ apt-get install --no-install-recommends -y \
1818
curl -L -o sasquatch_1.0_amd64.deb https://github.com/onekey-sec/sasquatch/releases/download/sasquatch-v4.5.1-4/sasquatch_1.0_amd64.deb
1919
dpkg -i sasquatch_1.0_amd64.deb
2020
rm -f sasquatch_1.0_amd64.deb
21+
22+
curl -L -o libext2fs2_1.47.0-3.ok1_amd64.deb https://github.com/onekey-sec/e2fsprogs/releases/download/v1.47.0-3.ok1/libext2fs2_1.47.0-3.ok1_amd64.deb
23+
dpkg -i libext2fs2_1.47.0-3.ok1_amd64.deb
24+
rm -f libext2fs2_1.47.0-3.ok1_amd64.deb
25+
26+
curl -L -o e2fsprogs_1.47.0-3.ok1_amd64.deb https://github.com/onekey-sec/e2fsprogs/releases/download/v1.47.0-3.ok1/e2fsprogs_1.47.0-3.ok1_amd64.deb
27+
dpkg -i e2fsprogs_1.47.0-3.ok1_amd64.deb
28+
rm -f e2fsprogs_1.47.0-3.ok1_amd64.deb

0 commit comments

Comments
 (0)