Replace aria2c with wget
for downloading the torrent file
This commit is contained in:
parent
0c4fc7bfc8
commit
208b96d8b6
2 changed files with 3 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ labsync_mount_root() {
|
|||
vg_name="vglab"
|
||||
if [ -z "$labsync_localboot" ]; then
|
||||
labsync_info "Downloading torrent file from ${labsync_torrent}"
|
||||
while ! aria2c -t 10 --follow-torrent=false --dir /tmp -o torrent "${labsync_torrent}"; do sleep 1; done
|
||||
while ! wget -O /tmp/torrent "${labsync_torrent}"; do sleep 1; done
|
||||
aria2c -S /tmp/torrent > /tmp/torrent_info
|
||||
squashfs_file="$(sed -n '/idx|path\/length/,${s/\s*1|\(.*\)$/\1/p}' /tmp/torrent_info)"
|
||||
image_size_bytes="$(sed -n 's/Total Length: .*(\([0-9,]*\)).*$/\1/p' /tmp/torrent_info | tr -d ',')"
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ case $1 in
|
|||
##
|
||||
. /usr/share/initramfs-tools/hook-functions
|
||||
rm -f "$DESTDIR/sbin/mke2fs"
|
||||
mkdir -p "$DESTDIR/lib/x86_64-linux-gnu"
|
||||
cp /lib/x86_64-linux-gnu/libnss_dns* "$DESTDIR/lib/x86_64-linux-gnu"
|
||||
copy_exec /sbin/e2fsck
|
||||
copy_exec /sbin/mke2fs
|
||||
copy_exec /sbin/sfdisk
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue