Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Simon Wilper
archiso
Commits
f502b56e
Commit
f502b56e
authored
Mar 04, 2021
by
Jonathon Fernyhough
Committed by
David Runge
Mar 14, 2021
Browse files
Create zsync control file for delta downloads
parent
bc67933a
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab/ci/build-host.sh
View file @
f502b56e
...
...
@@ -140,7 +140,7 @@ function main() {
expect "# "
# Install required packages
send "pacman -Syu --ignore linux --noconfirm --needed qemu-headless jq dosfstools e2fsprogs libisoburn mtools squashfs-tools\n"
send "pacman -Syu --ignore linux --noconfirm --needed qemu-headless jq dosfstools e2fsprogs libisoburn mtools squashfs-tools
zsync
\n"
expect "# " 120
## Start build and copy output to local disk
...
...
.gitlab/ci/build-inside-vm.sh
View file @
f502b56e
...
...
@@ -26,12 +26,22 @@ create_checksums() {
fi
}
create_zsync_delta
()
{
# create a zsync control file for a file
# $1: a file
zsyncmake
-C
-u
"
${
1
##*/
}
"
-o
"
${
1
}
"
.zsync
"
${
1
}
"
if
[
-n
"
${
SUDO_UID
:-}
"
]
;
then
chown
"
${
SUDO_UID
}
:
${
SUDO_GID
}
"
"
${
1
}
"
.zsync
fi
}
run_mkarchiso
()
{
# run mkarchiso
# $1: template name
mkdir
-p
"
${
output
}
/
${
1
}
"
"
${
tmpdir
}
/
${
1
}
"
./archiso/mkarchiso
-o
"
${
output
}
/
${
1
}
"
-w
"
${
tmpdir
}
/
${
1
}
"
-v
"configs/
${
1
}
"
create_checksums
"
${
output
}
/
${
1
}
/"
*
.iso
create_zsync_delta
"
${
output
}
/
${
1
}
/"
*
.iso
}
trap
cleanup EXIT
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment