initrd/bin/unpack_initramfs.sh: no functional change, just format with tabs

Signed-off-by: Thierry Laurion <insurgo@riseup.net>
This commit is contained in:
Thierry Laurion 2024-11-22 16:40:40 -05:00
parent 573f48dd11
commit 71a8075125
No known key found for this signature in database
GPG Key ID: 9A53E1BB3FF00461

View File

@ -45,7 +45,10 @@ consume_zeros() {
unpack_cpio() {
TRACE_FUNC
(cd "$dest_dir"; cpio -i "${CPIO_ARGS[@]}" 2>/dev/null)
(
cd "$dest_dir"
cpio -i "${CPIO_ARGS[@]}" 2>/dev/null
)
}
# unpack the first segment of an archive, then write the rest to another file
@ -72,14 +75,14 @@ unpack_first_segment() {
# Copy the remaining data
cat
;;
303730373031*|303730373032*) # plain cpio
303730373031* | 303730373032*) # plain cpio
DEBUG "archive segment $magic: plain cpio"
# Unpack the plain cpio, this stops reading after the trailer
unpack_cpio
# Copy the remaining data
cat
;;
1f8b*|1f9e*) # gzip
1f8b* | 1f9e*) # gzip
DEBUG "archive segment $magic: gzip"
# gunzip won't stop when reaching the end of the gzipped member,
# so we can't read another segment after this. We can't