Yeah exactly. RPi models are detected based on the device tree files on the boot partition, and then further based on the hardware revision in /proc/cpuinfo, to allow swapping SD cards between RPi models without breaking device detection. But if no RPi device tree is present (those /boot/firmware/bcm*-rpi-*.dtb files), it applies a generic device tree identifier.
/etc/.dietpi_hw_model_identifier
/boot/dietpi/func/dietpi-obtain_hw_model
source /boot/dietpi/func/dietpi-globals # load new variables to current shell session
I deleted /etc/.dietpi_hw_model_identifier and added the fstab line (Iβm not familiar with Linux FS structure in Raspberry Pi).
Although I ran /boot/dietpi/func/dietpi-obtain_hw_model, the removed file isnβt recreated
β― ls /etc/.dietpi_hw_model_identifier
ls: cannot access '/etc/.dietpi_hw_model_identifier': No such file or directory
I even applied the changes per the commit but that didnβt work, either.
Nevertheless, after rebooting the login text indeed shows RPi 4.
- Device model : RPi 4 Model B (aarch64)
Sourcing /boot/dietpi/func/dietpi-globals doesnβt work in fish unfortunately.
Another annoyance I faced is the weird red power LED blinking. It should stay on all the time without blinking. Sometimes it stays off for minutes. On the other hand, The green SD card activity indicator behaves as expected.
Resetting the LED configurations via dietpi-led_control or setting them manually wouldnβt fix it.
Yes, thatβs the what resetting from the menu does actually.
In fact, The file content I pasted is an attempt of manually setting it via the menu but none of the attempts is successful.
No need to add the fstab entry, that is present already. But containers by default have no access to block devices hence cannot mount drives and basically ignore fstab. Hence when booting an image with a container engine, all filesystems need to be mounted on the host first.
On RPi /etc/.dietpi_hw_model_identifier does not exist and is not created intentionally, because one image can support multiple RPi models.
About the LEDs: not all drivers support all triggers properly. Some triggers will just not change anything, or do something unexpected. Annoying that they still expose those non-functional triggers in the sysfs API, but thatβs how it is. Hence play a bit with the available triggers, otherwise reset and reboot always restores system/kernel defaults.