It’s almost scary (no, not because it is Halloween time ). Today I had to clone my system because my boot partition got too small. And though I always put as much effort as possible in everything I do, I am always skeptical. Yes, I did a lot of testing, but still some doubts remained. After all, this time it was not for toying around but for real. If things went wrong, I’d be very ……… “upset”!
This will be short but hopefully of interest. Today I had the need to find out if my script is being executed in a chroot environment.
Usually, when doing some shell scripting (Python, Perl, Bash) I use vim. I would even use it for other languages, but when developing in languages like Kotlin or Java there is simply no way around a full-blown IDE. Most IDEs also have a lot of other nice features that can prove very useful. For instance IntelliJ IDEA is absolutely priceless for diffs in Git. So, whenever I can, I combine the power of multiple tools.
Well, it’s some time now since the Raspberry Pi foundation released the all new and shiny Raspbian image based on Debian Buster. Unfortunately, they do not support any upgrade path.
When I received the new Raspberry Pi 4 Model B (with 4GB RAM), I thought it would be as easy as taking the SD card from a Raspberry Pi 3 and put it in the new version 4. Well, close but not exact. You will have to copy over some additional files for the boot partition. I managed this by simply taking the actual available Raspbian image, extracting it to a new SD card, booting it up (for verification) and then copying over the complete boot partition.