]> git.baikalelectronics.ru Git - kernel.git/commit
initramfs: remove clean_rootfs
authorChristoph Hellwig <hch@lst.de>
Sat, 6 Jun 2020 11:59:54 +0000 (13:59 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 30 Jul 2020 06:22:48 +0000 (08:22 +0200)
commit4d424896fea72dd228726fe3f302b47e3e053f22
tree4f11533021cc36f82470fda264a8a2f8ce40b72e
parent3d0614766150b06d240628022c487d161cefee35
initramfs: remove clean_rootfs

There is no point in trying to clean up after unpacking the initramfs
failed, as it should never get past the magic number check.  In addition
the current code only removes file that are direct children of the root
entry, which wasn't complete anyway

Fixes: 12f24b7d26a6 ("fastboot: remove duplicate unpack_to_rootfs()")
Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
init/initramfs.c