Skip to content

Commit d68c9d6

Browse files
authored
Merge pull request #675 from onekey-sec/fix-e2fsprogs
move e2fsprogs dependency to onekey maintained fork.
2 parents 14db866 + 8394a7f commit d68c9d6

File tree

3 files changed

+30
-11
lines changed

3 files changed

+30
-11
lines changed

docs/installation.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,16 @@ There is a handy `install-deps.sh` script included in the repository and PyPI pa
132132

133133
2. If you need **squashfs support**, install sasquatch:
134134

135-
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
136-
sudo dpkg -i sasquatch_1.0_amd64.deb
137-
rm sasquatch_1.0_amd64.deb
138-
3. If you need **squashfs(arm64) support**, install sasquatch(arm64):
139-
140-
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
141-
sudo dpkg -i sasquatch_1.0_arm64.deb
142-
rm sasquatch_1.0_arm64.deb
135+
curl -L -o sasquatch_1.0.deb "https://github.com/onekey-sec/sasquatch/releases/download/sasquatch-v4.5.1-4/sasquatch_1.0_$(dpkg --print-architecture).deb"
136+
sudo dpkg -i sasquatch_1.0.deb
137+
rm sasquatch_1.0.deb
138+
139+
4. We maintain a fork of e2fsprogs based on Debian upstream, with some security fixes. You can install it this way:
140+
141+
curl -L -o libext2fs2_1.47.0-3.ok1.deb "https://github.com/onekey-sec/e2fsprogs/releases/download/v1.47.0-3.ok1/libext2fs2_1.47.0-3.ok1_$(dpkg --print-architecture).deb"
142+
dpkg -i libext2fs2_1.47.0-3.ok1.deb
143+
rm -f libext2fs2_1.47.0-3.ok1.deb
144+
145+
curl -L -o e2fsprogs_1.47.0-3.ok1.deb "https://github.com/onekey-sec/e2fsprogs/releases/download/v1.47.0-3.ok1/e2fsprogs_1.47.0-3.ok1_$(dpkg --print-architecture).deb"
146+
dpkg -i e2fsprogs_1.47.0-3.ok1.deb
147+
rm -f e2fsprogs_1.47.0-3.ok1.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: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ apt-get install --no-install-recommends -y \
1515
libmagic1 \
1616
zstd
1717

18-
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
19-
dpkg -i sasquatch_1.0_amd64.deb
20-
rm -f sasquatch_1.0_amd64.deb
18+
curl -L -o sasquatch_1.0.deb "https://github.com/onekey-sec/sasquatch/releases/download/sasquatch-v4.5.1-4/sasquatch_1.0_$(dpkg --print-architecture).deb"
19+
dpkg -i sasquatch_1.0.deb
20+
rm -f sasquatch_1.0.deb
21+
22+
curl -L -o libext2fs2_1.47.0-3.ok1.deb "https://github.com/onekey-sec/e2fsprogs/releases/download/v1.47.0-3.ok1/libext2fs2_1.47.0-3.ok1_$(dpkg --print-architecture).deb"
23+
dpkg -i libext2fs2_1.47.0-3.ok1.deb
24+
rm -f libext2fs2_1.47.0-3.ok1.deb
25+
26+
curl -L -o e2fsprogs_1.47.0-3.ok1.deb "https://github.com/onekey-sec/e2fsprogs/releases/download/v1.47.0-3.ok1/e2fsprogs_1.47.0-3.ok1_$(dpkg --print-architecture).deb"
27+
dpkg -i e2fsprogs_1.47.0-3.ok1.deb
28+
rm -f e2fsprogs_1.47.0-3.ok1.deb

0 commit comments

Comments
 (0)