aboutsummaryrefslogtreecommitdiffstats
path: root/dfly-update
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-02-03 00:57:50 +0800
committerAaron LI <aly@aaronly.me>2018-02-03 00:57:50 +0800
commit84026fe80cb023ce81a3d827638a0df9df481da2 (patch)
tree6014bcc1f2d15ad98adc2d35f7a0ce36178f8d23 /dfly-update
parentedbd7c9fe5d9866d93a64f40a1f6c3fbbd32e055 (diff)
downloaddfly-update-84026fe80cb023ce81a3d827638a0df9df481da2.tar.bz2
Use IMG image instead of ISO format, due to hard links
Most of the tools under `/usr/share/initrd/{bin,sbin}` are hard links, however the ISO9660 filesystem cannot deal with them, therefore the installed files are copies, which can cause problem for `mkinitrd` due to out of space...
Diffstat (limited to 'dfly-update')
-rwxr-xr-xdfly-update5
1 files changed, 3 insertions, 2 deletions
diff --git a/dfly-update b/dfly-update
index 383f8eb..58c72e7 100755
--- a/dfly-update
+++ b/dfly-update
@@ -105,9 +105,10 @@ get_latest_image() {
echo "Fetch remote systems checksum: ${url_checksum}" >&2
fetch -o ${tmpchecksum} "${url_checksum}"
if [ "${branch}" = "DEVELOPMENT" ]; then
- line=$(tail -n 1 ${tmpchecksum})
+ line=$(fgrep '.img.bz2' ${tmpchecksum} | tail -n 1)
else
- line=$(grep -v 'gui' ${tmpchecksum} | tail -n 1)
+ line=$(fgrep '.img.bz2' ${tmpchecksum} | \
+ fgrep -v 'gui-' | tail -n 1)
fi
latest_filename=$(echo "${line}" | awk -F'[()]' '{ print $2 }')
latest_md5=$(echo "${line}" | awk '{ print $5 }')