From 84026fe80cb023ce81a3d827638a0df9df481da2 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 3 Feb 2018 00:57:50 +0800 Subject: 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... --- dfly-update | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dfly-update') 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 }') -- cgit v1.2.2