mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
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:
parent
573f48dd11
commit
71a8075125
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user