~xnox/debian-cd/cleanup

« back to all changes in this revision

Viewing changes to tools/boot/groovy/common.sh

  • Committer: Dimitri John Ledkov
  • Date: 2020-06-19 13:52:43 UTC
  • Revision ID: xnox@ubuntu.com-20200619135243-hjo9a0e2as7ngu33
groovy: drop initrd_suffix(), unused.

Show diffs side-by-side

added added

removed removed

Lines of Context:
148
148
    done
149
149
}
150
150
 
151
 
initrd_suffix() {
152
 
    if zcat -t "$1" >/dev/null 2>&1; then
153
 
        echo .gz
154
 
    elif bzcat -t "$1" >/dev/null 2>&1; then
155
 
        echo .bz2
156
 
    # TODO: This only works if there is at least one dot in $1; fortunately
157
 
    # this is currently always true.
158
 
    elif lzcat -S ".${1##*.}" -t "$1" >/dev/null 2>&1; then
159
 
        # .lzma would be more conventional, but we use .lz to avoid creating
160
 
        # trouble for boot loaders that might need to read from 8.3
161
 
        # filesystems without implementing support for long file names (e.g.
162
 
        # syslinux on FAT USB sticks).
163
 
        echo .lz
164
 
    fi
165
 
}
166
 
 
167
151
HUMANPROJECT="$(echo "$CAPPROJECT" | sed 's/-/ /g')"
168
152
 
169
153
# for multi-layer images, add a kernel command line option to set layerfs-path