Is it possible to detect the processor, such as by uname -p
, from within a preseed post-install script? uname -p
returns unknown
, and in-target uname -p
returns nothing.
I ask because I need to fetch and install an architecture-specific .deb file from within the script.
sudo cat /proc/cpu
/proc/cpuinfo
), but even accessing /proc from preseed sounds complicated. Then you have to parse out the architecture yourself by grepping for various keywords that identify x86-32, x86-64, ARM, etc.