Skip to content

Commit a659c1c

Browse files
authored
feat: Use bsdtar to extract driver archive (#805)
1 parent 16c3a04 commit a659c1c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ RUN set -eu && \
1919
dos2unix \
2020
cabextract \
2121
genisoimage \
22-
libxml2-utils && \
22+
libxml2-utils \
23+
libarchive-tools && \
2324
apt-get clean && \
2425
echo "$VERSION_ARG" > /run/version && \
2526
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

src/define.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1704,7 +1704,7 @@ prepareInstall() {
17041704
local msg="Adding drivers to image..."
17051705
info "$msg" && html "$msg"
17061706

1707-
if ! tar -xf /drivers.txz -C "$drivers" --warning=no-timestamp; then
1707+
if ! bsdtar -xf /drivers.txz -C "$drivers"; then
17081708
error "Failed to extract drivers!" && return 1
17091709
fi
17101710

src/install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ addDrivers() {
725725
local msg="Adding drivers to image..."
726726
info "$msg" && html "$msg"
727727

728-
if ! tar -xf /drivers.txz -C "$drivers" --warning=no-timestamp; then
728+
if ! bsdtar -xf /drivers.txz -C "$drivers"; then
729729
error "Failed to extract drivers from archive!" && return 1
730730
fi
731731

0 commit comments

Comments
 (0)