This may be just an error I only came across but while updating the kernel on piaware today, I ran into not enough room on the /boot folder to create a new initramfs.
To solve the problem I had to do the following:
Did you expand the partition when you created the image?
How large is the SD card? I normally use a 32GB card but it should work on an 8GB image.
Check the /var/log folder for large log files.
If the SD card was ever accessed by a PC running windows, you might have windows files/directories there - these might be hogging up space. Things like ‘System Volume Information/’ or ‘RECYCLE’ aren’t used by Linux and should be deleted while you are logged into the Pi via VNC or ssh.
If you feel adventuresome, and/or a desire to tear into the guts of the operating system: partition a fresh SD card with larger sizes for the partition holding /boot with the remainder going to / - lots of HOW-TOs out there - copy each partition contents to the new SD card, change /boot/cmdline.txt and /etc/fstab to reflect the new SD card’s PARTUUID, and swap cards. The worst that can happen is doing what @abcd567 recommends - starting fresh with a new image (having saved your feeder-id setting first).
BTW - no issues here updating to the latest kernel 4.14.62-v7+ /boot has 19M out of 41M free.
I too found easier to reimage the SD card than to fix issues that arise from long use. Actually I have two 16GB cards and I can reimage one while the other is still in use.
As for the space… the boot partition is 23MB used, 22MB free and very unlikely to require more than that.
The root partition is extended to 16MB on my cards and filled to 1.3G (9%) - Raspbian Stretch Lite. Again, plenty of space.
I want to thank everyone for their feedback. Honestly I just created the post in case someone else ran into the problem.
I compared the piaware image to the raspbian lite image and the free space between images on the boot directory is just a few kilobytes. I don’t have another raspberry 3 sitting around to try the same thing over again to see if it reproduces the problem.
I logged into another raspberry 3+ I have running Raspbian Stretch here because I was wondering where it was at software wise. Oddly enough it hasn’t been offered the 4.14.62 kernel yet.
What sdcard image did you start from? The 3.6.2 (stretch) piaware image no longer uses an initramfs so I’m not sure how update-initramfs applies here (and you won’t have problems with old versions piling up). The 3.5.3 (jessie) piaware image did use an initramfs, but it also pinned the kernel version to avoid problems with mlat timing, so you shouldn’t be getting kernel upgrades there.
FWIW the 3.6.2 image uses the same build process (pi-gen) as Raspbian-lite and doesn’t change the rules for sizing /boot - a fresh image will have a /boot that is about 50% used.
Alright, I found another another Raspberry 3 sitting around. Installed the 3.6.2 image. Enabled ssh and wireless networking on my mac before first boot. Everything is great to that point.
Did an apt update followed by apt upgrade. The following packages want to be upgraded off the latest image:
I had been building the images on macOS Mojave and to rule out anything it might be doing, I built a new image using Windows 10 and got the same result.
What I found out in my case was that flashing directly the .zip file it gave me weird errors (like the WiFi hardware wasn’t present).
I had to extract the ISO first, using 7zip, and then I flashed that. No more problems.