initramfs: break loop when decompression finishes 54/316354/1 accepted/tizen_unified accepted/tizen_unified_dev accepted/tizen_unified_toolchain accepted/tizen_unified_x tizen accepted/tizen/unified/20240822.181347 accepted/tizen/unified/dev/20240826.221248 accepted/tizen/unified/toolchain/20241004.101221 accepted/tizen/unified/x/20240823.023205
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 11 Jul 2024 14:41:45 +0000 (16:41 +0200)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 20 Aug 2024 04:06:24 +0000 (13:06 +0900)
commit455261dc71f1db53e458196bf6e00ff766b1b7b1
tree11e075f34aefb218059bd68814f475e1279cb25d
parentf5c3319f3b9df90f30a1e7cc41585462081cd8b6
initramfs: break loop when decompression finishes

This fixes booting with initramfs (cpio.gz based) with additional garbage
added after the main initramfs image.

The below message is displayed during booting.

[    0.546162] rootfs image is not initramfs (invalid magic at start of compressed archive); looks like an initrd

Change-Id: Iddf10f6696c7d15ec68d29bc69614523c9fd9b65
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
init/initramfs.c