L. Arnold's picture
from: https://github.com/turnkeylinux-apps/tkldev/blob/master/docs/setup.rst

ARCH=$(dpkg --print-architecture)
CODENAME=$(lsb_release -s -c)


In the above Code I am trying to understand the meaning of --print-architecture and lsb_release.  Am I to assume I would replace the text "print-architecture" with something like "i386" or "AMD64" or is it longer text (I assume coming out of the various build in Sourceforge).

lsb_release ?  should that be replaced with, for instance, 13.0 ?


Just looking for some examples or better yet a directory of options.

thanks in advance.


Alon Swartz's picture

The code you're referring to is meant to be run as-is. What it does is determine the architecture (ie. amd64, i386) and debian version (eg. wheezy, squeeze) of the underlying TKLDev installation. There is no need to replace anything.

The architecture and debian version is used to download and unpack the correct/corresponding bootstrap that will be used in TKLDev.

For completeness, on a tkldev-13.0-wheezy-amd64 installation the variables will be populated as follows:

root@tkldev ~# ARCH=$(dpkg --print-architecture)
root@tkldev ~# echo $ARCH

root@tkldev ~# CODENAME=$(lsb_release -s -c)
root@tkldev ~# echo $CODENAME

I hope the above helps.

Add new comment