OS Differences
There are some things about the new Yocto OS that make it easy to distinguish from the Buildroot OS, which makes it easy to determine whether an OS update succeeded.
Here are some command-line checks to identify the operating system.
Filesystem Differences
Section titled “Filesystem Differences”There are many differences in the file structures of the two operating systems. Here are a few easy ones.
Keep in mind that, because these are just files, someone could have changed things from the defaults given here. Run multiple checks to make sure things match up.
The rw_data partition
Section titled “The rw_data partition”Yocto has a structure that prevents the filesystem from filling up and going into read-only mode. It separates the OS-level files from the files the user can edit.
This way, even if the user-editable files are filled up, the OS can still run like normal.
To check for this structure:
- Run
lsblk. If one of the entries in theMOUNTPOINTcolumn is/rw_data, the display is on Yocto. - Run
ls /rw_data. Ifoptandetcdo not show up, the display is on Buildroot.
Startup script name
Section titled “Startup script name”Yocto has a slightly different system for running apps than Buildroot, so we can look at how apps are run to figure out which OS is in use.
- Run
ls /etc/systemd/system/startup-app*.service. There should be one file that matches. - For Yocto it will be
startup-app@.service, while for Buildroot it will bestartup-app.service.
Package Management Differences
Section titled “Package Management Differences”The two operating systems have different package management systems, which can be used to identify the OS.
- Yocto uses
dpkgto manage packages. Rundpkg -lto list installed packages. - Buildroot uses
opkgto manage packages. Runopkg list-installedto list installed packages.