main/postmarketos-mkinitfs: tweak clean print (MR 6297)
Don't print the "Cleaning up old boot files..." message every time in post-upgrade, only when it actually deletes files.
This commit is contained in:
parent
eddffe3ec9
commit
200529afe0
1 changed files with 4 additions and 2 deletions
|
|
@ -4,9 +4,11 @@
|
|||
# appended kernel 'flavors'. Without doing this cleanup, /boot might be more
|
||||
# full than it needs to be, and things like copying files atomically in the new
|
||||
# mkinitfs may not have enough space to do the atomic copy
|
||||
echo "Cleaning up old boot files..."
|
||||
for f in /boot/boot.img-* /boot/initramfs-*-extra* /boot/initramfs-*[!-extra]; do
|
||||
[ -f "$f" ] && rm -v "$f"
|
||||
if [ -f "$f" ]; then
|
||||
echo "mkinitfs: cleaning up old boot file: $f"
|
||||
rm "$f"
|
||||
fi
|
||||
done
|
||||
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue